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_WINDOW_TREE_HOST_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <uxtheme.h> | 9 #include <uxtheme.h> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 BrowserView* browser_view, | 31 BrowserView* browser_view, |
32 BrowserFrame* browser_frame); | 32 BrowserFrame* browser_frame); |
33 ~BrowserDesktopWindowTreeHostWin() override; | 33 ~BrowserDesktopWindowTreeHostWin() override; |
34 | 34 |
35 private: | 35 private: |
36 views::NativeMenuWin* GetSystemMenu(); | 36 views::NativeMenuWin* GetSystemMenu(); |
37 | 37 |
38 // Overridden from BrowserDesktopWindowTreeHost: | 38 // Overridden from BrowserDesktopWindowTreeHost: |
39 DesktopWindowTreeHost* AsDesktopWindowTreeHost() override; | 39 DesktopWindowTreeHost* AsDesktopWindowTreeHost() override; |
40 int GetMinimizeButtonOffset() const override; | 40 int GetMinimizeButtonOffset() const override; |
| 41 int GetMinimizeButtonHeight() const override; |
41 bool UsesNativeSystemMenu() const override; | 42 bool UsesNativeSystemMenu() const override; |
42 | 43 |
43 // Overridden from DesktopWindowTreeHostWin: | 44 // Overridden from DesktopWindowTreeHostWin: |
44 int GetInitialShowState() const override; | 45 int GetInitialShowState() const override; |
45 bool GetClientAreaInsets(gfx::Insets* insets) const override; | 46 bool GetClientAreaInsets(gfx::Insets* insets) const override; |
46 void HandleCreate() override; | 47 void HandleCreate() override; |
47 void HandleDestroying() override; | 48 void HandleDestroying() override; |
48 void HandleFrameChanged() override; | 49 void HandleFrameChanged() override; |
49 bool PreHandleMSG(UINT message, | 50 bool PreHandleMSG(UINT message, |
50 WPARAM w_param, | 51 WPARAM w_param, |
(...skipping 21 matching lines...) Expand all Loading... |
72 std::unique_ptr<views::NativeMenuWin> system_menu_; | 73 std::unique_ptr<views::NativeMenuWin> system_menu_; |
73 | 74 |
74 // Necessary to avoid corruption on NC paint in Aero mode. | 75 // Necessary to avoid corruption on NC paint in Aero mode. |
75 bool did_gdi_clear_; | 76 bool did_gdi_clear_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(BrowserDesktopWindowTreeHostWin); | 78 DISALLOW_COPY_AND_ASSIGN(BrowserDesktopWindowTreeHostWin); |
78 }; | 79 }; |
79 | 80 |
80 | 81 |
81 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_WINDOW_TREE_HOST_WIN_H_ | 82 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_DESKTOP_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |