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

Side by Side Diff: chrome/test/chromedriver/web_view.h

Issue 12321057: [chromedriver] Implement reconnection to DevTools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 9 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 | « chrome/test/chromedriver/stub_web_view.cc ('k') | chrome/test/chromedriver/web_view_impl.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_
6 #define CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_ 6 #define CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace base { 13 namespace base {
14 class ListValue; 14 class ListValue;
15 class Value; 15 class Value;
16 } 16 }
17 17
18 class JavaScriptDialogManager; 18 class JavaScriptDialogManager;
19 struct KeyEvent; 19 struct KeyEvent;
20 struct MouseEvent; 20 struct MouseEvent;
21 class Status; 21 class Status;
22 22
23 class WebView { 23 class WebView {
24 public: 24 public:
25 virtual ~WebView() {} 25 virtual ~WebView() {}
26 26
27 // Return the id for this WebView. 27 // Return the id for this WebView.
28 virtual std::string GetId() = 0; 28 virtual std::string GetId() = 0;
29 29
30 // Make DevToolsCient connect to DevTools if it is disconnected.
31 virtual Status ConnectIfNecessary() = 0;
32
30 // Close the WebView itself. 33 // Close the WebView itself.
31 virtual Status Close() = 0; 34 virtual Status Close() = 0;
32 35
33 // Load a given URL in the main frame. 36 // Load a given URL in the main frame.
34 virtual Status Load(const std::string& url) = 0; 37 virtual Status Load(const std::string& url) = 0;
35 38
36 // Reload the current page. 39 // Reload the current page.
37 virtual Status Reload() = 0; 40 virtual Status Reload() = 0;
38 41
39 // Evaluates a JavaScript expression in a specified frame and returns 42 // Evaluates a JavaScript expression in a specified frame and returns
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual Status GetMainFrame(std::string* out_frame) = 0; 79 virtual Status GetMainFrame(std::string* out_frame) = 0;
77 80
78 // Returns the JavaScriptDialogManager. Never null. 81 // Returns the JavaScriptDialogManager. Never null.
79 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() = 0; 82 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() = 0;
80 83
81 // Captures the visible portions of the web view as a base64-encoded PNG. 84 // Captures the visible portions of the web view as a base64-encoded PNG.
82 virtual Status CaptureScreenshot(std::string* screenshot) = 0; 85 virtual Status CaptureScreenshot(std::string* screenshot) = 0;
83 }; 86 };
84 87
85 #endif // CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_ 88 #endif // CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/stub_web_view.cc ('k') | chrome/test/chromedriver/web_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698