| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 // Retrieves the icon to use in the frame to indicate an OTR window. | 228 // Retrieves the icon to use in the frame to indicate an OTR window. |
| 229 gfx::ImageSkia GetOTRAvatarIcon() const; | 229 gfx::ImageSkia GetOTRAvatarIcon() const; |
| 230 | 230 |
| 231 // Returns true if the Browser object associated with this BrowserView is a | 231 // Returns true if the Browser object associated with this BrowserView is a |
| 232 // tabbed-type window (i.e. a browser window, not an app or popup). | 232 // tabbed-type window (i.e. a browser window, not an app or popup). |
| 233 bool IsBrowserTypeNormal() const { | 233 bool IsBrowserTypeNormal() const { |
| 234 return browser_->is_type_tabbed(); | 234 return browser_->is_type_tabbed(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 // Returns true if the specified point(BrowserView coordinates) is in | |
| 238 // in the window caption area of the browser window. | |
| 239 bool IsPositionInWindowCaption(const gfx::Point& point); | |
| 240 | |
| 241 // See ImmersiveModeController for description. | 237 // See ImmersiveModeController for description. |
| 242 ImmersiveModeController* immersive_mode_controller() const { | 238 ImmersiveModeController* immersive_mode_controller() const { |
| 243 return immersive_mode_controller_.get(); | 239 return immersive_mode_controller_.get(); |
| 244 } | 240 } |
| 245 | 241 |
| 246 // Restores the focused view. This is also used to set the initial focus | 242 // Restores the focused view. This is also used to set the initial focus |
| 247 // when a new browser window is created. | 243 // when a new browser window is created. |
| 248 void RestoreFocus(); | 244 void RestoreFocus(); |
| 249 | 245 |
| 250 void SetWindowSwitcherButton(views::Button* button); | 246 void SetWindowSwitcherButton(views::Button* button); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 virtual views::Widget* GetWidget() OVERRIDE; | 424 virtual views::Widget* GetWidget() OVERRIDE; |
| 429 virtual const views::Widget* GetWidget() const OVERRIDE; | 425 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 430 virtual void GetAccessiblePanes(std::vector<View*>* panes) OVERRIDE; | 426 virtual void GetAccessiblePanes(std::vector<View*>* panes) OVERRIDE; |
| 431 | 427 |
| 432 // Overridden from views::WidgetObserver: | 428 // Overridden from views::WidgetObserver: |
| 433 virtual void OnWidgetActivationChanged(views::Widget* widget, | 429 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| 434 bool active) OVERRIDE; | 430 bool active) OVERRIDE; |
| 435 | 431 |
| 436 // Overridden from views::ClientView: | 432 // Overridden from views::ClientView: |
| 437 virtual bool CanClose() OVERRIDE; | 433 virtual bool CanClose() OVERRIDE; |
| 438 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 434 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE; |
| 439 virtual gfx::Size GetMinimumSize() OVERRIDE; | 435 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 440 | 436 |
| 441 // ImmersiveModeController::Delegate overrides: | 437 // ImmersiveModeController::Delegate overrides: |
| 442 virtual BookmarkBarView* GetBookmarkBar() OVERRIDE; | 438 virtual BookmarkBarView* GetBookmarkBar() OVERRIDE; |
| 443 virtual FullscreenController* GetFullscreenController() OVERRIDE; | 439 virtual FullscreenController* GetFullscreenController() OVERRIDE; |
| 444 virtual void FullscreenStateChanged() OVERRIDE; | 440 virtual void FullscreenStateChanged() OVERRIDE; |
| 445 virtual void SetImmersiveStyle(bool immersive) OVERRIDE; | 441 virtual void SetImmersiveStyle(bool immersive) OVERRIDE; |
| 446 | 442 |
| 447 // InfoBarContainer::Delegate overrides | 443 // InfoBarContainer::Delegate overrides |
| 448 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; | 444 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 gfx::ScopedSysColorChangeListener color_change_listener_; | 789 gfx::ScopedSysColorChangeListener color_change_listener_; |
| 794 | 790 |
| 795 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; | 791 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; |
| 796 | 792 |
| 797 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 793 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 798 | 794 |
| 799 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 795 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 800 }; | 796 }; |
| 801 | 797 |
| 802 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 798 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |