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.
h" | 5 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host.
h" |
6 | 6 |
7 #include "content/browser/screen_orientation/screen_orientation_provider.h" | 7 #include "content/browser/screen_orientation/screen_orientation_provider.h" |
8 #include "content/common/screen_orientation_messages.h" | 8 #include "content/common/screen_orientation_messages.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" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 NotifyLockError(current_lock_->request_id, render_frame_host, | 128 NotifyLockError(current_lock_->request_id, render_frame_host, |
129 blink::WebLockOrientationErrorCanceled); | 129 blink::WebLockOrientationErrorCanceled); |
130 } | 130 } |
131 | 131 |
132 if (!provider_) | 132 if (!provider_) |
133 return; | 133 return; |
134 | 134 |
135 provider_->UnlockOrientation(); | 135 provider_->UnlockOrientation(); |
136 } | 136 } |
137 | 137 |
| 138 void ScreenOrientationDispatcherHost::SetProvider( |
| 139 ScreenOrientationProvider* provider) { |
| 140 provider_.reset(provider); |
| 141 } |
| 142 |
138 } // namespace content | 143 } // namespace content |
OLD | NEW |