OLD | NEW |
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_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
7 #pragma once | |
8 | 7 |
9 #include "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
10 #include "chrome/browser/ui/select_file_dialog.h" | 9 #include "chrome/browser/ui/select_file_dialog.h" |
11 | 10 |
12 namespace extensions { | 11 namespace extensions { |
13 | 12 |
14 class FileSystemGetDisplayPathFunction : public SyncExtensionFunction { | 13 class FileSystemGetDisplayPathFunction : public SyncExtensionFunction { |
15 public: | 14 public: |
16 DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.getDisplayPath"); | 15 DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.getDisplayPath"); |
17 | 16 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 private: | 75 private: |
77 // FileSelected and FileSelectionCanceled are called by the file picker. | 76 // FileSelected and FileSelectionCanceled are called by the file picker. |
78 void FileSelected(const FilePath& path, EntryType entry_type); | 77 void FileSelected(const FilePath& path, EntryType entry_type); |
79 void FileSelectionCanceled(); | 78 void FileSelectionCanceled(); |
80 }; | 79 }; |
81 | 80 |
82 } // namespace extensions | 81 } // namespace extensions |
83 | 82 |
84 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ |
OLD | NEW |