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/browser/screen_orientation/screen_orientation_provider_android
.h" | 5 #include "content/browser/screen_orientation/screen_orientation_provider_android
.h" |
6 | 6 |
7 #include "content/browser/android/content_view_core_impl.h" | 7 #include "content/browser/android/content_view_core_impl.h" |
8 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host.
h" | |
9 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
10 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
11 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
| 11 #include "content/public/browser/screen_orientation_dispatcher_host.h" |
12 #include "jni/ScreenOrientationProvider_jni.h" | 12 #include "jni/ScreenOrientationProvider_jni.h" |
13 #include "third_party/WebKit/public/platform/WebLockOrientationError.h" | 13 #include "third_party/WebKit/public/platform/WebLockOrientationError.h" |
14 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 14 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 ScreenOrientationProviderAndroid::LockInformation::LockInformation( | 18 ScreenOrientationProviderAndroid::LockInformation::LockInformation( |
19 int request_id, blink::WebScreenOrientationLockType lock) | 19 int request_id, blink::WebScreenOrientationLockType lock) |
20 : request_id(request_id), lock(lock) {} | 20 : request_id(request_id), lock(lock) {} |
21 | 21 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 215 } |
216 | 216 |
217 // static | 217 // static |
218 ScreenOrientationProvider* ScreenOrientationProvider::Create( | 218 ScreenOrientationProvider* ScreenOrientationProvider::Create( |
219 ScreenOrientationDispatcherHost* dispatcher, | 219 ScreenOrientationDispatcherHost* dispatcher, |
220 WebContents* web_contents) { | 220 WebContents* web_contents) { |
221 return new ScreenOrientationProviderAndroid(dispatcher, web_contents); | 221 return new ScreenOrientationProviderAndroid(dispatcher, web_contents); |
222 } | 222 } |
223 | 223 |
224 } // namespace content | 224 } // namespace content |
OLD | NEW |