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/macros.h" | 8 #include "base/macros.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 base_proxy_->DidReceiveTitle(frame, title, direction); | 105 base_proxy_->DidReceiveTitle(frame, title, direction); |
106 Base::didReceiveTitle(frame, title, direction); | 106 Base::didReceiveTitle(frame, title, direction); |
107 } | 107 } |
108 | 108 |
109 virtual void didChangeIcon(blink::WebLocalFrame* frame, | 109 virtual void didChangeIcon(blink::WebLocalFrame* frame, |
110 blink::WebIconURL::Type icon_type) { | 110 blink::WebIconURL::Type icon_type) { |
111 base_proxy_->DidChangeIcon(frame, icon_type); | 111 base_proxy_->DidChangeIcon(frame, icon_type); |
112 Base::didChangeIcon(frame, icon_type); | 112 Base::didChangeIcon(frame, icon_type); |
113 } | 113 } |
114 | 114 |
115 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame, bool empty) { | 115 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame) { |
116 base_proxy_->DidFinishDocumentLoad(frame); | 116 base_proxy_->DidFinishDocumentLoad(frame); |
117 Base::didFinishDocumentLoad(frame, empty); | 117 Base::didFinishDocumentLoad(frame); |
118 } | 118 } |
119 | 119 |
120 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame) { | 120 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame) { |
121 base_proxy_->DidHandleOnloadEvents(frame); | 121 base_proxy_->DidHandleOnloadEvents(frame); |
122 Base::didHandleOnloadEvents(frame); | 122 Base::didHandleOnloadEvents(frame); |
123 } | 123 } |
124 | 124 |
125 virtual void didFailLoad(blink::WebLocalFrame* frame, | 125 virtual void didFailLoad(blink::WebLocalFrame* frame, |
126 const blink::WebURLError& error, | 126 const blink::WebURLError& error, |
127 blink::WebHistoryCommitType commit_type) { | 127 blink::WebHistoryCommitType commit_type) { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 private: | 281 private: |
282 WebTestProxyBase* base_proxy_; | 282 WebTestProxyBase* base_proxy_; |
283 | 283 |
284 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 284 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
285 }; | 285 }; |
286 | 286 |
287 } // namespace test_runner | 287 } // namespace test_runner |
288 | 288 |
289 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 289 #endif // COMPONENTS_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
OLD | NEW |