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/shell/renderer/test_runner/mock_screen_orientation_client.h" | 5 #include "components/test_runner/mock_screen_orientation_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 10 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 MockScreenOrientationClient::MockScreenOrientationClient() | 14 MockScreenOrientationClient::MockScreenOrientationClient() |
15 : main_frame_(NULL), | 15 : main_frame_(NULL), |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 case blink::WebScreenOrientationLockLandscape: | 152 case blink::WebScreenOrientationLockLandscape: |
153 return blink::WebScreenOrientationLandscapePrimary; | 153 return blink::WebScreenOrientationLandscapePrimary; |
154 case blink::WebScreenOrientationLockLandscapeSecondary: | 154 case blink::WebScreenOrientationLockLandscapeSecondary: |
155 return blink::WebScreenOrientationLandscapePrimary; | 155 return blink::WebScreenOrientationLandscapePrimary; |
156 default: | 156 default: |
157 return blink::WebScreenOrientationPortraitPrimary; | 157 return blink::WebScreenOrientationPortraitPrimary; |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 } // namespace content | 161 } // namespace content |
OLD | NEW |