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

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

Issue 1929443002: Add selection of downloaded file using Nautilus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra check in if Created 4 years, 7 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/platform_util_linux.cc » ('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) 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/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 19 matching lines...) Expand all
30 // was expected. I.e. OpenFile was called on a 30 // was expected. I.e. OpenFile was called on a
31 // folder or OpenFolder called on a file. 31 // folder or OpenFolder called on a file.
32 OPEN_FAILED_NO_HANLDER_FOR_FILE_TYPE, // There was no file handler capable of 32 OPEN_FAILED_NO_HANLDER_FOR_FILE_TYPE, // There was no file handler capable of
33 // opening file. Only returned on 33 // opening file. Only returned on
34 // ChromeOS. 34 // ChromeOS.
35 OPEN_FAILED_FILE_ERROR, // Open operation failed due to some other file 35 OPEN_FAILED_FILE_ERROR, // Open operation failed due to some other file
36 // error. 36 // error.
37 }; 37 };
38 38
39 // Type of item that is the target of the OpenItem() call. 39 // Type of item that is the target of the OpenItem() call.
40 enum OpenItemType { OPEN_FILE, OPEN_FOLDER }; 40 enum OpenItemType {
41 OPEN_FILE,
42 OPEN_FOLDER,
43 #if defined(OS_LINUX)
44 SHOW_ITEM_IN_FOLDER
45 #endif
46 };
41 47
42 // Callback used with OpenFile and OpenFolder. 48 // Callback used with OpenFile and OpenFolder.
43 typedef base::Callback<void(OpenOperationResult)> OpenOperationCallback; 49 typedef base::Callback<void(OpenOperationResult)> OpenOperationCallback;
44 50
45 // Opens the item specified by |full_path|, which is expected to be the type 51 // Opens the item specified by |full_path|, which is expected to be the type
46 // indicated by |item_type| in the desktop's default manner. 52 // indicated by |item_type| in the desktop's default manner.
47 // |callback| will be invoked on the UI thread with the result of the open 53 // |callback| will be invoked on the UI thread with the result of the open
48 // operation. 54 // operation.
49 // 55 //
50 // It is an error if the object at |full_path| does not match the intended type 56 // It is an error if the object at |full_path| does not match the intended type
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // the feature is supported and enabled, and false otherwise. 105 // the feature is supported and enabled, and false otherwise.
100 bool IsSwipeTrackingFromScrollEventsEnabled(); 106 bool IsSwipeTrackingFromScrollEventsEnabled();
101 #endif 107 #endif
102 108
103 #if BUILDFLAG(ANDROID_JAVA_UI) 109 #if BUILDFLAG(ANDROID_JAVA_UI)
104 bool RegisterPlatformUtil(JNIEnv* env); 110 bool RegisterPlatformUtil(JNIEnv* env);
105 #endif 111 #endif
106 } // namespace platform_util 112 } // namespace platform_util
107 113
108 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_ 114 #endif // CHROME_BROWSER_PLATFORM_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698