| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // its frame treatment if necessary. | 68 // its frame treatment if necessary. |
| 69 void TabStripDisplayModeChanged(); | 69 void TabStripDisplayModeChanged(); |
| 70 | 70 |
| 71 // Overridden from views::Window: | 71 // Overridden from views::Window: |
| 72 virtual bool IsMaximized() const OVERRIDE; | 72 virtual bool IsMaximized() const OVERRIDE; |
| 73 virtual views::internal::RootView* CreateRootView() OVERRIDE; | 73 virtual views::internal::RootView* CreateRootView() OVERRIDE; |
| 74 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 74 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
| 75 virtual bool GetAccelerator(int command_id, | 75 virtual bool GetAccelerator(int command_id, |
| 76 ui::Accelerator* accelerator) OVERRIDE; | 76 ui::Accelerator* accelerator) OVERRIDE; |
| 77 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; | 77 virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE; |
| 78 virtual void OnNativeWindowActivationChanged(bool active) OVERRIDE; | 78 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 NativeBrowserFrame* native_browser_frame_; | 81 NativeBrowserFrame* native_browser_frame_; |
| 82 | 82 |
| 83 // A weak reference to the root view associated with the window. We save a | 83 // 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 | 84 // copy as a BrowserRootView to avoid evil casting later, when we need to call |
| 85 // functions that only exist on BrowserRootView (versus RootView). | 85 // functions that only exist on BrowserRootView (versus RootView). |
| 86 BrowserRootView* root_view_; | 86 BrowserRootView* root_view_; |
| 87 | 87 |
| 88 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 88 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
| 89 BrowserNonClientFrameView* browser_frame_view_; | 89 BrowserNonClientFrameView* browser_frame_view_; |
| 90 | 90 |
| 91 // The BrowserView is our ClientView. This is a pointer to it. | 91 // The BrowserView is our ClientView. This is a pointer to it. |
| 92 BrowserView* browser_view_; | 92 BrowserView* browser_view_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); | 94 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ |
| OLD | NEW |