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 #ifndef COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "components/test_runner/mock_screen_orientation_client.h" | 9 #include "components/test_runner/mock_screen_orientation_client.h" |
10 #include "components/test_runner/web_test_delegate.h" | 10 #include "components/test_runner/web_test_delegate.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 blink::WebFrame* target_frame, | 261 blink::WebFrame* target_frame, |
262 blink::WebSecurityOrigin target, | 262 blink::WebSecurityOrigin target, |
263 blink::WebDOMMessageEvent event) { | 263 blink::WebDOMMessageEvent event) { |
264 if (base_proxy_->WillCheckAndDispatchMessageEvent( | 264 if (base_proxy_->WillCheckAndDispatchMessageEvent( |
265 source_frame, target_frame, target, event)) | 265 source_frame, target_frame, target, event)) |
266 return true; | 266 return true; |
267 return Base::willCheckAndDispatchMessageEvent( | 267 return Base::willCheckAndDispatchMessageEvent( |
268 source_frame, target_frame, target, event); | 268 source_frame, target_frame, target, event); |
269 } | 269 } |
270 | 270 |
271 virtual void didStopLoading() { | |
272 base_proxy_->DidStopLoading(); | |
273 Base::didStopLoading(); | |
274 } | |
275 | |
276 virtual void postAccessibilityEvent(const blink::WebAXObject& object, | 271 virtual void postAccessibilityEvent(const blink::WebAXObject& object, |
277 blink::WebAXEvent event) { | 272 blink::WebAXEvent event) { |
278 base_proxy_->PostAccessibilityEvent(object, event); | 273 base_proxy_->PostAccessibilityEvent(object, event); |
279 Base::postAccessibilityEvent(object, event); | 274 Base::postAccessibilityEvent(object, event); |
280 } | 275 } |
281 | 276 |
282 private: | 277 private: |
283 WebTestProxyBase* base_proxy_; | 278 WebTestProxyBase* base_proxy_; |
284 | 279 |
285 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 280 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
286 }; | 281 }; |
287 | 282 |
288 } // namespace test_runner | 283 } // namespace test_runner |
289 | 284 |
290 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 285 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
OLD | NEW |