| 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_
|
|
|