| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 SkColor GetInfoBarSeparatorColor() const override; | 429 SkColor GetInfoBarSeparatorColor() const override; |
| 430 void InfoBarContainerStateChanged(bool is_animating) override; | 430 void InfoBarContainerStateChanged(bool is_animating) override; |
| 431 bool DrawInfoBarArrows(int* x) const override; | 431 bool DrawInfoBarArrows(int* x) const override; |
| 432 | 432 |
| 433 // Overridden from views::View: | 433 // Overridden from views::View: |
| 434 const char* GetClassName() const override; | 434 const char* GetClassName() const override; |
| 435 void Layout() override; | 435 void Layout() override; |
| 436 void ViewHierarchyChanged( | 436 void ViewHierarchyChanged( |
| 437 const ViewHierarchyChangedDetails& details) override; | 437 const ViewHierarchyChangedDetails& details) override; |
| 438 void ChildPreferredSizeChanged(View* child) override; | 438 void ChildPreferredSizeChanged(View* child) override; |
| 439 void GetAccessibleState(ui::AXViewState* state) override; | 439 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 440 void OnThemeChanged() override; | 440 void OnThemeChanged() override; |
| 441 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 441 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
| 442 | 442 |
| 443 // Overridden from ui::AcceleratorTarget: | 443 // Overridden from ui::AcceleratorTarget: |
| 444 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 444 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 445 | 445 |
| 446 // OmniboxPopupModelObserver overrides | 446 // OmniboxPopupModelObserver overrides |
| 447 void OnOmniboxPopupShownOrHidden() override; | 447 void OnOmniboxPopupShownOrHidden() override; |
| 448 | 448 |
| 449 // ExclusiveAccessContext overrides | 449 // ExclusiveAccessContext overrides |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 bool update_devtools_web_contents); | 524 bool update_devtools_web_contents); |
| 525 | 525 |
| 526 // Updates various optional child Views, e.g. Bookmarks Bar, Info Bar or the | 526 // Updates various optional child Views, e.g. Bookmarks Bar, Info Bar or the |
| 527 // Download Shelf in response to a change notification from the specified | 527 // Download Shelf in response to a change notification from the specified |
| 528 // |contents|. |contents| can be null. In this case, all optional UI will be | 528 // |contents|. |contents| can be null. In this case, all optional UI will be |
| 529 // removed. | 529 // removed. |
| 530 void UpdateUIForContents(content::WebContents* contents); | 530 void UpdateUIForContents(content::WebContents* contents); |
| 531 | 531 |
| 532 // Invoked to update the necessary things when our fullscreen state changes | 532 // Invoked to update the necessary things when our fullscreen state changes |
| 533 // to |fullscreen|. On Windows this is invoked immediately when we toggle the | 533 // to |fullscreen|. On Windows this is invoked immediately when we toggle the |
| 534 // full screen state. On Linux changing the fullscreen state is async, so we | 534 // full screen node_data. On Linux changing the fullscreen node_data is async, |
| 535 // ask the window to change its fullscreen state, then when we get | 535 // so we |
| 536 // ask the window to change its fullscreen node_data, then when we get |
| 536 // notification that it succeeded this method is invoked. | 537 // notification that it succeeded this method is invoked. |
| 537 // If |url| is not empty, it is the URL of the page that requested fullscreen | 538 // If |url| is not empty, it is the URL of the page that requested fullscreen |
| 538 // (via the fullscreen JS API). | 539 // (via the fullscreen JS API). |
| 539 // |bubble_type| determines what should be shown in the fullscreen exit | 540 // |bubble_type| determines what should be shown in the fullscreen exit |
| 540 // bubble. | 541 // bubble. |
| 541 void ProcessFullscreen(bool fullscreen, | 542 void ProcessFullscreen(bool fullscreen, |
| 542 const GURL& url, | 543 const GURL& url, |
| 543 ExclusiveAccessBubbleType bubble_type); | 544 ExclusiveAccessBubbleType bubble_type); |
| 544 | 545 |
| 545 // Returns whether immmersive fullscreen should replace fullscreen. This | 546 // Returns whether immmersive fullscreen should replace fullscreen. This |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 // The class that registers for keyboard shortcuts for extension commands. | 703 // The class that registers for keyboard shortcuts for extension commands. |
| 703 std::unique_ptr<ExtensionKeybindingRegistryViews> | 704 std::unique_ptr<ExtensionKeybindingRegistryViews> |
| 704 extension_keybinding_registry_; | 705 extension_keybinding_registry_; |
| 705 | 706 |
| 706 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 707 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
| 707 | 708 |
| 708 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 709 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 709 }; | 710 }; |
| 710 | 711 |
| 711 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 712 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |