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

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

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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_MINIMIZE_BUTTON_METRICS_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_MINIMIZE_BUTTON_METRICS_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_MINIMIZE_BUTTON_METRICS_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_MINIMIZE_BUTTON_METRICS_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/macros.h"
11 11
12 // Class that implements obtaining the X coordinate of the native minimize 12 // Class that implements obtaining the X coordinate of the native minimize
13 // button for the native frame on Windows. 13 // button for the native frame on Windows.
14 // This is a separate class because obtaining it is somewhat tricky and this 14 // This is a separate class because obtaining it is somewhat tricky and this
15 // code is shared between BrowserDesktopWindowTreeHostWin and BrowserFrameWin. 15 // code is shared between BrowserDesktopWindowTreeHostWin and BrowserFrameWin.
16 class MinimizeButtonMetrics { 16 class MinimizeButtonMetrics {
17 public: 17 public:
18 MinimizeButtonMetrics(); 18 MinimizeButtonMetrics();
19 ~MinimizeButtonMetrics(); 19 ~MinimizeButtonMetrics();
20 20
(...skipping 22 matching lines...) Expand all
43 // Static cache of |cached_minimize_button_x_delta_|. 43 // Static cache of |cached_minimize_button_x_delta_|.
44 static int last_cached_minimize_button_x_delta_; 44 static int last_cached_minimize_button_x_delta_;
45 45
46 // Has OnHWNDActivated() been invoked? 46 // Has OnHWNDActivated() been invoked?
47 bool was_activated_; 47 bool was_activated_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(MinimizeButtonMetrics); 49 DISALLOW_COPY_AND_ASSIGN(MinimizeButtonMetrics);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_MINIMIZE_BUTTON_METRICS_WIN_H_ 52 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_MINIMIZE_BUTTON_METRICS_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698