| 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 miscellaneous API functions, which don't belong to | 5 // This file provides miscellaneous API functions, which don't belong to |
| 6 // other files. | 6 // other files. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.zoom", | 90 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.zoom", |
| 91 FILEBROWSERPRIVATE_ZOOM); | 91 FILEBROWSERPRIVATE_ZOOM); |
| 92 | 92 |
| 93 ZoomFunction(); | 93 ZoomFunction(); |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 virtual ~ZoomFunction(); | 96 virtual ~ZoomFunction(); |
| 97 virtual bool RunImpl() OVERRIDE; | 97 virtual bool RunImpl() OVERRIDE; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // Implements the chrome.fileBrowserPrivate.installWebstoreApp method. |
| 101 class InstallWebstoreAppFunction : public LoggedAsyncExtensionFunction { |
| 102 public: |
| 103 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.installWebstoreApp", |
| 104 FILEBROWSERPRIVATE_INSTALLWEBSTOREAPP); |
| 105 |
| 106 InstallWebstoreAppFunction(); |
| 107 |
| 108 protected: |
| 109 virtual ~InstallWebstoreAppFunction(); |
| 110 virtual bool RunImpl() OVERRIDE; |
| 111 void OnInstallComplete(bool success, const std::string& error); |
| 112 |
| 113 private: |
| 114 std::string webstore_item_id_; |
| 115 }; |
| 116 |
| 100 } // namespace file_manager | 117 } // namespace file_manager |
| 101 | 118 |
| 102 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 119 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| OLD | NEW |