| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| 11 class BrowserWindowTesting; | 11 class BrowserWindowTesting; |
| 12 class DownloadShelf; | 12 class DownloadShelf; |
| 13 class FindBar; | 13 class FindBar; |
| 14 class GURL; | 14 class GURL; |
| 15 class LocationBar; | 15 class LocationBar; |
| 16 class HtmlDialogUIDelegate; | 16 class HtmlDialogUIDelegate; |
| 17 class StatusBubble; | 17 class StatusBubble; |
| 18 class TabContents; | 18 class TabContents; |
| 19 class TabContentsContainer; |
| 19 | 20 |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class Rect; | 22 class Rect; |
| 22 } | 23 } |
| 23 | 24 |
| 24 //////////////////////////////////////////////////////////////////////////////// | 25 //////////////////////////////////////////////////////////////////////////////// |
| 25 // BrowserWindow interface | 26 // BrowserWindow interface |
| 26 // An interface implemented by the "view" of the Browser window. | 27 // An interface implemented by the "view" of the Browser window. |
| 27 // | 28 // |
| 28 // NOTE: All getters except GetTabStrip() may return NULL. | 29 // NOTE: All getters except GetTabStrip() may return NULL. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // BrowserThemeProvider calls this when a user has changed his or her theme, | 184 // BrowserThemeProvider calls this when a user has changed his or her theme, |
| 184 // indicating that it's time to redraw everything. | 185 // indicating that it's time to redraw everything. |
| 185 virtual void UserChangedTheme() = 0; | 186 virtual void UserChangedTheme() = 0; |
| 186 | 187 |
| 187 // Get extra vertical height that the render view should add to its requests | 188 // Get extra vertical height that the render view should add to its requests |
| 188 // to webkit. This can help prevent sending extraneous layout/repaint requests | 189 // to webkit. This can help prevent sending extraneous layout/repaint requests |
| 189 // when the delegate is in the process of resizing the tab contents view (e.g. | 190 // when the delegate is in the process of resizing the tab contents view (e.g. |
| 190 // during infobar animations). | 191 // during infobar animations). |
| 191 virtual int GetExtraRenderViewHeight() const = 0; | 192 virtual int GetExtraRenderViewHeight() const = 0; |
| 192 | 193 |
| 194 // Notification that |tab_contents| got the focus through user action (click |
| 195 // on the page). |
| 196 virtual void TabContentsFocused(TabContents* tab_contents) = 0; |
| 197 |
| 193 // Construct a BrowserWindow implementation for the specified |browser|. | 198 // Construct a BrowserWindow implementation for the specified |browser|. |
| 194 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 199 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
| 195 | 200 |
| 196 // Construct a FindBar implementation for the specified |browser|. | 201 // Construct a FindBar implementation for the specified |browser|. |
| 197 static FindBar* CreateFindBar(Browser* browser_window); | 202 static FindBar* CreateFindBar(Browser* browser_window); |
| 198 | 203 |
| 199 protected: | 204 protected: |
| 200 friend class BrowserList; | 205 friend class BrowserList; |
| 201 friend class BrowserView; | 206 friend class BrowserView; |
| 202 virtual void DestroyBrowser() = 0; | 207 virtual void DestroyBrowser() = 0; |
| 203 }; | 208 }; |
| 204 | 209 |
| 205 #if defined(OS_WIN) | 210 #if defined(OS_WIN) |
| 206 class BookmarkBarView; | 211 class BookmarkBarView; |
| 207 class LocationBarView; | 212 class LocationBarView; |
| 208 #endif | 213 #endif |
| 209 | 214 |
| 210 // A BrowserWindow utility interface used for accessing elements of the browser | 215 // A BrowserWindow utility interface used for accessing elements of the browser |
| 211 // UI used only by UI test automation. | 216 // UI used only by UI test automation. |
| 212 class BrowserWindowTesting { | 217 class BrowserWindowTesting { |
| 213 public: | 218 public: |
| 214 #if defined(OS_WIN) | 219 #if defined(OS_WIN) |
| 215 // Returns the BookmarkBarView. | 220 // Returns the BookmarkBarView. |
| 216 virtual BookmarkBarView* GetBookmarkBarView() const = 0; | 221 virtual BookmarkBarView* GetBookmarkBarView() const = 0; |
| 217 | 222 |
| 218 // Returns the LocationBarView. | 223 // Returns the LocationBarView. |
| 219 virtual LocationBarView* GetLocationBarView() const = 0; | 224 virtual LocationBarView* GetLocationBarView() const = 0; |
| 225 |
| 226 // Returns the TabContentsContainer. |
| 227 virtual views::View* GetTabContentsContainerView() const = 0; |
| 220 #endif | 228 #endif |
| 221 }; | 229 }; |
| 222 | 230 |
| 223 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 231 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
| OLD | NEW |