| Index: content/browser/screen_orientation/screen_orientation_dispatcher_host.h
|
| diff --git a/content/browser/screen_orientation/screen_orientation_dispatcher_host.h b/content/browser/screen_orientation/screen_orientation_dispatcher_host.h
|
| index 75620d9738d7db0959f6d2e47d2831960954fade..45ec7164fa59dd1b1b0d8ddc4b2962817cc21d85 100644
|
| --- a/content/browser/screen_orientation/screen_orientation_dispatcher_host.h
|
| +++ b/content/browser/screen_orientation/screen_orientation_dispatcher_host.h
|
| @@ -10,8 +10,13 @@
|
|
|
| namespace content {
|
|
|
| -// ScreenOrientationDispatcherHost
|
| -class ScreenOrientationDispatcherHost : public BrowserMessageFilter {
|
| +class ScreenOrientationProvider;
|
| +
|
| +// ScreenOrientationDispatcherHost is a browser filter for Screen Orientation
|
| +// messages and also helps dispatching messages about orientation changes to the
|
| +// renderers.
|
| +class CONTENT_EXPORT ScreenOrientationDispatcherHost
|
| + : public BrowserMessageFilter {
|
| public:
|
| ScreenOrientationDispatcherHost();
|
|
|
| @@ -20,9 +25,17 @@ class ScreenOrientationDispatcherHost : public BrowserMessageFilter {
|
|
|
| void OnOrientationChange(blink::WebScreenOrientation orientation);
|
|
|
| -private:
|
| - virtual ~ScreenOrientationDispatcherHost() {}
|
| + void SetProviderForTests(ScreenOrientationProvider* provider);
|
| +
|
| + private:
|
| + virtual ~ScreenOrientationDispatcherHost();
|
| +
|
| + void OnLockRequest(blink::WebScreenOrientations orientations);
|
| + void OnUnlockRequest();
|
| +
|
| + static ScreenOrientationProvider* CreateProvider();
|
|
|
| + scoped_ptr<ScreenOrientationProvider> provider_;
|
| DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDispatcherHost);
|
| };
|
|
|
|
|