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

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

Issue 12764021: [chromedriver] Support clicking an element in sub frames. (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_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 #include "chrome/test/chromedriver/basic_types.h"
12 13
13 namespace base { 14 namespace base {
14 class ListValue; 15 class ListValue;
15 class Value; 16 class Value;
16 } 17 }
17 18
18 class JavaScriptDialogManager; 19 class JavaScriptDialogManager;
19 struct KeyEvent; 20 struct KeyEvent;
20 struct MouseEvent; 21 struct MouseEvent;
21 class Status; 22 class Status;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 virtual Status WaitForPendingNavigations(const std::string& frame_id) = 0; 84 virtual Status WaitForPendingNavigations(const std::string& frame_id) = 0;
84 85
85 // Returns the frame id for the main frame. 86 // Returns the frame id for the main frame.
86 virtual Status GetMainFrame(std::string* out_frame) = 0; 87 virtual Status GetMainFrame(std::string* out_frame) = 0;
87 88
88 // Returns the JavaScriptDialogManager. Never null. 89 // Returns the JavaScriptDialogManager. Never null.
89 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() = 0; 90 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() = 0;
90 91
91 // Captures the visible portions of the web view as a base64-encoded PNG. 92 // Captures the visible portions of the web view as a base64-encoded PNG.
92 virtual Status CaptureScreenshot(std::string* screenshot) = 0; 93 virtual Status CaptureScreenshot(std::string* screenshot) = 0;
94
95 // Return a list of Frame, from the given frame to the main frame.
96 virtual Status GetFramePath(const std::string& frame_id,
97 std::list<Frame>* frames) = 0;
93 }; 98 };
94 99
95 #endif // CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_ 100 #endif // CHROME_TEST_CHROMEDRIVER_WEB_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698