| 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_FRAME_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void OnBrowserViewInitViewsComplete(); | 99 void OnBrowserViewInitViewsComplete(); |
| 100 | 100 |
| 101 // Overridden from views::Widget: | 101 // Overridden from views::Widget: |
| 102 views::internal::RootView* CreateRootView() override; | 102 views::internal::RootView* CreateRootView() override; |
| 103 views::NonClientFrameView* CreateNonClientFrameView() override; | 103 views::NonClientFrameView* CreateNonClientFrameView() override; |
| 104 bool GetAccelerator(int command_id, | 104 bool GetAccelerator(int command_id, |
| 105 ui::Accelerator* accelerator) const override; | 105 ui::Accelerator* accelerator) const override; |
| 106 const ui::ThemeProvider* GetThemeProvider() const override; | 106 const ui::ThemeProvider* GetThemeProvider() const override; |
| 107 const ui::NativeTheme* GetNativeTheme() const override; | 107 const ui::NativeTheme* GetNativeTheme() const override; |
| 108 void SchedulePaintInRect(const gfx::Rect& rect) override; | 108 void SchedulePaintInRect(const gfx::Rect& rect) override; |
| 109 void OnNativeWidgetActivationChanged(bool active) override; | |
| 110 void OnNativeWidgetWorkspaceChanged() override; | 109 void OnNativeWidgetWorkspaceChanged() override; |
| 111 void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override; | 110 void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override; |
| 112 | 111 |
| 113 // Overridden from views::ContextMenuController: | 112 // Overridden from views::ContextMenuController: |
| 114 void ShowContextMenuForView(views::View* source, | 113 void ShowContextMenuForView(views::View* source, |
| 115 const gfx::Point& p, | 114 const gfx::Point& p, |
| 116 ui::MenuSourceType source_type) override; | 115 ui::MenuSourceType source_type) override; |
| 117 | 116 |
| 118 views::View* GetNewAvatarMenuButton(); | 117 views::View* GetNewAvatarMenuButton(); |
| 119 | 118 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 143 // Used to show the system menu. Only used if | 142 // Used to show the system menu. Only used if |
| 144 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. | 143 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. |
| 145 std::unique_ptr<views::MenuRunner> menu_runner_; | 144 std::unique_ptr<views::MenuRunner> menu_runner_; |
| 146 | 145 |
| 147 std::unique_ptr<ui::EventHandler> browser_command_handler_; | 146 std::unique_ptr<ui::EventHandler> browser_command_handler_; |
| 148 | 147 |
| 149 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 148 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 150 }; | 149 }; |
| 151 | 150 |
| 152 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 151 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |