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

Side by Side Diff: chrome/test/chromedriver/stub_web_view.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) 2013 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_STUB_WEB_VIEW_H_
6 #define CHROME_TEST_CHROMEDRIVER_STUB_WEB_VIEW_H_
7
8 #include <list>
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/test/chromedriver/web_view.h"
14
15 namespace base {
16 class ListValue;
17 class Value;
18 }
19
20 struct KeyEvent;
21 struct MouseEvent;
22 class Status;
23
24 class StubWebView : public WebView {
25 public:
26 explicit StubWebView(const std::string& id);
27 virtual ~StubWebView();
28
29 // Overridden from WebView:
30 virtual std::string GetId() OVERRIDE;
31 virtual Status ConnectIfNecessary() OVERRIDE;
32 virtual Status Close() OVERRIDE;
33 virtual Status Load(const std::string& url) OVERRIDE;
34 virtual Status Reload() OVERRIDE;
35 virtual Status EvaluateScript(const std::string& frame,
36 const std::string& function,
37 scoped_ptr<base::Value>* result) OVERRIDE;
38 virtual Status CallFunction(const std::string& frame,
39 const std::string& function,
40 const base::ListValue& args,
41 scoped_ptr<base::Value>* result) OVERRIDE;
42 virtual Status GetFrameByFunction(const std::string& frame,
43 const std::string& function,
44 const base::ListValue& args,
45 std::string* out_frame) OVERRIDE;
46 virtual Status DispatchMouseEvents(
47 const std::list<MouseEvent>& events) OVERRIDE;
48 virtual Status DispatchKeyEvents(const std::list<KeyEvent>& events) OVERRIDE;
49 virtual Status GetCookies(scoped_ptr<base::ListValue>* cookies) OVERRIDE;
50 virtual Status DeleteCookie(const std::string& name,
51 const std::string& url) OVERRIDE;
52 virtual Status WaitForPendingNavigations(
53 const std::string& frame_id) OVERRIDE;
54 virtual Status IsPendingNavigation(
55 const std::string& frame_id, bool* is_pending) OVERRIDE;
56 virtual Status GetMainFrame(std::string* frame_id) OVERRIDE;
57 virtual JavaScriptDialogManager* GetJavaScriptDialogManager() OVERRIDE;
58 virtual Status CaptureScreenshot(std::string* screenshot) OVERRIDE;
59
60 private:
61 std::string id_;
62 };
63
64 #endif // CHROME_TEST_CHROMEDRIVER_STUB_WEB_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/stub_devtools_client.cc ('k') | chrome/test/chromedriver/stub_web_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698