| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 // not off the record or a guest session. | 201 // not off the record or a guest session. |
| 202 bool IsRegularOrGuestSession() const; | 202 bool IsRegularOrGuestSession() const; |
| 203 | 203 |
| 204 // Returns true if the non-client view should render an avatar icon. | 204 // Returns true if the non-client view should render an avatar icon. |
| 205 bool ShouldShowAvatar() const; | 205 bool ShouldShowAvatar() const; |
| 206 | 206 |
| 207 // Provides the containing frame with the accelerator for the specified | 207 // Provides the containing frame with the accelerator for the specified |
| 208 // command id. This can be used to provide menu item shortcut hints etc. | 208 // command id. This can be used to provide menu item shortcut hints etc. |
| 209 // Returns true if an accelerator was found for the specified |cmd_id|, false | 209 // Returns true if an accelerator was found for the specified |cmd_id|, false |
| 210 // otherwise. | 210 // otherwise. |
| 211 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 211 bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const; |
| 212 | 212 |
| 213 // Returns true if the specificed |accelerator| is registered with this view. | 213 // Returns true if the specificed |accelerator| is registered with this view. |
| 214 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); | 214 bool IsAcceleratorRegistered(const ui::Accelerator& accelerator); |
| 215 | 215 |
| 216 // Returns the active WebContents. Used by our NonClientView's | 216 // Returns the active WebContents. Used by our NonClientView's |
| 217 // TabIconView::TabContentsProvider implementations. | 217 // TabIconView::TabContentsProvider implementations. |
| 218 // TODO(beng): exposing this here is a bit bogus, since it's only used to | 218 // TODO(beng): exposing this here is a bit bogus, since it's only used to |
| 219 // determine loading state. It'd be nicer if we could change this to be | 219 // determine loading state. It'd be nicer if we could change this to be |
| 220 // bool IsSelectedTabLoading() const; or something like that. We could even | 220 // bool IsSelectedTabLoading() const; or something like that. We could even |
| 221 // move it to a WindowDelegate subclass. | 221 // move it to a WindowDelegate subclass. |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 virtual const views::Widget* GetWidget() const OVERRIDE; | 424 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 425 virtual void GetAccessiblePanes(std::vector<View*>* panes) OVERRIDE; | 425 virtual void GetAccessiblePanes(std::vector<View*>* panes) OVERRIDE; |
| 426 | 426 |
| 427 // Overridden from views::WidgetObserver: | 427 // Overridden from views::WidgetObserver: |
| 428 virtual void OnWidgetActivationChanged(views::Widget* widget, | 428 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| 429 bool active) OVERRIDE; | 429 bool active) OVERRIDE; |
| 430 | 430 |
| 431 // Overridden from views::ClientView: | 431 // Overridden from views::ClientView: |
| 432 virtual bool CanClose() OVERRIDE; | 432 virtual bool CanClose() OVERRIDE; |
| 433 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 433 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 434 virtual gfx::Size GetMinimumSize() OVERRIDE; | 434 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 435 | 435 |
| 436 // InfoBarContainer::Delegate overrides | 436 // InfoBarContainer::Delegate overrides |
| 437 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; | 437 virtual SkColor GetInfoBarSeparatorColor() const OVERRIDE; |
| 438 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; | 438 virtual void InfoBarContainerStateChanged(bool is_animating) OVERRIDE; |
| 439 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; | 439 virtual bool DrawInfoBarArrows(int* x) const OVERRIDE; |
| 440 | 440 |
| 441 // Overridden from views::View: | 441 // Overridden from views::View: |
| 442 virtual const char* GetClassName() const OVERRIDE; | 442 virtual const char* GetClassName() const OVERRIDE; |
| 443 virtual void Layout() OVERRIDE; | 443 virtual void Layout() OVERRIDE; |
| 444 virtual void PaintChildren(gfx::Canvas* canvas, | 444 virtual void PaintChildren(gfx::Canvas* canvas, |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; | 721 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; |
| 722 | 722 |
| 723 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 723 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
| 724 | 724 |
| 725 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 725 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 726 | 726 |
| 727 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 727 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 728 }; | 728 }; |
| 729 | 729 |
| 730 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 730 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |