OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBKIT_TEST_CONTROLLER_H_ | 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ |
6 #define CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ | 6 #define CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ |
7 | 7 |
8 #include <ostream> | 8 #include <ostream> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 static WebKitTestController* instance_; | 106 static WebKitTestController* instance_; |
107 | 107 |
108 void CaptureDump(); | 108 void CaptureDump(); |
109 void TimeoutHandler(); | 109 void TimeoutHandler(); |
110 | 110 |
111 // Message handlers. | 111 // Message handlers. |
112 void OnDidFinishLoad(); | 112 void OnDidFinishLoad(); |
113 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image); | 113 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image); |
114 void OnTextDump(const std::string& dump); | 114 void OnTextDump(const std::string& dump); |
115 void OnPrintMessage(const std::string& message); | 115 void OnPrintMessage(const std::string& message); |
| 116 void OnReadFileToString(const FilePath& file_path, std::string* contents); |
116 void OnOverridePreferences(const ShellWebPreferences& prefs); | 117 void OnOverridePreferences(const ShellWebPreferences& prefs); |
117 void OnNotifyDone(); | 118 void OnNotifyDone(); |
118 void OnDumpAsText(); | 119 void OnDumpAsText(); |
119 void OnDumpChildFramesAsText(); | 120 void OnDumpChildFramesAsText(); |
120 void OnSetPrinting(); | 121 void OnSetPrinting(); |
121 void OnSetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); | 122 void OnSetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); |
122 void OnWaitUntilDone(); | 123 void OnWaitUntilDone(); |
123 void OnCanOpenWindows(); | 124 void OnCanOpenWindows(); |
124 void OnShowWebInspector(); | 125 void OnShowWebInspector(); |
125 void OnCloseWebInspector(); | 126 void OnCloseWebInspector(); |
(...skipping 29 matching lines...) Expand all Loading... |
155 // Access to the following variables needs to be guarded by |lock_|. | 156 // Access to the following variables needs to be guarded by |lock_|. |
156 mutable base::Lock lock_; | 157 mutable base::Lock lock_; |
157 bool can_open_windows_; | 158 bool can_open_windows_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(WebKitTestController); | 160 DISALLOW_COPY_AND_ASSIGN(WebKitTestController); |
160 }; | 161 }; |
161 | 162 |
162 } // namespace content | 163 } // namespace content |
163 | 164 |
164 #endif // CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ | 165 #endif // CONTENT_SHELL_WEBKIT_TEST_CONTROLLER_H_ |
OLD | NEW |