| 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 "components/test_runner/web_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "components/test_runner/accessibility_controller.h" | 10 #include "components/test_runner/accessibility_controller.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 view_test_runner_->Reset(); | 49 view_test_runner_->Reset(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void WebTestProxyBase::BindTo(blink::WebLocalFrame* frame) { | 52 void WebTestProxyBase::BindTo(blink::WebLocalFrame* frame) { |
| 53 accessibility_controller_->Install(frame); | 53 accessibility_controller_->Install(frame); |
| 54 event_sender_->Install(frame); | 54 event_sender_->Install(frame); |
| 55 text_input_controller_->Install(frame); | 55 text_input_controller_->Install(frame); |
| 56 view_test_runner_->Install(frame); | 56 view_test_runner_->Install(frame); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void WebTestProxyBase::GetScreenOrientationForTesting( | |
| 60 blink::WebScreenInfo& screen_info) { | |
| 61 MockScreenOrientationClient* mock_client = | |
| 62 test_interfaces_->GetTestRunner()->getMockScreenOrientationClient(); | |
| 63 if (mock_client->IsDisabled()) | |
| 64 return; | |
| 65 // Override screen orientation information with mock data. | |
| 66 screen_info.orientationType = mock_client->CurrentOrientationType(); | |
| 67 screen_info.orientationAngle = mock_client->CurrentOrientationAngle(); | |
| 68 } | |
| 69 | |
| 70 } // namespace test_runner | 59 } // namespace test_runner |
| OLD | NEW |