| 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 28 matching lines...) Expand all Loading... |
| 39 DesktopWindowTreeHost* AsDesktopWindowTreeHost() override; | 39 DesktopWindowTreeHost* AsDesktopWindowTreeHost() override; |
| 40 int GetMinimizeButtonOffset() const override; | 40 int GetMinimizeButtonOffset() const override; |
| 41 bool UsesNativeSystemMenu() const override; | 41 bool UsesNativeSystemMenu() const override; |
| 42 | 42 |
| 43 // Overridden from DesktopWindowTreeHostWin: | 43 // Overridden from DesktopWindowTreeHostWin: |
| 44 int GetInitialShowState() const override; | 44 int GetInitialShowState() const override; |
| 45 bool GetClientAreaInsets(gfx::Insets* insets) const override; | 45 bool GetClientAreaInsets(gfx::Insets* insets) const override; |
| 46 void HandleCreate() override; | 46 void HandleCreate() override; |
| 47 void HandleDestroying() override; | 47 void HandleDestroying() override; |
| 48 void HandleFrameChanged() override; | 48 void HandleFrameChanged() override; |
| 49 void HandleWindowScaleFactorChanged(float window_scale_factor) override; |
| 49 bool PreHandleMSG(UINT message, | 50 bool PreHandleMSG(UINT message, |
| 50 WPARAM w_param, | 51 WPARAM w_param, |
| 51 LPARAM l_param, | 52 LPARAM l_param, |
| 52 LRESULT* result) override; | 53 LRESULT* result) override; |
| 53 void PostHandleMSG(UINT message, WPARAM w_param, LPARAM l_param) override; | 54 void PostHandleMSG(UINT message, WPARAM w_param, LPARAM l_param) override; |
| 54 views::FrameMode GetFrameMode() const override; | 55 views::FrameMode GetFrameMode() const override; |
| 55 bool ShouldUseNativeFrame() const override; | 56 bool ShouldUseNativeFrame() const override; |
| 56 bool ShouldWindowContentsBeTransparent() const override; | 57 bool ShouldWindowContentsBeTransparent() const override; |
| 57 void FrameTypeChanged() override; | 58 void FrameTypeChanged() override; |
| 58 | 59 |
| (...skipping 13 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 |