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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h" | 9 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h" |
10 #include "content/shell/renderer/test_runner/test_interfaces.h" | 10 #include "content/shell/renderer/test_runner/test_interfaces.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const blink::WebURLError& error) { | 122 const blink::WebURLError& error) { |
123 base_proxy_->DidFailLoad(frame, error); | 123 base_proxy_->DidFailLoad(frame, error); |
124 Base::didFailLoad(frame, error); | 124 Base::didFailLoad(frame, error); |
125 } | 125 } |
126 | 126 |
127 virtual void didFinishLoad(blink::WebLocalFrame* frame) { | 127 virtual void didFinishLoad(blink::WebLocalFrame* frame) { |
128 Base::didFinishLoad(frame); | 128 Base::didFinishLoad(frame); |
129 base_proxy_->DidFinishLoad(frame); | 129 base_proxy_->DidFinishLoad(frame); |
130 } | 130 } |
131 | 131 |
132 virtual blink::WebNotificationPresenter* notificationPresenter() { | |
133 return base_proxy_->GetNotificationPresenter(); | |
134 } | |
135 | |
136 virtual void didChangeSelection(bool is_selection_empty) { | 132 virtual void didChangeSelection(bool is_selection_empty) { |
137 base_proxy_->DidChangeSelection(is_selection_empty); | 133 base_proxy_->DidChangeSelection(is_selection_empty); |
138 Base::didChangeSelection(is_selection_empty); | 134 Base::didChangeSelection(is_selection_empty); |
139 } | 135 } |
140 | 136 |
141 virtual blink::WebColorChooser* createColorChooser( | 137 virtual blink::WebColorChooser* createColorChooser( |
142 blink::WebColorChooserClient* client, | 138 blink::WebColorChooserClient* client, |
143 const blink::WebColor& initial_color, | 139 const blink::WebColor& initial_color, |
144 const blink::WebVector<blink::WebColorSuggestion>& suggestions) { | 140 const blink::WebVector<blink::WebColorSuggestion>& suggestions) { |
145 return base_proxy_->CreateColorChooser(client, initial_color, suggestions); | 141 return base_proxy_->CreateColorChooser(client, initial_color, suggestions); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 #endif | 296 #endif |
301 | 297 |
302 WebTestProxyBase* base_proxy_; | 298 WebTestProxyBase* base_proxy_; |
303 | 299 |
304 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); | 300 DISALLOW_COPY_AND_ASSIGN(WebFrameTestProxy); |
305 }; | 301 }; |
306 | 302 |
307 } // namespace content | 303 } // namespace content |
308 | 304 |
309 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ | 305 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_FRAME_TEST_PROXY_H_ |
OLD | NEW |