diff options
Diffstat (limited to 'chrome/browser/ui/browser.h')
-rw-r--r-- | chrome/browser/ui/browser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h index 92494e0..62a8f14 100644 --- a/chrome/browser/ui/browser.h +++ b/chrome/browser/ui/browser.h @@ -387,6 +387,8 @@ class Browser : public TabHandlerDelegate, // TODO(dpapad): Rename to GetActiveTabContentsWrapper(). TabContentsWrapper* GetSelectedTabContentsWrapper() const; + // A convenient version of the above which returns the TCW's WebContents. + content::WebContents* GetSelectedWebContents() const; TabContentsWrapper* GetTabContentsWrapperAt(int index) const; // Same as above but correctly handles if GetSelectedTabContents() is NULL // in the model before dereferencing to get the raw TabContents. |