| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
| 12 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" | 12 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationLockType.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class ScreenOrientationDelegate; | 16 class ScreenOrientationDelegate; |
| 17 class ScreenOrientationDispatcherHost; | 17 class ScreenOrientationDispatcherHost; |
| 18 class WebContents; | 18 class WebContents; |
| 19 | 19 |
| 20 // Handles screen orientation lock/unlock. Platforms which wish to provide | 20 // Handles screen orientation lock/unlock. Platforms which wish to provide |
| 21 // custom implementations can provide a factory for ScreenOrientationDelegate. | 21 // custom implementations can provide a factory for ScreenOrientationDelegate. |
| 22 class CONTENT_EXPORT ScreenOrientationProvider : public WebContentsObserver { | 22 class CONTENT_EXPORT ScreenOrientationProvider : public WebContentsObserver { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Locks that require orientation changes are not completed until | 71 // Locks that require orientation changes are not completed until |
| 72 // OnOrientationChange. | 72 // OnOrientationChange. |
| 73 scoped_ptr<LockInformation> pending_lock_; | 73 scoped_ptr<LockInformation> pending_lock_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider); | 75 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace content | 78 } // namespace content |
| 79 | 79 |
| 80 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 80 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ |
| OLD | NEW |