OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 // See ImmersiveModeController for description. | 233 // See ImmersiveModeController for description. |
234 ImmersiveModeController* immersive_mode_controller() const { | 234 ImmersiveModeController* immersive_mode_controller() const { |
235 return immersive_mode_controller_.get(); | 235 return immersive_mode_controller_.get(); |
236 } | 236 } |
237 | 237 |
238 // Restores the focused view. This is also used to set the initial focus | 238 // Restores the focused view. This is also used to set the initial focus |
239 // when a new browser window is created. | 239 // when a new browser window is created. |
240 void RestoreFocus(); | 240 void RestoreFocus(); |
241 | 241 |
242 void SetWindowSwitcherButton(views::Button* button); | |
243 | |
244 views::Button* window_switcher_button() { | |
245 return window_switcher_button_; | |
246 } | |
247 | |
248 // Called after the widget's fullscreen state is changed without going through | 242 // Called after the widget's fullscreen state is changed without going through |
249 // FullscreenController. This method does any processing which was skipped. | 243 // FullscreenController. This method does any processing which was skipped. |
250 // Only exiting fullscreen in this way is currently supported. | 244 // Only exiting fullscreen in this way is currently supported. |
251 void FullscreenStateChanged(); | 245 void FullscreenStateChanged(); |
252 | 246 |
253 // Called from BookmarkBarView/DownloadShelfView during their show/hide | 247 // Called from BookmarkBarView/DownloadShelfView during their show/hide |
254 // animations. | 248 // animations. |
255 void ToolbarSizeChanged(bool is_animating); | 249 void ToolbarSizeChanged(bool is_animating); |
256 | 250 |
257 // Overridden from BrowserWindow: | 251 // Overridden from BrowserWindow: |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // bar. Stacked top in the view hiearachy so it can be used to slide out | 621 // bar. Stacked top in the view hiearachy so it can be used to slide out |
628 // the top views in immersive fullscreen. | 622 // the top views in immersive fullscreen. |
629 TopContainerView* top_container_; | 623 TopContainerView* top_container_; |
630 | 624 |
631 // The TabStrip. | 625 // The TabStrip. |
632 TabStrip* tabstrip_; | 626 TabStrip* tabstrip_; |
633 | 627 |
634 // The Toolbar containing the navigation buttons, menus and the address bar. | 628 // The Toolbar containing the navigation buttons, menus and the address bar. |
635 ToolbarView* toolbar_; | 629 ToolbarView* toolbar_; |
636 | 630 |
637 // This button sits next to the tabs on the right hand side and it is used | |
638 // only in windows metro metro mode to allow the user to flip among browser | |
639 // windows. | |
640 views::Button* window_switcher_button_; | |
641 | |
642 // The Bookmark Bar View for this window. Lazily created. May be NULL for | 631 // The Bookmark Bar View for this window. Lazily created. May be NULL for |
643 // non-tabbed browsers like popups. May not be visible. | 632 // non-tabbed browsers like popups. May not be visible. |
644 scoped_ptr<BookmarkBarView> bookmark_bar_view_; | 633 scoped_ptr<BookmarkBarView> bookmark_bar_view_; |
645 | 634 |
646 // The do-nothing view which controls the z-order of the find bar widget | 635 // The do-nothing view which controls the z-order of the find bar widget |
647 // relative to views which paint into layers and views with an associated | 636 // relative to views which paint into layers and views with an associated |
648 // NativeView. | 637 // NativeView. |
649 View* find_bar_host_view_; | 638 View* find_bar_host_view_; |
650 | 639 |
651 // The download shelf view (view at the bottom of the page). | 640 // The download shelf view (view at the bottom of the page). |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; | 720 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; |
732 | 721 |
733 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 722 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
734 | 723 |
735 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 724 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
736 | 725 |
737 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 726 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
738 }; | 727 }; |
739 | 728 |
740 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 729 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |