gpu video: Don't destroy a video texture in the destructor until it's returned.
[chromium-blink-merge.git] / ash / media_delegate.h
blob1dac0592548b8918c6f3ea9be96d7a2a18caa038
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_MEDIA_DELEGATE_H_
6 #define ASH_MEDIA_DELEGATE_H_
8 namespace ash {
10 // A delegate class to control media playback.
11 class MediaDelegate {
12 public:
13 virtual ~MediaDelegate() {}
15 // Handles the Next Track Media shortcut key.
16 virtual void HandleMediaNextTrack() = 0;
18 // Handles the Play/Pause Toggle Media shortcut key.
19 virtual void HandleMediaPlayPause() = 0;
21 // Handles the Previous Track Media shortcut key.
22 virtual void HandleMediaPrevTrack() = 0;
25 } // namespace ash
27 #endif // ASH_MEDIA_DELEGATE_H_