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

Side by Side Diff: ui/base/cocoa/cocoa_base_utils.h

Issue 1777653002: Prepare ui/ module for compilation with OS X 10.7 deployment target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More compile errors. Created 4 years, 9 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 | « ui/app_list/cocoa/apps_search_box_controller.mm ('k') | ui/base/cocoa/cocoa_base_utils.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COCOA_BASE_UTILS_H_ 5 #ifndef UI_BASE_COCOA_COCOA_BASE_UTILS_H_
6 #define UI_BASE_COCOA_COCOA_BASE_UTILS_H_ 6 #define UI_BASE_COCOA_COCOA_BASE_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"
11 #include "ui/base/window_open_disposition.h" 11 #include "ui/base/window_open_disposition.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 // Retrieves the WindowOpenDisposition used to open a link from a user gesture 15 // Retrieves the WindowOpenDisposition used to open a link from a user gesture
16 // represented by |event|. For example, a Cmd+Click would mean open the 16 // represented by |event|. For example, a Cmd+Click would mean open the
17 // associated link in a background tab. 17 // associated link in a background tab.
18 UI_BASE_EXPORT WindowOpenDisposition 18 UI_BASE_EXPORT WindowOpenDisposition
19 WindowOpenDispositionFromNSEvent(NSEvent* event); 19 WindowOpenDispositionFromNSEvent(NSEvent* event);
20 20
21 // Retrieves the WindowOpenDisposition used to open a link from a user gesture 21 // Retrieves the WindowOpenDisposition used to open a link from a user gesture
22 // represented by |event|, but instead use the modifier flags given by |flags|, 22 // represented by |event|, but instead use the modifier flags given by |flags|,
23 // which is the same format as |-NSEvent modifierFlags|. This allows 23 // which is the same format as |-NSEvent modifierFlags|. This allows
24 // substitution of the modifiers without having to create a new event from 24 // substitution of the modifiers without having to create a new event from
25 // scratch. 25 // scratch.
26 UI_BASE_EXPORT WindowOpenDisposition 26 UI_BASE_EXPORT WindowOpenDisposition
27 WindowOpenDispositionFromNSEventWithFlags(NSEvent* event, NSUInteger flags); 27 WindowOpenDispositionFromNSEventWithFlags(NSEvent* event, NSUInteger flags);
28 28
29 // Converts a point from window coordinates to screen coordinates.
30 UI_BASE_EXPORT NSPoint ConvertPointFromWindowToScreen(NSWindow* window,
31 NSPoint point);
32
33 // Converts a point from screen coordinates to window coordinates.
34 UI_BASE_EXPORT NSPoint ConvertPointFromScreenToWindow(NSWindow* window,
35 NSPoint point);
36
29 } // namespace ui 37 } // namespace ui
30 38
31 #endif // UI_BASE_COCOA_COCOA_BASE_UTILS_H_ 39 #endif // UI_BASE_COCOA_COCOA_BASE_UTILS_H_
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/apps_search_box_controller.mm ('k') | ui/base/cocoa/cocoa_base_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698