Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |