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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h

Issue 2204393002: [Extensions] Remove ExtensionFunction usage of RenderViewHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/chromeos/extensions/file_manager/private_api_misc.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698