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

Side by Side Diff: win8/metro_driver/file_picker_ash.h

Issue 14282002: Added support for displaying the select folder picker in Chrome ASH on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | « win8/metro_driver/chrome_app_view_ash.cc ('k') | win8/metro_driver/file_picker_ash.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_ 4 #ifndef CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_
5 #define CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_ 5 #define CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 SaveFileAsyncOp; 137 SaveFileAsyncOp;
138 138
139 // Called asynchronously when the save file picker is done. 139 // Called asynchronously when the save file picker is done.
140 HRESULT FilePickerDone(SaveFileAsyncOp* async, AsyncStatus status); 140 HRESULT FilePickerDone(SaveFileAsyncOp* async, AsyncStatus status);
141 141
142 int filter_index_; 142 int filter_index_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(SaveFilePickerSession); 144 DISALLOW_COPY_AND_ASSIGN(SaveFilePickerSession);
145 }; 145 };
146 146
147 // Provides functionality to display the folder picker.
148 class FolderPickerSession : public FilePickerSessionBase {
149 public:
150 explicit FolderPickerSession(ChromeAppViewAsh* app_view,
151 const string16& title);
152
153 private:
154 virtual HRESULT StartFilePicker() OVERRIDE;
155
156 typedef winfoundtn::IAsyncOperation<winstorage::StorageFolder*>
157 FolderPickerAsyncOp;
158
159 // Called asynchronously when the folder picker is done.
160 HRESULT FolderPickerDone(FolderPickerAsyncOp* async, AsyncStatus status);
161
162 DISALLOW_COPY_AND_ASSIGN(FolderPickerSession);
163 };
164
147 #endif // CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_ 165 #endif // CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_
148 166
OLDNEW
« no previous file with comments | « win8/metro_driver/chrome_app_view_ash.cc ('k') | win8/metro_driver/file_picker_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698