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

Side by Side Diff: content/shell/renderer/test_runner/WebTestProxy.h

Issue 231213002: Move modal dialogs from WebViewClient to WebFrameClient, part 1.5/3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better Created 6 years, 8 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEBTESTPROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 blink::WebMIDIClient* webMIDIClient(); 160 blink::WebMIDIClient* webMIDIClient();
161 blink::WebSpeechInputController* speechInputController(blink::WebSpeechInput Listener*); 161 blink::WebSpeechInputController* speechInputController(blink::WebSpeechInput Listener*);
162 blink::WebSpeechRecognizer* speechRecognizer(); 162 blink::WebSpeechRecognizer* speechRecognizer();
163 bool requestPointerLock(); 163 bool requestPointerLock();
164 void requestPointerUnlock(); 164 void requestPointerUnlock();
165 bool isPointerLocked(); 165 bool isPointerLocked();
166 void didFocus(); 166 void didFocus();
167 void didBlur(); 167 void didBlur();
168 void setToolTipText(const blink::WebString&, blink::WebTextDirection); 168 void setToolTipText(const blink::WebString&, blink::WebTextDirection);
169 void didAddMessageToConsole(const blink::WebConsoleMessage&, const blink::We bString& sourceName, unsigned sourceLine); 169 void didAddMessageToConsole(const blink::WebConsoleMessage&, const blink::We bString& sourceName, unsigned sourceLine);
170 void runModalAlertDialog(blink::WebLocalFrame*, const blink::WebString&);
171 bool runModalConfirmDialog(blink::WebLocalFrame*, const blink::WebString&);
172 bool runModalPromptDialog(blink::WebLocalFrame*, const blink::WebString& mes sage, const blink::WebString& defaultValue, blink::WebString* actualValue);
173 bool runModalBeforeUnloadDialog(blink::WebLocalFrame*, const blink::WebStrin g&);
174
175 void didStartProvisionalLoad(blink::WebLocalFrame*); 170 void didStartProvisionalLoad(blink::WebLocalFrame*);
176 void didReceiveServerRedirectForProvisionalLoad(blink::WebLocalFrame*); 171 void didReceiveServerRedirectForProvisionalLoad(blink::WebLocalFrame*);
177 bool didFailProvisionalLoad(blink::WebLocalFrame*, const blink::WebURLError& ); 172 bool didFailProvisionalLoad(blink::WebLocalFrame*, const blink::WebURLError& );
178 void didCommitProvisionalLoad(blink::WebLocalFrame*, bool isNewNavigation); 173 void didCommitProvisionalLoad(blink::WebLocalFrame*, bool isNewNavigation);
179 void didReceiveTitle(blink::WebLocalFrame*, const blink::WebString& title, b link::WebTextDirection); 174 void didReceiveTitle(blink::WebLocalFrame*, const blink::WebString& title, b link::WebTextDirection);
180 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type); 175 void didChangeIcon(blink::WebLocalFrame*, blink::WebIconURL::Type);
181 void didFinishDocumentLoad(blink::WebLocalFrame*); 176 void didFinishDocumentLoad(blink::WebLocalFrame*);
182 void didHandleOnloadEvents(blink::WebLocalFrame*); 177 void didHandleOnloadEvents(blink::WebLocalFrame*);
183 void didFailLoad(blink::WebLocalFrame*, const blink::WebURLError&); 178 void didFailLoad(blink::WebLocalFrame*, const blink::WebURLError&);
184 void didFinishLoad(blink::WebLocalFrame*); 179 void didFinishLoad(blink::WebLocalFrame*);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 virtual void didChangeResourcePriority(blink::WebLocalFrame* frame, unsigned identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_ value) 430 virtual void didChangeResourcePriority(blink::WebLocalFrame* frame, unsigned identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_ value)
436 { 431 {
437 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority, intra_priority_value); 432 WebTestProxyBase::didChangeResourcePriority(frame, identifier, priority, intra_priority_value);
438 Base::didChangeResourcePriority(frame, identifier, priority, intra_prior ity_value); 433 Base::didChangeResourcePriority(frame, identifier, priority, intra_prior ity_value);
439 } 434 }
440 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, unsigned ide ntifier) 435 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, unsigned ide ntifier)
441 { 436 {
442 WebTestProxyBase::didFinishResourceLoad(frame, identifier); 437 WebTestProxyBase::didFinishResourceLoad(frame, identifier);
443 Base::didFinishResourceLoad(frame, identifier); 438 Base::didFinishResourceLoad(frame, identifier);
444 } 439 }
445 virtual void runModalAlertDialog(blink::WebLocalFrame* frame, const blink::W ebString& message)
446 {
447 WebTestProxyBase::runModalAlertDialog(frame, message);
448 Base::runModalAlertDialog(frame, message);
449 }
450 virtual bool runModalConfirmDialog(blink::WebLocalFrame* frame, const blink: :WebString& message)
451 {
452 WebTestProxyBase::runModalConfirmDialog(frame, message);
453 return Base::runModalConfirmDialog(frame, message);
454 }
455 virtual bool runModalPromptDialog(blink::WebLocalFrame* frame, const blink:: WebString& message, const blink::WebString& defaultValue, blink::WebString* actu alValue)
456 {
457 WebTestProxyBase::runModalPromptDialog(frame, message, defaultValue, act ualValue);
458 return Base::runModalPromptDialog(frame, message, defaultValue, actualVa lue);
459 }
460 virtual bool runModalBeforeUnloadDialog(blink::WebLocalFrame* frame, const b link::WebString& message)
461 {
462 return WebTestProxyBase::runModalBeforeUnloadDialog(frame, message);
463 }
464 virtual bool willCheckAndDispatchMessageEvent(blink::WebLocalFrame* sourceFr ame, blink::WebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDO MMessageEvent event) 440 virtual bool willCheckAndDispatchMessageEvent(blink::WebLocalFrame* sourceFr ame, blink::WebFrame* targetFrame, blink::WebSecurityOrigin target, blink::WebDO MMessageEvent event)
465 { 441 {
466 if (WebTestProxyBase::willCheckAndDispatchMessageEvent(sourceFrame, targ etFrame, target, event)) 442 if (WebTestProxyBase::willCheckAndDispatchMessageEvent(sourceFrame, targ etFrame, target, event))
467 return true; 443 return true;
468 return Base::willCheckAndDispatchMessageEvent(sourceFrame, targetFrame, target, event); 444 return Base::willCheckAndDispatchMessageEvent(sourceFrame, targetFrame, target, event);
469 } 445 }
470 virtual blink::WebColorChooser* createColorChooser(blink::WebColorChooserCli ent* client, const blink::WebColor& color) 446 virtual blink::WebColorChooser* createColorChooser(blink::WebColorChooserCli ent* client, const blink::WebColor& color)
471 { 447 {
472 return WebTestProxyBase::createColorChooser(client, color); 448 return WebTestProxyBase::createColorChooser(client, color);
473 } 449 }
(...skipping 22 matching lines...) Expand all
496 WebTestProxyBase::postSpellCheckEvent(eventName); 472 WebTestProxyBase::postSpellCheckEvent(eventName);
497 } 473 }
498 474
499 private: 475 private:
500 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 476 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
501 }; 477 };
502 478
503 } 479 }
504 480
505 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ 481 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebFrameTestProxy.h ('k') | content/shell/renderer/test_runner/WebTestProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698