OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 UI_BASE_COCOA_APPKIT_UTILS_H | 5 #ifndef UI_BASE_COCOA_APPKIT_UTILS_H |
6 #define UI_BASE_COCOA_APPKIT_UTILS_H | 6 #define UI_BASE_COCOA_APPKIT_UTILS_H |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "ui/base/ui_base_export.h" | 10 #include "ui/base/ui_base_export.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // Minimizes or zooms the window, or does nothing, depending on OS version and | 38 // Minimizes or zooms the window, or does nothing, depending on OS version and |
39 // system configuration. | 39 // system configuration. |
40 // |window| is the receiver of the double click. | 40 // |window| is the receiver of the double click. |
41 // |sender| is the object that sends the action, if one is sent. | 41 // |sender| is the object that sends the action, if one is sent. |
42 UI_BASE_EXPORT void WindowTitlebarReceivedDoubleClick(NSWindow* window, | 42 UI_BASE_EXPORT void WindowTitlebarReceivedDoubleClick(NSWindow* window, |
43 id sender); | 43 id sender); |
44 | 44 |
45 // Whether a force-click event on the touchpad should invoke Quick Look. | 45 // Whether a force-click event on the touchpad should invoke Quick Look. |
46 UI_BASE_EXPORT bool ForceClickInvokesQuickLook(); | 46 UI_BASE_EXPORT bool ForceClickInvokesQuickLook(); |
47 | 47 |
| 48 // Returns true if both CGFloat values are equal. |
| 49 UI_BASE_EXPORT bool IsCGFloatEqual(CGFloat a, CGFloat b); |
| 50 |
48 } // namespace ui | 51 } // namespace ui |
49 | 52 |
50 #endif // UI_BASE_COCOA_APPKIT_UTILS_H | 53 #endif // UI_BASE_COCOA_APPKIT_UTILS_H |
OLD | NEW |