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

Side by Side Diff: chrome/test/automation/automation_json_requests.h

Issue 10854026: Added webdriver support for App v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/common/automation_id.h ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Returns whether this ID refers to a tab. 84 // Returns whether this ID refers to a tab.
85 bool IsTab() const; 85 bool IsTab() const;
86 86
87 int tab_id() const; 87 int tab_id() const;
88 88
89 // The old style is to use a single integer ID for a tab. The new style is 89 // The old style is to use a single integer ID for a tab. The new style is
90 // to use an automation ID which may refer to a number of different object 90 // to use an automation ID which may refer to a number of different object
91 // types. 91 // types.
92 bool old_style() const; 92 bool old_style() const;
93 93
94 // Returns whether this ID refers to an App v2 view.
kkania 2012/08/07 19:57:44 This class should eventually be removed and replac
Danh Nguyen 2012/08/09 18:21:47 Done.
95 bool IsAppShell() const;
96
94 private: 97 private:
95 // Whether this ID is an old-style integer tab ID. 98 // Whether this ID is an old-style integer tab ID.
96 bool old_style_; 99 bool old_style_;
97 100
98 AutomationId id_; 101 AutomationId id_;
99 int tab_id_; 102 int tab_id_;
100 }; 103 };
101 104
102 // Used to locate a WebView. The same locator may locate different WebViews 105 // Used to locate a WebView. The same locator may locate different WebViews
103 // at different times. This is needed because Chrome used to only accept 106 // at different times. This is needed because Chrome used to only accept
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 base::Value* value, 528 base::Value* value,
526 automation::Error* error) WARN_UNUSED_RESULT; 529 automation::Error* error) WARN_UNUSED_RESULT;
527 530
528 // Requests to override the user's geolocation. Returns true on success. 531 // Requests to override the user's geolocation. Returns true on success.
529 bool SendOverrideGeolocationJSONRequest( 532 bool SendOverrideGeolocationJSONRequest(
530 AutomationMessageSender* sender, 533 AutomationMessageSender* sender,
531 const base::DictionaryValue* geolocation, 534 const base::DictionaryValue* geolocation,
532 automation::Error* error) WARN_UNUSED_RESULT; 535 automation::Error* error) WARN_UNUSED_RESULT;
533 536
534 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 537 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_id.h ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698