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

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

Issue 11639019: [chromedriver] Implement SwitchToFrame command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
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_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace base { 12 namespace base {
13 class ListValue; 13 class ListValue;
14 class Value; 14 class Value;
15 } 15 }
16 16
17 class Status; 17 class Status;
18 18
19 class Chrome { 19 class Chrome {
20 public: 20 public:
21 virtual ~Chrome() {} 21 virtual ~Chrome() {}
22 22
23 virtual Status Load(const std::string& url) = 0; 23 virtual Status Load(const std::string& url) = 0;
24 virtual Status EvaluateScript(const std::string& expression, 24 virtual Status EvaluateScript(const std::string& frame,
25 const std::string& expression,
25 scoped_ptr<base::Value>* result) = 0; 26 scoped_ptr<base::Value>* result) = 0;
26 virtual Status CallFunction(const std::string& function, 27 virtual Status CallFunction(const std::string& frame,
28 const std::string& function,
27 const base::ListValue& args, 29 const base::ListValue& args,
28 scoped_ptr<base::Value>* result) = 0; 30 scoped_ptr<base::Value>* result) = 0;
31 virtual Status GetFrameByFunction(const std::string& frame,
32 const std::string& function,
33 const base::ListValue& args,
34 std::string* out_frame) = 0;
29 virtual Status Quit() = 0; 35 virtual Status Quit() = 0;
30 }; 36 };
31 37
32 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_H_ 38 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698