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