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

Unified Diff: chrome/browser/ui/views/frame/minimize_button_metrics_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/minimize_button_metrics_win.h
diff --git a/chrome/browser/ui/views/frame/minimize_button_metrics_win.h b/chrome/browser/ui/views/frame/minimize_button_metrics_win.h
index 86d08a4b5f9da28c860b3db691d96cb67eabb6a9..305784f236f4edfef34bc8daf9622e7c3b01e9a9 100644
--- a/chrome/browser/ui/views/frame/minimize_button_metrics_win.h
+++ b/chrome/browser/ui/views/frame/minimize_button_metrics_win.h
@@ -32,6 +32,9 @@ class MinimizeButtonMetrics {
// position cache.
void OnHWNDActivated();
+ // Must be called when WM_DPICHANGED message is received.
+ void OnDpiChanged();
+
private:
// Gets the value for GetMinimizeButtonOffsetX(), caching if found.
int GetAndCacheMinimizeButtonOffsetX() const;

Powered by Google App Engine
This is Rietveld 408576698