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

Unified Diff: chrome/browser/automation/automation_util.h

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/automation/automation_provider_json.cc ('k') | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_util.h
diff --git a/chrome/browser/automation/automation_util.h b/chrome/browser/automation/automation_util.h
index fb3a3f6aa17731c4dd2ec87b025d83f0b5488d19..e52036950ad5de4fd5b2063cbf8a1de664df7fe3 100644
--- a/chrome/browser/automation/automation_util.h
+++ b/chrome/browser/automation/automation_util.h
@@ -10,10 +10,15 @@
#include "base/basictypes.h"
+class AutomationId;
class AutomationProvider;
class Browser;
+class Extension;
class GURL;
+class Profile;
+class RenderViewHost;
class TabContents;
+class TabContentsWrapper;
namespace base {
class DictionaryValue;
@@ -31,6 +36,10 @@ namespace automation_util {
// index is out of range.
Browser* GetBrowserAt(int index);
+// Searches the |BrowserList| for |browser| and, if found, sets |found_index|
+// to the corresponding index. Returns true if found.
+bool GetBrowserIndex(Browser* browser, int* found_index);
+
// Returns the tab at |tab_index| within the browser at |browser_index| in the
// |BrowserList|. If any of these indices are invalid, NULL will be returned.
TabContents* GetTabContentsAt(int browser_index, int tab_index);
@@ -77,6 +86,19 @@ void SetCookieJSON(AutomationProvider* provider,
bool SendErrorIfModalDialogActive(AutomationProvider* provider,
IPC::Message* message);
+AutomationId GetIdForTab(const TabContentsWrapper* tab);
+AutomationId GetIdForExtensionPopup(const Extension* extension);
+bool GetTabForId(const AutomationId& id, TabContents** tab);
+bool GetExtensionPopupForId(
+ const AutomationId& id,
+ Profile* profile,
+ RenderViewHost** rvh);
+bool GetRenderViewForId(
+ const AutomationId& id,
+ Profile* profile,
+ RenderViewHost** rvh);
+bool DoesObjectWithIdExist(const AutomationId& id, Profile* profile);
+
} // namespace automation_util
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_UTIL_H_
« no previous file with comments | « chrome/browser/automation/automation_provider_json.cc ('k') | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698