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 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 provider_->LockOrientation(orientations); | 51 provider_->LockOrientation(orientations); |
52 } | 52 } |
53 | 53 |
54 void ScreenOrientationDispatcherHost::OnUnlockRequest() { | 54 void ScreenOrientationDispatcherHost::OnUnlockRequest() { |
55 if (!provider_.get()) | 55 if (!provider_.get()) |
56 return; | 56 return; |
57 | 57 |
58 provider_->UnlockOrientation(); | 58 provider_->UnlockOrientation(); |
59 } | 59 } |
60 | 60 |
| 61 #if !defined(OS_ANDROID) |
61 // static | 62 // static |
62 ScreenOrientationProvider* ScreenOrientationDispatcherHost::CreateProvider() { | 63 ScreenOrientationProvider* ScreenOrientationDispatcherHost::CreateProvider() { |
63 return NULL; | 64 return NULL; |
64 } | 65 } |
| 66 #endif |
65 | 67 |
66 } // namespace content | 68 } // namespace content |
OLD | NEW |