OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Tells the frame to update the throbber. | 59 // Tells the frame to update the throbber. |
60 void UpdateThrobber(bool running); | 60 void UpdateThrobber(bool running); |
61 | 61 |
62 // Returns the NonClientFrameView of this frame. | 62 // Returns the NonClientFrameView of this frame. |
63 views::View* GetFrameView() const; | 63 views::View* GetFrameView() const; |
64 | 64 |
65 // Notifies the frame that the tab strip display mode changed so it can update | 65 // Notifies the frame that the tab strip display mode changed so it can update |
66 // its frame treatment if necessary. | 66 // its frame treatment if necessary. |
67 void TabStripDisplayModeChanged(); | 67 void TabStripDisplayModeChanged(); |
68 | 68 |
| 69 // Returns true for single window mode. ChromeOS and Aura laptop mode use a |
| 70 // single window filling the work area, which does not have a close, maximize, |
| 71 // minimize or restore button and does not draw frame edges. |
| 72 bool IsSingleWindowMode() const; |
| 73 |
69 // Overridden from views::Widget: | 74 // Overridden from views::Widget: |
70 virtual bool IsMaximized() const OVERRIDE; | 75 virtual bool IsMaximized() const OVERRIDE; |
71 virtual views::internal::RootView* CreateRootView() OVERRIDE; | 76 virtual views::internal::RootView* CreateRootView() OVERRIDE; |
72 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 77 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
73 virtual bool GetAccelerator(int command_id, | 78 virtual bool GetAccelerator(int command_id, |
74 ui::Accelerator* accelerator) OVERRIDE; | 79 ui::Accelerator* accelerator) OVERRIDE; |
75 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 80 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
76 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; | 81 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
77 | 82 |
78 AvatarMenuButton* GetAvatarMenuButton(); | 83 AvatarMenuButton* GetAvatarMenuButton(); |
79 | 84 |
80 private: | 85 private: |
81 NativeBrowserFrame* native_browser_frame_; | 86 NativeBrowserFrame* native_browser_frame_; |
82 | 87 |
83 // A weak reference to the root view associated with the window. We save a | 88 // A weak reference to the root view associated with the window. We save a |
84 // copy as a BrowserRootView to avoid evil casting later, when we need to call | 89 // copy as a BrowserRootView to avoid evil casting later, when we need to call |
85 // functions that only exist on BrowserRootView (versus RootView). | 90 // functions that only exist on BrowserRootView (versus RootView). |
86 BrowserRootView* root_view_; | 91 BrowserRootView* root_view_; |
87 | 92 |
88 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 93 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
89 BrowserNonClientFrameView* browser_frame_view_; | 94 BrowserNonClientFrameView* browser_frame_view_; |
90 | 95 |
91 // The BrowserView is our ClientView. This is a pointer to it. | 96 // The BrowserView is our ClientView. This is a pointer to it. |
92 BrowserView* browser_view_; | 97 BrowserView* browser_view_; |
93 | 98 |
94 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 99 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
95 }; | 100 }; |
96 | 101 |
97 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 102 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
OLD | NEW |