OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This file provides API functions for the file manager to act as the file | 5 // This file provides API functions for the file manager to act as the file |
6 // dialog for opening and saving files. | 6 // dialog for opening and saving files. |
7 | 7 |
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DIALOG_H_ | 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DIALOG_H_ |
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DIALOG_H_ | 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DIALOG_H_ |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" | 12 #include "chrome/browser/chromeos/extensions/file_manager/private_api_base.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 struct SelectedFileInfo; | 15 struct SelectedFileInfo; |
16 } | 16 } |
17 | 17 |
18 namespace file_manager { | 18 namespace extensions { |
19 | 19 |
20 // Cancel file selection Dialog. Closes the dialog window. | 20 // Cancel file selection Dialog. Closes the dialog window. |
21 class CancelFileDialogFunction : public LoggedAsyncExtensionFunction { | 21 class CancelFileDialogFunction : public LoggedAsyncExtensionFunction { |
22 public: | 22 public: |
23 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.cancelDialog", | 23 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.cancelDialog", |
24 FILEBROWSERPRIVATE_CANCELDIALOG) | 24 FILEBROWSERPRIVATE_CANCELDIALOG) |
25 | 25 |
26 CancelFileDialogFunction(); | 26 CancelFileDialogFunction(); |
27 | 27 |
28 protected: | 28 protected: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // AsyncExtensionFunction overrides. | 65 // AsyncExtensionFunction overrides. |
66 virtual bool RunImpl() OVERRIDE; | 66 virtual bool RunImpl() OVERRIDE; |
67 | 67 |
68 private: | 68 private: |
69 // A callback method to handle the result of GetSelectedFileInfo. | 69 // A callback method to handle the result of GetSelectedFileInfo. |
70 void GetSelectedFileInfoResponse( | 70 void GetSelectedFileInfoResponse( |
71 const std::vector<ui::SelectedFileInfo>& files); | 71 const std::vector<ui::SelectedFileInfo>& files); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace file_manager | 74 } // namespace extensions |
75 | 75 |
76 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DIALOG_H_ | 76 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_DIALOG_H_ |
OLD | NEW |