| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // Overridden from views::Widget: | 80 // Overridden from views::Widget: |
| 81 virtual views::internal::RootView* CreateRootView() OVERRIDE; | 81 virtual views::internal::RootView* CreateRootView() OVERRIDE; |
| 82 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 82 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
| 83 virtual bool GetAccelerator(int command_id, | 83 virtual bool GetAccelerator(int command_id, |
| 84 ui::Accelerator* accelerator) OVERRIDE; | 84 ui::Accelerator* accelerator) OVERRIDE; |
| 85 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 85 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
| 86 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 86 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
| 87 | 87 |
| 88 // Overridden from views::ContextMenuController: | 88 // Overridden from views::ContextMenuController: |
| 89 virtual void ShowContextMenuForView(views::View* source, | 89 virtual void ShowContextMenuForView( |
| 90 const gfx::Point& p) OVERRIDE; | 90 views::View* source, |
| 91 const gfx::Point& p, |
| 92 ui::ContextMenuSourceType source_type) OVERRIDE; |
| 91 | 93 |
| 92 // Returns true if we should leave any offset at the frame caption. Typically | 94 // Returns true if we should leave any offset at the frame caption. Typically |
| 93 // when the frame is maximized/full screen we want to leave no offset at the | 95 // when the frame is maximized/full screen we want to leave no offset at the |
| 94 // top. | 96 // top. |
| 95 bool ShouldLeaveOffsetNearTopBorder(); | 97 bool ShouldLeaveOffsetNearTopBorder(); |
| 96 | 98 |
| 97 AvatarMenuButton* GetAvatarMenuButton(); | 99 AvatarMenuButton* GetAvatarMenuButton(); |
| 98 | 100 |
| 99 // Returns the menu model. BrowserFrame owns the returned model. | 101 // Returns the menu model. BrowserFrame owns the returned model. |
| 100 ui::MenuModel* GetSystemMenuModel(); | 102 ui::MenuModel* GetSystemMenuModel(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 123 // |theme_provider_|. Initially |theme_provider_| is set to the ThemeService | 125 // |theme_provider_|. Initially |theme_provider_| is set to the ThemeService |
| 124 // and |owned_theme_provider_| is NULL (as ThemeServices lifetime is managed | 126 // and |owned_theme_provider_| is NULL (as ThemeServices lifetime is managed |
| 125 // externally). | 127 // externally). |
| 126 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; | 128 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; |
| 127 ui::ThemeProvider* theme_provider_; | 129 ui::ThemeProvider* theme_provider_; |
| 128 | 130 |
| 129 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 131 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 130 }; | 132 }; |
| 131 | 133 |
| 132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 134 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |