OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_CONTROLS_DELEGATE_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_CONTROLS_DELEGATE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "content/common/content_export.h" | |
10 | |
11 namespace content { | |
12 | |
13 // Provides the necessary information to chrome media controls and gets notified | |
mlamouri (slow - plz ping)
2015/06/18 16:43:23
s/chrome //
whywhat
2015/06/19 16:00:34
Done.
| |
14 // about the media controls events. | |
15 class CONTENT_EXPORT MediaControlsDelegate { | |
16 public: | |
17 // Called when the user interacts with the Pause control (e.g. taps on a | |
18 // button). | |
19 virtual void OnControlsPause() {} | |
mlamouri (slow - plz ping)
2015/06/18 16:43:23
Maybe this could be pure virtual?
whywhat
2015/06/19 16:00:34
Yes, was confused by another file in the directory
| |
20 | |
21 // Called when the user interacts with the Pause control (e.g. taps on a | |
mlamouri (slow - plz ping)
2015/06/18 16:43:23
s/Pause/Play/
whywhat
2015/06/19 16:00:34
Done.
| |
22 // button). | |
23 virtual void OnControlsResume() {} | |
mlamouri (slow - plz ping)
2015/06/18 16:43:23
ditto
whywhat
2015/06/19 16:00:34
ditto
| |
24 | |
25 // Indicates if the controls should be in the paused state or not. | |
26 virtual bool IsPaused(); | |
mlamouri (slow - plz ping)
2015/06/18 16:43:23
ditto
whywhat
2015/06/19 16:00:34
ditto
| |
27 | |
28 protected: | |
29 MediaControlsDelegate() = default; | |
30 virtual ~MediaControlsDelegate() = default; | |
31 | |
32 private: | |
33 DISALLOW_COPY_AND_ASSIGN(MediaControlsDelegate); | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_CONTROLS_DELEGATE_H_ | |
OLD | NEW |