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

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

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_H_
7
8 #include <list>
9 #include <string>
10
11 class Status;
12 class WebView;
13
14 class Chrome {
15 public:
16 virtual ~Chrome() {}
17
18 virtual std::string GetVersion() = 0;
19
20 // Return a list of opened WebViews.
21 virtual Status GetWebViews(std::list<WebView*>* web_views) = 0;
22
23 // Returns whether a JavaScript dialog is open.
24 virtual Status IsJavaScriptDialogOpen(bool* is_open) = 0;
25
26 // Returns the message of the open JavaScript dialog.
27 virtual Status GetJavaScriptDialogMessage(std::string* message) = 0;
28
29 // Handles an open JavaScript dialog.
30 virtual Status HandleJavaScriptDialog(bool accept,
31 const std::string& prompt_text) = 0;
32
33 // Get the operation system where Chrome is running.
34 virtual std::string GetOperatingSystemName() = 0;
35
36 // Quits Chrome.
37 virtual Status Quit() = 0;
38 };
39
40 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/adb_commands.py ('k') | chrome/test/chromedriver/chrome/adb_commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698