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_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
7 | 7 |
8 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" | 8 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" |
9 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host.h" | 9 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host.h" |
10 #include "chrome/browser/ui/views/frame/minimize_button_metrics_win.h" | 10 #include "chrome/browser/ui/views/frame/minimize_button_metrics_win.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; | 41 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; |
42 virtual void HandleFrameChanged() OVERRIDE; | 42 virtual void HandleFrameChanged() OVERRIDE; |
43 virtual bool PreHandleMSG(UINT message, | 43 virtual bool PreHandleMSG(UINT message, |
44 WPARAM w_param, | 44 WPARAM w_param, |
45 LPARAM l_param, | 45 LPARAM l_param, |
46 LRESULT* result) OVERRIDE; | 46 LRESULT* result) OVERRIDE; |
47 virtual void PostHandleMSG(UINT message, | 47 virtual void PostHandleMSG(UINT message, |
48 WPARAM w_param, | 48 WPARAM w_param, |
49 LPARAM l_param) OVERRIDE; | 49 LPARAM l_param) OVERRIDE; |
50 virtual bool IsUsingCustomFrame() const OVERRIDE; | 50 virtual bool IsUsingCustomFrame() const OVERRIDE; |
| 51 virtual bool ShouldUseNativeFrame() OVERRIDE; |
51 | 52 |
52 void UpdateDWMFrame(); | 53 void UpdateDWMFrame(); |
53 | 54 |
54 BrowserView* browser_view_; | 55 BrowserView* browser_view_; |
55 BrowserFrame* browser_frame_; | 56 BrowserFrame* browser_frame_; |
56 | 57 |
57 MinimizeButtonMetrics minimize_button_metrics_; | 58 MinimizeButtonMetrics minimize_button_metrics_; |
58 | 59 |
59 // The wrapped system menu itself. | 60 // The wrapped system menu itself. |
60 scoped_ptr<views::NativeMenuWin> system_menu_; | 61 scoped_ptr<views::NativeMenuWin> system_menu_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(BrowserDesktopRootWindowHostWin); | 63 DISALLOW_COPY_AND_ASSIGN(BrowserDesktopRootWindowHostWin); |
63 }; | 64 }; |
64 | 65 |
65 | 66 |
66 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |