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

Side by Side Diff: content/shell/webkit_test_runner.h

Issue 11573035: [content shell] implement testRunner.execCommand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years 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 | content/shell/webkit_test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_RUNNER_H_ 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void NotifyDone(); 64 void NotifyDone();
65 void DumpAsText(); 65 void DumpAsText();
66 void DumpChildFramesAsText(); 66 void DumpChildFramesAsText();
67 void SetPrinting(); 67 void SetPrinting();
68 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); 68 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page);
69 void WaitUntilDone(); 69 void WaitUntilDone();
70 void CanOpenWindows(); 70 void CanOpenWindows();
71 void ShowWebInspector(); 71 void ShowWebInspector();
72 void CloseWebInspector(); 72 void CloseWebInspector();
73 void EvaluateInWebInspector(int32_t call_id, const std::string& script); 73 void EvaluateInWebInspector(int32_t call_id, const std::string& script);
74 void ExecCommand(const std::string& command, const std::string& value);
74 75
75 void NotImplemented(const std::string& object, const std::string& method); 76 void NotImplemented(const std::string& object, const std::string& method);
76 77
77 void set_proxy(WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; } 78 void set_proxy(WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; }
78 79
79 private: 80 private:
80 // Message handlers. 81 // Message handlers.
81 void OnCaptureTextDump(bool as_text, bool printing, bool recursive); 82 void OnCaptureTextDump(bool as_text, bool printing, bool recursive);
82 void OnCaptureImageDump(const std::string& expected_pixel_hash); 83 void OnCaptureImageDump(const std::string& expected_pixel_hash);
83 void OnSetCurrentWorkingDirectory(const FilePath& current_working_directory); 84 void OnSetCurrentWorkingDirectory(const FilePath& current_working_directory);
(...skipping 10 matching lines...) Expand all
94 WebTestRunner::WebTestProxyBase* proxy_; 95 WebTestRunner::WebTestProxyBase* proxy_;
95 96
96 ShellWebPreferences prefs_; 97 ShellWebPreferences prefs_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); 99 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);
99 }; 100 };
100 101
101 } // namespace content 102 } // namespace content
102 103
103 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 104 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/webkit_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698