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

Side by Side Diff: chrome/browser/platform_util.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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_PLATFORM_UTIL_H_ 5 #ifndef CHROME_BROWSER_PLATFORM_UTIL_H_
6 #define CHROME_BROWSER_PLATFORM_UTIL_H_ 6 #define CHROME_BROWSER_PLATFORM_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 class GURL;
14
15 namespace base {
13 class FilePath; 16 class FilePath;
14 class GURL; 17 }
15 18
16 namespace platform_util { 19 namespace platform_util {
17 20
18 // Show the given file in a file manager. If possible, select the file. 21 // Show the given file in a file manager. If possible, select the file.
19 // Must be called from the UI thread. 22 // Must be called from the UI thread.
20 void ShowItemInFolder(const FilePath& full_path); 23 void ShowItemInFolder(const base::FilePath& full_path);
21 24
22 // Open the given file in the desktop's default manner. 25 // Open the given file in the desktop's default manner.
23 // Must be called from the UI thread. 26 // Must be called from the UI thread.
24 void OpenItem(const FilePath& full_path); 27 void OpenItem(const base::FilePath& full_path);
25 28
26 // Open the given external protocol URL in the desktop's default manner. 29 // Open the given external protocol URL in the desktop's default manner.
27 // (For example, mailto: URLs in the default mail user agent.) 30 // (For example, mailto: URLs in the default mail user agent.)
28 void OpenExternal(const GURL& url); 31 void OpenExternal(const GURL& url);
29 32
30 // Get the top level window for the native view. This can return NULL. 33 // Get the top level window for the native view. This can return NULL.
31 gfx::NativeWindow GetTopLevel(gfx::NativeView view); 34 gfx::NativeWindow GetTopLevel(gfx::NativeView view);
32 35
33 // Get the direct parent of |view|, may return NULL. 36 // Get the direct parent of |view|, may return NULL.
34 gfx::NativeView GetParent(gfx::NativeView view); 37 gfx::NativeView GetParent(gfx::NativeView view);
(...skipping 12 matching lines...) Expand all
47 #if defined(OS_MACOSX) 50 #if defined(OS_MACOSX)
48 // On 10.7+, back and forward swipe gestures can be triggered using a scroll 51 // On 10.7+, back and forward swipe gestures can be triggered using a scroll
49 // gesture, if enabled in System Preferences. This function returns true if 52 // gesture, if enabled in System Preferences. This function returns true if
50 // the feature is supported and enabled, and false otherwise. 53 // the feature is supported and enabled, and false otherwise.
51 bool IsSwipeTrackingFromScrollEventsEnabled(); 54 bool IsSwipeTrackingFromScrollEventsEnabled();
52 #endif 55 #endif
53 56
54 } // platform_util 57 } // platform_util
55 58
56 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ 59 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/parsers/metadata_parser_manager.h ('k') | chrome/browser/platform_util_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698