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

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

Issue 12978003: [chromedriver] Fix 3 bugs about web view, window handle and target window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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 | « no previous file | chrome/test/chromedriver/chrome/chrome_android_impl.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 CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 class Status; 11 class Status;
12 class WebView; 12 class WebView;
13 13
14 class Chrome { 14 class Chrome {
15 public: 15 public:
16 virtual ~Chrome() {} 16 virtual ~Chrome() {}
17 17
18 virtual std::string GetVersion() = 0; 18 virtual std::string GetVersion() = 0;
19 19
20 // Return a list of opened WebViews. 20 // Return ids of opened WebViews in the same order as they are opened.
21 virtual Status GetWebViews(std::list<WebView*>* web_views) = 0; 21 virtual Status GetWebViewIds(std::list<std::string>* web_view_ids) = 0;
22
23 // Return the WebView for the given id.
24 virtual Status GetWebViewById(const std::string& id, WebView** web_view) = 0;
22 25
23 // Returns whether a JavaScript dialog is open. 26 // Returns whether a JavaScript dialog is open.
24 virtual Status IsJavaScriptDialogOpen(bool* is_open) = 0; 27 virtual Status IsJavaScriptDialogOpen(bool* is_open) = 0;
25 28
26 // Returns the message of the open JavaScript dialog. 29 // Returns the message of the open JavaScript dialog.
27 virtual Status GetJavaScriptDialogMessage(std::string* message) = 0; 30 virtual Status GetJavaScriptDialogMessage(std::string* message) = 0;
28 31
29 // Handles an open JavaScript dialog. 32 // Handles an open JavaScript dialog.
30 virtual Status HandleJavaScriptDialog(bool accept, 33 virtual Status HandleJavaScriptDialog(bool accept,
31 const std::string& prompt_text) = 0; 34 const std::string& prompt_text) = 0;
32 35
33 // Get the operation system where Chrome is running. 36 // Get the operation system where Chrome is running.
34 virtual std::string GetOperatingSystemName() = 0; 37 virtual std::string GetOperatingSystemName() = 0;
35 38
36 // Quits Chrome. 39 // Quits Chrome.
37 virtual Status Quit() = 0; 40 virtual Status Quit() = 0;
38 }; 41 };
39 42
40 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_ 43 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome/chrome_android_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698