| 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_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ | 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ |
| 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ | 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST_IM
PL_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/screen_orientation_dispatcher_host.h" | 8 #include "content/public/browser/screen_orientation_dispatcher_host.h" |
| 9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
| 10 #include "third_party/WebKit/public/platform/WebLockOrientationError.h" | 10 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockO
rientationError.h" |
| 11 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" | 11 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationLockType.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 class RenderFrameHost; | 15 class RenderFrameHost; |
| 16 class ScreenOrientationProvider; | 16 class ScreenOrientationProvider; |
| 17 class WebContents; | 17 class WebContents; |
| 18 | 18 |
| 19 // ScreenOrientationDispatcherHost receives lock and unlock requests from the | 19 // ScreenOrientationDispatcherHost receives lock and unlock requests from the |
| 20 // RenderFrames and dispatch them to the ScreenOrientationProvider. It also | 20 // RenderFrames and dispatch them to the ScreenOrientationProvider. It also |
| 21 // make sure that the right RenderFrame get replied for each lock request. | 21 // make sure that the right RenderFrame get replied for each lock request. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 }; | 63 }; |
| 64 // current_lock_ will be NULL if there are no current lock. | 64 // current_lock_ will be NULL if there are no current lock. |
| 65 LockInformation* current_lock_; | 65 LockInformation* current_lock_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDispatcherHostImpl); | 67 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDispatcherHostImpl); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace content | 70 } // namespace content |
| 71 | 71 |
| 72 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST
_IMPL_H_ | 72 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DISPATCHER_HOST
_IMPL_H_ |
| OLD | NEW |