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

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

Issue 18024002: Add the new window item to the Files.app's context menu on the launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments + fixed. Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.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 (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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698