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_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API
_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 | 775 |
776 protected: | 776 protected: |
777 virtual ~ValidatePathNameLengthFunction(); | 777 virtual ~ValidatePathNameLengthFunction(); |
778 | 778 |
779 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); | 779 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); |
780 | 780 |
781 // AsyncExtensionFunction overrides. | 781 // AsyncExtensionFunction overrides. |
782 virtual bool RunImpl() OVERRIDE; | 782 virtual bool RunImpl() OVERRIDE; |
783 }; | 783 }; |
784 | 784 |
785 // Implements the chrome.fileBrowserPrivate.newWindow method. | |
786 class OpenNewWindowFunction : public AsyncExtensionFunction { | |
787 public: | |
788 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.openNewWindow", | |
789 FILEBROWSERPRIVATE_OPENNEWWINDOW) | |
790 | |
791 OpenNewWindowFunction(); | |
792 | |
793 protected: | |
794 virtual ~OpenNewWindowFunction(); | |
795 | |
796 // AsyncExtensionFunction overrides. | |
797 virtual bool RunImpl() OVERRIDE; | |
798 }; | |
799 | |
800 class ZoomFunction : public SyncExtensionFunction { | 785 class ZoomFunction : public SyncExtensionFunction { |
801 public: | 786 public: |
802 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.zoom", | 787 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.zoom", |
803 FILEBROWSERPRIVATE_ZOOM); | 788 FILEBROWSERPRIVATE_ZOOM); |
804 | 789 |
805 protected: | 790 protected: |
806 virtual ~ZoomFunction() {} | 791 virtual ~ZoomFunction() {} |
807 virtual bool RunImpl() OVERRIDE; | 792 virtual bool RunImpl() OVERRIDE; |
808 }; | 793 }; |
809 | 794 |
810 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ | 795 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ |
OLD | NEW |