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_dispatcher_host_
impl.h" | 5 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host_
impl.h" |
6 | 6 |
7 #include "content/common/screen_orientation_messages.h" | 7 #include "content/common/screen_orientation_messages.h" |
8 #include "content/public/browser/navigation_details.h" | 8 #include "content/public/browser/navigation_details.h" |
9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
10 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
11 #include "content/public/browser/render_view_host.h" | 11 #include "content/public/browser/render_view_host.h" |
12 #include "content/public/browser/render_widget_host.h" | 12 #include "content/public/browser/render_widget_host.h" |
13 #include "content/public/browser/screen_orientation_provider.h" | 13 #include "content/public/browser/screen_orientation_provider.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | |
16 | 15 |
17 namespace content { | 16 namespace content { |
18 | 17 |
19 ScreenOrientationDispatcherHostImpl::LockInformation::LockInformation( | 18 ScreenOrientationDispatcherHostImpl::LockInformation::LockInformation( |
20 int request_id, int process_id, int routing_id) | 19 int request_id, int process_id, int routing_id) |
21 : request_id(request_id), | 20 : request_id(request_id), |
22 process_id(process_id), | 21 process_id(process_id), |
23 routing_id(routing_id) { | 22 routing_id(routing_id) { |
24 } | 23 } |
25 | 24 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 blink::WebLockOrientationErrorCanceled); | 136 blink::WebLockOrientationErrorCanceled); |
138 } | 137 } |
139 | 138 |
140 if (!provider_) | 139 if (!provider_) |
141 return; | 140 return; |
142 | 141 |
143 provider_->UnlockOrientation(); | 142 provider_->UnlockOrientation(); |
144 } | 143 } |
145 | 144 |
146 } // namespace content | 145 } // namespace content |
OLD | NEW |