| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ~FileManagerPrivateInternalZipSelectionFunction() override; | 81 ~FileManagerPrivateInternalZipSelectionFunction() override; |
| 82 | 82 |
| 83 // AsyncExtensionFunction overrides. | 83 // AsyncExtensionFunction overrides. |
| 84 bool RunAsync() override; | 84 bool RunAsync() override; |
| 85 | 85 |
| 86 // Receives the result from ZipFileCreator. | 86 // Receives the result from ZipFileCreator. |
| 87 void OnZipDone(bool success); | 87 void OnZipDone(bool success); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 // Implements the chrome.fileManagerPrivate.zoom method. | 90 // Implements the chrome.fileManagerPrivate.zoom method. |
| 91 // Changes the zoom level of the file manager by internally calling | 91 // Changes the zoom level of the file manager by modifying the zoom level of the |
| 92 // RenderViewHost::Zoom(). TODO(hirono): Remove this function once the zoom | 92 // WebContents. |
| 93 // level change is supported for all apps. crbug.com/227175. | 93 // TODO(hirono): Remove this function once the zoom level change is supported |
| 94 // for all apps. crbug.com/227175. |
| 94 class FileManagerPrivateZoomFunction : public ChromeSyncExtensionFunction { | 95 class FileManagerPrivateZoomFunction : public ChromeSyncExtensionFunction { |
| 95 public: | 96 public: |
| 96 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.zoom", | 97 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.zoom", |
| 97 FILEMANAGERPRIVATE_ZOOM); | 98 FILEMANAGERPRIVATE_ZOOM); |
| 98 | 99 |
| 99 protected: | 100 protected: |
| 100 ~FileManagerPrivateZoomFunction() override {} | 101 ~FileManagerPrivateZoomFunction() override {} |
| 101 | 102 |
| 102 // AsyncExtensionFunction overrides. | 103 // AsyncExtensionFunction overrides. |
| 103 bool RunSync() override; | 104 bool RunSync() override; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 void OnCompleted(base::File::Error result); | 266 void OnCompleted(base::File::Error result); |
| 266 | 267 |
| 267 const ChromeExtensionFunctionDetails chrome_details_; | 268 const ChromeExtensionFunctionDetails chrome_details_; |
| 268 DISALLOW_COPY_AND_ASSIGN( | 269 DISALLOW_COPY_AND_ASSIGN( |
| 269 FileManagerPrivateInternalExecuteCustomActionFunction); | 270 FileManagerPrivateInternalExecuteCustomActionFunction); |
| 270 }; | 271 }; |
| 271 | 272 |
| 272 } // namespace extensions | 273 } // namespace extensions |
| 273 | 274 |
| 274 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ | 275 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ |
| OLD | NEW |