Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.h

Issue 2881563004: Clear the cached avatar button offset when the DPI scaling changes (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698