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

Side by Side Diff: chrome/test/chromedriver/chrome/stub_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: 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
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_CHROME_STUB_CHROME_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/test/chromedriver/chrome/chrome.h" 11 #include "chrome/test/chromedriver/chrome/chrome.h"
12 12
13 class Status; 13 class Status;
14 class WebView; 14 class WebView;
15 15
16 class StubChrome : public Chrome { 16 class StubChrome : public Chrome {
17 public: 17 public:
18 StubChrome(); 18 StubChrome();
19 virtual ~StubChrome(); 19 virtual ~StubChrome();
20 20
21 // Overridden from Chrome: 21 // Overridden from Chrome:
22 virtual std::string GetVersion() OVERRIDE; 22 virtual std::string GetVersion() OVERRIDE;
23 virtual Status GetWebViews(std::list<WebView*>* web_views) OVERRIDE; 23 virtual Status GetWebViewIds(std::list<std::string>* web_view_ids) OVERRIDE;
24 virtual Status GetWebViewById(const std::string& id,
25 WebView** web_view) OVERRIDE;
24 virtual Status IsJavaScriptDialogOpen(bool* is_open) OVERRIDE; 26 virtual Status IsJavaScriptDialogOpen(bool* is_open) OVERRIDE;
25 virtual Status GetJavaScriptDialogMessage(std::string* message) OVERRIDE; 27 virtual Status GetJavaScriptDialogMessage(std::string* message) OVERRIDE;
26 virtual Status HandleJavaScriptDialog( 28 virtual Status HandleJavaScriptDialog(
27 bool accept, 29 bool accept,
28 const std::string& prompt_text) OVERRIDE; 30 const std::string& prompt_text) OVERRIDE;
29 virtual std::string GetOperatingSystemName() OVERRIDE; 31 virtual std::string GetOperatingSystemName() OVERRIDE;
30 virtual Status Quit() OVERRIDE; 32 virtual Status Quit() OVERRIDE;
31 }; 33 };
32 34
33 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_ 35 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_STUB_CHROME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698