| 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 #include "content/public/browser/screen_orientation_provider.h" | 5 #include "content/public/browser/screen_orientation_provider.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/render_view_host_delegate.h" | 7 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 8 #include "content/public/browser/render_view_host.h" | 8 #include "content/public/browser/render_view_host.h" |
| 9 #include "content/public/browser/screen_orientation_delegate.h" | 9 #include "content/public/browser/screen_orientation_delegate.h" |
| 10 #include "content/public/browser/screen_orientation_dispatcher_host.h" | 10 #include "content/public/browser/screen_orientation_dispatcher_host.h" |
| 11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 12 #include "third_party/WebKit/public/platform/WebLockOrientationError.h" | |
| 13 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 12 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 13 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockO
rientationError.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 ScreenOrientationDelegate* ScreenOrientationProvider::delegate_ = nullptr; | 17 ScreenOrientationDelegate* ScreenOrientationProvider::delegate_ = nullptr; |
| 18 | 18 |
| 19 ScreenOrientationProvider::LockInformation::LockInformation(int request_id, | 19 ScreenOrientationProvider::LockInformation::LockInformation(int request_id, |
| 20 blink::WebScreenOrientationLockType lock) | 20 blink::WebScreenOrientationLockType lock) |
| 21 : request_id(request_id), | 21 : request_id(request_id), |
| 22 lock(lock) { | 22 lock(lock) { |
| 23 } | 23 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 case blink::WebScreenOrientationLockDefault: | 200 case blink::WebScreenOrientationLockDefault: |
| 201 NOTREACHED(); | 201 NOTREACHED(); |
| 202 return false; | 202 return false; |
| 203 } | 203 } |
| 204 | 204 |
| 205 NOTREACHED(); | 205 NOTREACHED(); |
| 206 return false; | 206 return false; |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace content | 209 } // namespace content |
| OLD | NEW |