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_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 virtual bool RunImpl() OVERRIDE; | 345 virtual bool RunImpl() OVERRIDE; |
346 | 346 |
347 private: | 347 private: |
348 // A callback method to handle the result of | 348 // A callback method to handle the result of |
349 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. | 349 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. |
350 void GetLocalPathsResponseOnUIThread(const FilePathList& files); | 350 void GetLocalPathsResponseOnUIThread(const FilePathList& files); |
351 | 351 |
352 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata"); | 352 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getVolumeMetadata"); |
353 }; | 353 }; |
354 | 354 |
| 355 // Toggles fullscreen mode for the browser. |
| 356 class ToggleFullscreenFunction : public SyncExtensionFunction { |
| 357 protected: |
| 358 virtual bool RunImpl() OVERRIDE; |
| 359 private: |
| 360 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.toggleFullscreen"); |
| 361 }; |
| 362 |
| 363 // Checks if the browser is in fullscreen mode. |
| 364 class IsFullscreenFunction : public SyncExtensionFunction { |
| 365 protected: |
| 366 virtual bool RunImpl() OVERRIDE; |
| 367 private: |
| 368 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.isFullscreen"); |
| 369 }; |
| 370 |
355 // File Dialog Strings. | 371 // File Dialog Strings. |
356 class FileDialogStringsFunction : public SyncExtensionFunction { | 372 class FileDialogStringsFunction : public SyncExtensionFunction { |
357 public: | 373 public: |
358 FileDialogStringsFunction() {} | 374 FileDialogStringsFunction() {} |
359 | 375 |
360 protected: | 376 protected: |
361 virtual ~FileDialogStringsFunction() {} | 377 virtual ~FileDialogStringsFunction() {} |
362 | 378 |
363 // SyncExtensionFunction overrides. | 379 // SyncExtensionFunction overrides. |
364 virtual bool RunImpl() OVERRIDE; | 380 virtual bool RunImpl() OVERRIDE; |
365 | 381 |
366 private: | 382 private: |
367 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); | 383 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); |
368 }; | 384 }; |
369 | 385 |
370 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 386 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |