Index: chrome/browser/ui/browser.h |
=================================================================== |
--- chrome/browser/ui/browser.h (revision 116109) |
+++ chrome/browser/ui/browser.h (working copy) |
@@ -387,6 +387,8 @@ |
// 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. |