Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: components/test_runner/web_frame_test_proxy.h

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698