| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void TabStripDisplayModeChanged(); | 69 void TabStripDisplayModeChanged(); |
| 70 | 70 |
| 71 // Overridden from views::Widget: | 71 // Overridden from views::Widget: |
| 72 virtual views::internal::RootView* CreateRootView() OVERRIDE; | 72 virtual views::internal::RootView* CreateRootView() OVERRIDE; |
| 73 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 73 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
| 74 virtual bool GetAccelerator(int command_id, | 74 virtual bool GetAccelerator(int command_id, |
| 75 ui::Accelerator* accelerator) OVERRIDE; | 75 ui::Accelerator* accelerator) OVERRIDE; |
| 76 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 76 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
| 77 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 77 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
| 78 | 78 |
| 79 // Returns true if we should leave any offset at the frame caption. Typically |
| 80 // when the frame is maximized/full screen we want to leave no offset at the |
| 81 // top. |
| 82 bool ShouldLeaveOffsetNearTopBorder(); |
| 83 |
| 79 AvatarMenuButton* GetAvatarMenuButton(); | 84 AvatarMenuButton* GetAvatarMenuButton(); |
| 80 | 85 |
| 81 private: | 86 private: |
| 82 NativeBrowserFrame* native_browser_frame_; | 87 NativeBrowserFrame* native_browser_frame_; |
| 83 | 88 |
| 84 // A weak reference to the root view associated with the window. We save a | 89 // A weak reference to the root view associated with the window. We save a |
| 85 // copy as a BrowserRootView to avoid evil casting later, when we need to call | 90 // copy as a BrowserRootView to avoid evil casting later, when we need to call |
| 86 // functions that only exist on BrowserRootView (versus RootView). | 91 // functions that only exist on BrowserRootView (versus RootView). |
| 87 BrowserRootView* root_view_; | 92 BrowserRootView* root_view_; |
| 88 | 93 |
| 89 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 94 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
| 90 BrowserNonClientFrameView* browser_frame_view_; | 95 BrowserNonClientFrameView* browser_frame_view_; |
| 91 | 96 |
| 92 // The BrowserView is our ClientView. This is a pointer to it. | 97 // The BrowserView is our ClientView. This is a pointer to it. |
| 93 BrowserView* browser_view_; | 98 BrowserView* browser_view_; |
| 94 | 99 |
| 95 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 100 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 96 }; | 101 }; |
| 97 | 102 |
| 98 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 103 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |