OLD | NEW |
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 Loading... |
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 |
OLD | NEW |