| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 bool DrawInfoBarArrows(int* x) const override; | 437 bool DrawInfoBarArrows(int* x) const override; |
| 438 | 438 |
| 439 // Overridden from views::View: | 439 // Overridden from views::View: |
| 440 const char* GetClassName() const override; | 440 const char* GetClassName() const override; |
| 441 void Layout() override; | 441 void Layout() override; |
| 442 void PaintChildren(const ui::PaintContext& context) override; | 442 void PaintChildren(const ui::PaintContext& context) override; |
| 443 void ViewHierarchyChanged( | 443 void ViewHierarchyChanged( |
| 444 const ViewHierarchyChangedDetails& details) override; | 444 const ViewHierarchyChangedDetails& details) override; |
| 445 void ChildPreferredSizeChanged(View* child) override; | 445 void ChildPreferredSizeChanged(View* child) override; |
| 446 void GetAccessibleState(ui::AXViewState* state) override; | 446 void GetAccessibleState(ui::AXViewState* state) override; |
| 447 void OnThemeChanged() override; |
| 447 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 448 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 448 | 449 |
| 449 // Overridden from ui::AcceleratorTarget: | 450 // Overridden from ui::AcceleratorTarget: |
| 450 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 451 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 451 | 452 |
| 452 // OmniboxPopupModelObserver overrides | 453 // OmniboxPopupModelObserver overrides |
| 453 void OnOmniboxPopupShownOrHidden() override; | 454 void OnOmniboxPopupShownOrHidden() override; |
| 454 | 455 |
| 455 // ExclusiveAccessContext overrides | 456 // ExclusiveAccessContext overrides |
| 456 Profile* GetProfile() override; | 457 Profile* GetProfile() override; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 | 663 |
| 663 // The Status information bubble that appears at the bottom of the window. | 664 // The Status information bubble that appears at the bottom of the window. |
| 664 scoped_ptr<StatusBubbleViews> status_bubble_; | 665 scoped_ptr<StatusBubbleViews> status_bubble_; |
| 665 | 666 |
| 666 // A mapping between accelerators and commands. | 667 // A mapping between accelerators and commands. |
| 667 std::map<ui::Accelerator, int> accelerator_table_; | 668 std::map<ui::Accelerator, int> accelerator_table_; |
| 668 | 669 |
| 669 // True if we have already been initialized. | 670 // True if we have already been initialized. |
| 670 bool initialized_; | 671 bool initialized_; |
| 671 | 672 |
| 673 // True if we're currently handling a theme change (i.e. inside |
| 674 // OnThemeChanged()). |
| 675 bool handling_theme_changed_; |
| 676 |
| 672 // True when in ProcessFullscreen(). The flag is used to avoid reentrance and | 677 // True when in ProcessFullscreen(). The flag is used to avoid reentrance and |
| 673 // to ignore requests to layout while in ProcessFullscreen() to reduce | 678 // to ignore requests to layout while in ProcessFullscreen() to reduce |
| 674 // jankiness. | 679 // jankiness. |
| 675 bool in_process_fullscreen_; | 680 bool in_process_fullscreen_; |
| 676 | 681 |
| 677 scoped_ptr<ExclusiveAccessBubbleViews> exclusive_access_bubble_; | 682 scoped_ptr<ExclusiveAccessBubbleViews> exclusive_access_bubble_; |
| 678 | 683 |
| 679 #if defined(OS_WIN) | 684 #if defined(OS_WIN) |
| 680 // This object is used to perform periodic actions in a worker | 685 // This object is used to perform periodic actions in a worker |
| 681 // thread. It is currently used to monitor hung plugin windows. | 686 // thread. It is currently used to monitor hung plugin windows. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 719 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
| 715 | 720 |
| 716 SigninViewController signin_view_controller_; | 721 SigninViewController signin_view_controller_; |
| 717 | 722 |
| 718 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 723 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 719 | 724 |
| 720 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 725 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 721 }; | 726 }; |
| 722 | 727 |
| 723 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 728 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |