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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; | 86 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; |
87 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 87 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
88 | 88 |
89 // Overridden from views::ContextMenuController: | 89 // Overridden from views::ContextMenuController: |
90 virtual void ShowContextMenuForView(views::View* source, | 90 virtual void ShowContextMenuForView(views::View* source, |
91 const gfx::Point& p) OVERRIDE; | 91 const gfx::Point& p, |
| 92 ui::MenuSourceType source_type) OVERRIDE; |
92 | 93 |
93 // 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 |
94 // 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 |
95 // top. | 96 // top. |
96 bool ShouldLeaveOffsetNearTopBorder(); | 97 bool ShouldLeaveOffsetNearTopBorder(); |
97 | 98 |
98 AvatarMenuButton* GetAvatarMenuButton(); | 99 AvatarMenuButton* GetAvatarMenuButton(); |
99 | 100 |
100 // Returns the menu model. BrowserFrame owns the returned model. | 101 // Returns the menu model. BrowserFrame owns the returned model. |
101 ui::MenuModel* GetSystemMenuModel(); | 102 ui::MenuModel* GetSystemMenuModel(); |
(...skipping 22 matching lines...) Expand all Loading... |
124 // |theme_provider_|. Initially |theme_provider_| is set to the ThemeService | 125 // |theme_provider_|. Initially |theme_provider_| is set to the ThemeService |
125 // and |owned_theme_provider_| is NULL (as ThemeServices lifetime is managed | 126 // and |owned_theme_provider_| is NULL (as ThemeServices lifetime is managed |
126 // externally). | 127 // externally). |
127 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; | 128 scoped_ptr<ui::ThemeProvider> owned_theme_provider_; |
128 ui::ThemeProvider* theme_provider_; | 129 ui::ThemeProvider* theme_provider_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 131 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
131 }; | 132 }; |
132 | 133 |
133 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 134 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |