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

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h

Issue 14776006: Add an interface to WebTestDelegate for auto resizing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 38
39 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE 39 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
40 40
41 namespace WebKit { 41 namespace WebKit {
42 class WebFrame; 42 class WebFrame;
43 class WebGamepads; 43 class WebGamepads;
44 class WebHistoryItem; 44 class WebHistoryItem;
45 class WebMediaPlayer; 45 class WebMediaPlayer;
46 class WebMediaPlayerClient; 46 class WebMediaPlayerClient;
47 struct WebRect; 47 struct WebRect;
48 struct WebSize;
48 struct WebURLError; 49 struct WebURLError;
49 } 50 }
50 51
51 namespace WebTestRunner { 52 namespace WebTestRunner {
52 53
53 struct WebPreferences; 54 struct WebPreferences;
54 class WebTask; 55 class WebTask;
55 class WebTestProxyBase; 56 class WebTestProxyBase;
56 57
57 class WebTestDelegate { 58 class WebTestDelegate {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Manages the settings to used for layout tests. 93 // Manages the settings to used for layout tests.
93 virtual WebPreferences* preferences() = 0; 94 virtual WebPreferences* preferences() = 0;
94 virtual void applyPreferences() = 0; 95 virtual void applyPreferences() = 0;
95 96
96 // Returns a textual description of given error. 97 // Returns a textual description of given error.
97 virtual std::string makeURLErrorDescription(const WebKit::WebURLError&) = 0; 98 virtual std::string makeURLErrorDescription(const WebKit::WebURLError&) = 0;
98 99
99 // Resizes the WebView to the given size. 100 // Resizes the WebView to the given size.
100 virtual void setClientWindowRect(const WebKit::WebRect&) = 0; 101 virtual void setClientWindowRect(const WebKit::WebRect&) = 0;
101 102
103 // Controls auto resize mode.
104 virtual void enableAutoResizeMode(const WebKit::WebSize& minSize, const WebK it::WebSize& maxSize) { }
105 virtual void disableAutoResizeMode(const WebKit::WebSize&) { }
Mike West 2013/05/14 09:17:00 Why not make these pure virtual?
jochen (gone - plz use gerrit) 2013/05/14 09:17:58 can't before the chromium side landed (see the oth
106
102 // Opens and closes the inspector. 107 // Opens and closes the inspector.
103 virtual void showDevTools() = 0; 108 virtual void showDevTools() = 0;
104 virtual void closeDevTools() = 0; 109 virtual void closeDevTools() = 0;
105 110
106 // Evaluate the given script in the DevTools agent. 111 // Evaluate the given script in the DevTools agent.
107 virtual void evaluateInWebInspector(long callID, const std::string& script) = 0; 112 virtual void evaluateInWebInspector(long callID, const std::string& script) = 0;
108 113
109 // Controls WebSQL databases. 114 // Controls WebSQL databases.
110 virtual void clearAllDatabases() = 0; 115 virtual void clearAllDatabases() = 0;
111 virtual void setDatabaseQuota(int) = 0; 116 virtual void setDatabaseQuota(int) = 0;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // given WebTestProxyBase as well as the index of the current entry. 163 // given WebTestProxyBase as well as the index of the current entry.
159 virtual void captureHistoryForWindow(WebTestProxyBase*, WebKit::WebVector<We bKit::WebHistoryItem>*, size_t* currentEntryIndex) = 0; 164 virtual void captureHistoryForWindow(WebTestProxyBase*, WebKit::WebVector<We bKit::WebHistoryItem>*, size_t* currentEntryIndex) = 0;
160 165
161 // Returns a media player corresponding to |url| as src. 166 // Returns a media player corresponding to |url| as src.
162 virtual WebKit::WebMediaPlayer* createWebMediaPlayer(WebKit::WebFrame*, cons t WebKit::WebURL&, WebKit::WebMediaPlayerClient*) = 0; 167 virtual WebKit::WebMediaPlayer* createWebMediaPlayer(WebKit::WebFrame*, cons t WebKit::WebURL&, WebKit::WebMediaPlayerClient*) = 0;
163 }; 168 };
164 169
165 } 170 }
166 171
167 #endif // WebTestDelegate_h 172 #endif // WebTestDelegate_h
OLDNEW
« no previous file with comments | « no previous file | Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698