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

Side by Side Diff: chrome/browser/ui/cocoa/drag_util.h

Issue 2703863004: [Mac RTL] Correctly position icons and fade text for RTL. (Closed)
Patch Set: pass just the bool Created 3 years, 10 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 | « no previous file | chrome/browser/ui/cocoa/drag_util.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COCOA_DRAG_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_DRAG_UTIL_H_
6 #define CHROME_BROWSER_UI_COCOA_DRAG_UTIL_H_ 6 #define CHROME_BROWSER_UI_COCOA_DRAG_UTIL_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 11
12 class GURL; 12 class GURL;
13 class Profile; 13 class Profile;
14 14
15 namespace drag_util { 15 namespace drag_util {
16 16
17 // Returns the first file URL from |info|, if there is one. If |info| doesn't 17 // Returns the first file URL from |info|, if there is one. If |info| doesn't
18 // contain any file URLs, an empty |GURL| is returned. 18 // contain any file URLs, an empty |GURL| is returned.
19 GURL GetFileURLFromDropData(id<NSDraggingInfo> info); 19 GURL GetFileURLFromDropData(id<NSDraggingInfo> info);
20 20
21 // Determines whether the given drag and drop operation contains content that 21 // Determines whether the given drag and drop operation contains content that
22 // is supported by the web view. In particular, if the content is a local file 22 // is supported by the web view. In particular, if the content is a local file
23 // URL, this checks if it is of a type that can be shown in the tab contents. 23 // URL, this checks if it is of a type that can be shown in the tab contents.
24 BOOL IsUnsupportedDropData(Profile* profile, id<NSDraggingInfo> info); 24 BOOL IsUnsupportedDropData(Profile* profile, id<NSDraggingInfo> info);
25 25
26 // Returns a drag image for a bookmark. 26 // Returns a drag image for a bookmark.
27 NSImage* DragImageForBookmark(NSImage* favicon, 27 NSImage* DragImageForBookmark(NSImage* favicon,
28 const base::string16& title, 28 const base::string16& title,
29 CGFloat title_width); 29 CGFloat drag_image_width);
30 30
31 } // namespace drag_util 31 } // namespace drag_util
32 32
33 #endif // CHROME_BROWSER_UI_COCOA_DRAG_UTIL_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_DRAG_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698