Chromium Code Reviews| Index: content/public/browser/android/media_controls_delegate.h |
| diff --git a/content/public/browser/android/media_controls_delegate.h b/content/public/browser/android/media_controls_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..89a7a8941254afa9d71b6e1b546e500692dabad7 |
| --- /dev/null |
| +++ b/content/public/browser/android/media_controls_delegate.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_CONTROLS_DELEGATE_H_ |
| +#define CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_CONTROLS_DELEGATE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +// 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.
|
| +// about the media controls events. |
| +class CONTENT_EXPORT MediaControlsDelegate { |
| + public: |
| + // Called when the user interacts with the Pause control (e.g. taps on a |
| + // button). |
| + 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
|
| + |
| + // 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.
|
| + // button). |
| + virtual void OnControlsResume() {} |
|
mlamouri (slow - plz ping)
2015/06/18 16:43:23
ditto
whywhat
2015/06/19 16:00:34
ditto
|
| + |
| + // Indicates if the controls should be in the paused state or not. |
| + virtual bool IsPaused(); |
|
mlamouri (slow - plz ping)
2015/06/18 16:43:23
ditto
whywhat
2015/06/19 16:00:34
ditto
|
| + |
| + protected: |
| + MediaControlsDelegate() = default; |
| + virtual ~MediaControlsDelegate() = default; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(MediaControlsDelegate); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_ANDROID_MEDIA_CONTROLS_DELEGATE_H_ |