| 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_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "views/controls/menu/simple_menu_model.h" | 24 #include "views/controls/menu/simple_menu_model.h" |
| 25 #include "views/window/client_view.h" | 25 #include "views/window/client_view.h" |
| 26 #include "views/window/window_delegate.h" | 26 #include "views/window/window_delegate.h" |
| 27 | 27 |
| 28 // NOTE: For more information about the objects and files in this directory, | 28 // NOTE: For more information about the objects and files in this directory, |
| 29 // view: http://dev.chromium.org/developers/design-documents/browser-window | 29 // view: http://dev.chromium.org/developers/design-documents/browser-window |
| 30 | 30 |
| 31 class BookmarkBarView; | 31 class BookmarkBarView; |
| 32 class Browser; | 32 class Browser; |
| 33 class BrowserBubble; | 33 class BrowserBubble; |
| 34 class BrowserTabStrip; | |
| 35 class DownloadShelfView; | 34 class DownloadShelfView; |
| 36 class EncodingMenuModel; | 35 class EncodingMenuModel; |
| 37 class ExtensionShelf; | 36 class ExtensionShelf; |
| 38 class FullscreenExitBubble; | 37 class FullscreenExitBubble; |
| 39 class HtmlDialogUIDelegate; | 38 class HtmlDialogUIDelegate; |
| 40 class InfoBarContainer; | 39 class InfoBarContainer; |
| 41 class LocationBarView; | 40 class LocationBarView; |
| 42 class StatusBubbleViews; | 41 class StatusBubbleViews; |
| 43 class TabContentsContainer; | 42 class TabContentsContainer; |
| 44 class TabStrip; | 43 class TabStripWrapper; |
| 45 class ToolbarView; | 44 class ToolbarView; |
| 46 class ZoomMenuModel; | 45 class ZoomMenuModel; |
| 47 | 46 |
| 48 namespace views { | 47 namespace views { |
| 49 class Menu; | 48 class Menu; |
| 50 class SingleSplitView; | 49 class SingleSplitView; |
| 51 } | 50 } |
| 52 | 51 |
| 53 /////////////////////////////////////////////////////////////////////////////// | 52 /////////////////////////////////////////////////////////////////////////////// |
| 54 // BrowserView | 53 // BrowserView |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 113 |
| 115 // Returns the preferred height of the TabStrip. Used to position the OTR | 114 // Returns the preferred height of the TabStrip. Used to position the OTR |
| 116 // avatar icon. | 115 // avatar icon. |
| 117 int GetTabStripHeight() const; | 116 int GetTabStripHeight() const; |
| 118 | 117 |
| 119 // Returns the bounds of the TabStrip. Used by themed views to determine the | 118 // Returns the bounds of the TabStrip. Used by themed views to determine the |
| 120 // offset of IDR_THEME_TOOLBAR. | 119 // offset of IDR_THEME_TOOLBAR. |
| 121 gfx::Rect GetTabStripBounds() const; | 120 gfx::Rect GetTabStripBounds() const; |
| 122 | 121 |
| 123 // Accessor for the TabStrip. | 122 // Accessor for the TabStrip. |
| 124 TabStrip* tabstrip() const { return tabstrip_; } | 123 TabStripWrapper* tabstrip() const { return tabstrip_; } |
| 125 BrowserTabStrip* bts() const { return bts_; } | |
| 126 | 124 |
| 127 // Accessor for the ExtensionShelf. | 125 // Accessor for the ExtensionShelf. |
| 128 ExtensionShelf* extension_shelf() const { return extension_shelf_; } | 126 ExtensionShelf* extension_shelf() const { return extension_shelf_; } |
| 129 | 127 |
| 130 // Returns true if various window components are visible. | 128 // Returns true if various window components are visible. |
| 131 bool IsToolbarVisible() const; | 129 bool IsToolbarVisible() const; |
| 132 bool IsTabStripVisible() const; | 130 bool IsTabStripVisible() const; |
| 133 | 131 |
| 134 // Returns true if the profile associated with this Browser window is | 132 // Returns true if the profile associated with this Browser window is |
| 135 // off the record. | 133 // off the record. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 387 |
| 390 // The Browser object we are associated with. | 388 // The Browser object we are associated with. |
| 391 scoped_ptr<Browser> browser_; | 389 scoped_ptr<Browser> browser_; |
| 392 | 390 |
| 393 // Tool/Info bars that we are currently showing. Used for layout. | 391 // Tool/Info bars that we are currently showing. Used for layout. |
| 394 // active_bookmark_bar_ is either NULL, if the bookmark bar isn't showing, | 392 // active_bookmark_bar_ is either NULL, if the bookmark bar isn't showing, |
| 395 // or is bookmark_bar_view_ if the bookmark bar is showing. | 393 // or is bookmark_bar_view_ if the bookmark bar is showing. |
| 396 views::View* active_bookmark_bar_; | 394 views::View* active_bookmark_bar_; |
| 397 | 395 |
| 398 // The TabStrip. | 396 // The TabStrip. |
| 399 TabStrip* tabstrip_; | 397 TabStripWrapper* tabstrip_; |
| 400 | |
| 401 // The BrowserTabStrip. | |
| 402 BrowserTabStrip* bts_; | |
| 403 | 398 |
| 404 // The Toolbar containing the navigation buttons, menus and the address bar. | 399 // The Toolbar containing the navigation buttons, menus and the address bar. |
| 405 ToolbarView* toolbar_; | 400 ToolbarView* toolbar_; |
| 406 | 401 |
| 407 // The Bookmark Bar View for this window. Lazily created. | 402 // The Bookmark Bar View for this window. Lazily created. |
| 408 scoped_ptr<BookmarkBarView> bookmark_bar_view_; | 403 scoped_ptr<BookmarkBarView> bookmark_bar_view_; |
| 409 | 404 |
| 410 // The download shelf view (view at the bottom of the page). | 405 // The download shelf view (view at the bottom of the page). |
| 411 scoped_ptr<DownloadShelfView> download_shelf_; | 406 scoped_ptr<DownloadShelfView> download_shelf_; |
| 412 | 407 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 // A bottom bar for showing extensions. | 469 // A bottom bar for showing extensions. |
| 475 ExtensionShelf* extension_shelf_; | 470 ExtensionShelf* extension_shelf_; |
| 476 | 471 |
| 477 typedef std::set<BrowserBubble*> BubbleSet; | 472 typedef std::set<BrowserBubble*> BubbleSet; |
| 478 BubbleSet browser_bubbles_; | 473 BubbleSet browser_bubbles_; |
| 479 | 474 |
| 480 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 475 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 481 }; | 476 }; |
| 482 | 477 |
| 483 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 478 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |