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

Unified Diff: chrome/browser/ui/views/frame/minimize_button_metrics_win.h

Issue 2833363002: Add GetCaptionButtonHeightInDIPs() method (Closed)
Patch Set: Renamed variables and removed call to GetCaptionButtonHeightInDIPs, which depends on a CL still beiā€¦ 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/minimize_button_metrics_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c3a6d3f34bbf82a68d207684750dc51576c1e4e1..86d08a4b5f9da28c860b3db691d96cb67eabb6a9 100644
--- a/chrome/browser/ui/views/frame/minimize_button_metrics_win.h
+++ b/chrome/browser/ui/views/frame/minimize_button_metrics_win.h
@@ -18,6 +18,9 @@ class MinimizeButtonMetrics {
MinimizeButtonMetrics();
~MinimizeButtonMetrics();
+ // Returns the height of the native caption buttons in DIPs.
+ static int GetCaptionButtonHeightInDIPs();
+
void Init(HWND hwnd);
// Obtain the X offset of the native minimize button. Since Windows can lie
@@ -48,7 +51,7 @@ class MinimizeButtonMetrics {
// Static cache of |cached_minimize_button_x_delta_|.
static int last_cached_minimize_button_x_delta_;
- // Static cache of offset value representing the different between
+ // Static cache of offset value representing the difference between
// DWMWA_CAPTION_BUTTON_BOUNDS and WM_GETTITLEBARINFOEX
static int button_bounds_position_offset_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/minimize_button_metrics_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698