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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/devtools/devtools_window.h" | 19 #include "chrome/browser/devtools/devtools_window.h" |
20 #include "chrome/browser/extensions/extension_commands_global_registry.h" | 20 #include "chrome/browser/extensions/extension_commands_global_registry.h" |
21 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 21 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| 22 #include "chrome/browser/metrics/browser_window_histogram_helper.h" |
22 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
23 #include "chrome/browser/ui/browser_window.h" | 24 #include "chrome/browser/ui/browser_window.h" |
24 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 25 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
25 #include "chrome/browser/ui/infobar_container_delegate.h" | 26 #include "chrome/browser/ui/infobar_container_delegate.h" |
26 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 27 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
27 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h" | 28 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h" |
28 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views
.h" | 29 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views
.h" |
29 #include "chrome/browser/ui/views/frame/browser_frame.h" | 30 #include "chrome/browser/ui/views/frame/browser_frame.h" |
30 #include "chrome/browser/ui/views/frame/contents_web_view.h" | 31 #include "chrome/browser/ui/views/frame/contents_web_view.h" |
31 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" | 32 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 SkColor GetInfoBarSeparatorColor() const override; | 432 SkColor GetInfoBarSeparatorColor() const override; |
432 void InfoBarContainerStateChanged(bool is_animating) override; | 433 void InfoBarContainerStateChanged(bool is_animating) override; |
433 bool DrawInfoBarArrows(int* x) const override; | 434 bool DrawInfoBarArrows(int* x) const override; |
434 | 435 |
435 // Overridden from views::View: | 436 // Overridden from views::View: |
436 const char* GetClassName() const override; | 437 const char* GetClassName() const override; |
437 void Layout() override; | 438 void Layout() override; |
438 void OnGestureEvent(ui::GestureEvent* event) override; | 439 void OnGestureEvent(ui::GestureEvent* event) override; |
439 void ViewHierarchyChanged( | 440 void ViewHierarchyChanged( |
440 const ViewHierarchyChangedDetails& details) override; | 441 const ViewHierarchyChangedDetails& details) override; |
| 442 void PaintChildren(const ui::PaintContext& context) override; |
441 void ChildPreferredSizeChanged(View* child) override; | 443 void ChildPreferredSizeChanged(View* child) override; |
442 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 444 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
443 void OnThemeChanged() override; | 445 void OnThemeChanged() override; |
444 | 446 |
445 // Overridden from ui::AcceleratorTarget: | 447 // Overridden from ui::AcceleratorTarget: |
446 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 448 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
447 | 449 |
448 // OmniboxPopupModelObserver overrides | 450 // OmniboxPopupModelObserver overrides |
449 void OnOmniboxPopupShownOrHidden() override; | 451 void OnOmniboxPopupShownOrHidden() override; |
450 | 452 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 bool force_location_bar_focus_; | 707 bool force_location_bar_focus_; |
706 | 708 |
707 std::unique_ptr<ImmersiveModeController> immersive_mode_controller_; | 709 std::unique_ptr<ImmersiveModeController> immersive_mode_controller_; |
708 | 710 |
709 std::unique_ptr<WebContentsCloseHandler> web_contents_close_handler_; | 711 std::unique_ptr<WebContentsCloseHandler> web_contents_close_handler_; |
710 | 712 |
711 // The class that registers for keyboard shortcuts for extension commands. | 713 // The class that registers for keyboard shortcuts for extension commands. |
712 std::unique_ptr<ExtensionKeybindingRegistryViews> | 714 std::unique_ptr<ExtensionKeybindingRegistryViews> |
713 extension_keybinding_registry_; | 715 extension_keybinding_registry_; |
714 | 716 |
| 717 std::unique_ptr<BrowserWindowHistogramHelper> histogram_helper_; |
| 718 |
715 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 719 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
716 | 720 |
717 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 721 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
718 }; | 722 }; |
719 | 723 |
720 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 724 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |