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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 const std::vector<base::FilePath>& filenames() const { | 86 const std::vector<base::FilePath>& filenames() const { |
87 return filenames_; | 87 return filenames_; |
88 } | 88 } |
89 | 89 |
90 const bool allow_multi_select() const { | 90 const bool allow_multi_select() const { |
91 return allow_multi_select_; | 91 return allow_multi_select_; |
92 } | 92 } |
93 | 93 |
94 private: | 94 private: |
95 virtual HRESULT StartFilePicker() OVERRIDE; | 95 virtual HRESULT StartFilePicker() override; |
96 | 96 |
97 typedef winfoundtn::IAsyncOperation<winstorage::StorageFile*> | 97 typedef winfoundtn::IAsyncOperation<winstorage::StorageFile*> |
98 SingleFileAsyncOp; | 98 SingleFileAsyncOp; |
99 typedef winfoundtn::Collections::IVectorView< | 99 typedef winfoundtn::Collections::IVectorView< |
100 winstorage::StorageFile*> StorageFileVectorCollection; | 100 winstorage::StorageFile*> StorageFileVectorCollection; |
101 typedef winfoundtn::IAsyncOperation<StorageFileVectorCollection*> | 101 typedef winfoundtn::IAsyncOperation<StorageFileVectorCollection*> |
102 MultiFileAsyncOp; | 102 MultiFileAsyncOp; |
103 | 103 |
104 // Called asynchronously when a single file picker is done. | 104 // Called asynchronously when a single file picker is done. |
105 HRESULT SinglePickerDone(SingleFileAsyncOp* async, AsyncStatus status); | 105 HRESULT SinglePickerDone(SingleFileAsyncOp* async, AsyncStatus status); |
(...skipping 19 matching lines...) Expand all Loading... |
125 // Provides functionality to display the save file picker. | 125 // Provides functionality to display the save file picker. |
126 class SaveFilePickerSession : public FilePickerSessionBase { | 126 class SaveFilePickerSession : public FilePickerSessionBase { |
127 public: | 127 public: |
128 explicit SaveFilePickerSession( | 128 explicit SaveFilePickerSession( |
129 ChromeAppViewAsh* app_view, | 129 ChromeAppViewAsh* app_view, |
130 const MetroViewerHostMsg_SaveAsDialogParams& params); | 130 const MetroViewerHostMsg_SaveAsDialogParams& params); |
131 | 131 |
132 int SaveFilePickerSession::filter_index() const; | 132 int SaveFilePickerSession::filter_index() const; |
133 | 133 |
134 private: | 134 private: |
135 virtual HRESULT StartFilePicker() OVERRIDE; | 135 virtual HRESULT StartFilePicker() override; |
136 | 136 |
137 typedef winfoundtn::IAsyncOperation<winstorage::StorageFile*> | 137 typedef winfoundtn::IAsyncOperation<winstorage::StorageFile*> |
138 SaveFileAsyncOp; | 138 SaveFileAsyncOp; |
139 | 139 |
140 // Called asynchronously when the save file picker is done. | 140 // Called asynchronously when the save file picker is done. |
141 HRESULT FilePickerDone(SaveFileAsyncOp* async, AsyncStatus status); | 141 HRESULT FilePickerDone(SaveFileAsyncOp* async, AsyncStatus status); |
142 | 142 |
143 int filter_index_; | 143 int filter_index_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(SaveFilePickerSession); | 145 DISALLOW_COPY_AND_ASSIGN(SaveFilePickerSession); |
146 }; | 146 }; |
147 | 147 |
148 // Provides functionality to display the folder picker. | 148 // Provides functionality to display the folder picker. |
149 class FolderPickerSession : public FilePickerSessionBase { | 149 class FolderPickerSession : public FilePickerSessionBase { |
150 public: | 150 public: |
151 explicit FolderPickerSession(ChromeAppViewAsh* app_view, | 151 explicit FolderPickerSession(ChromeAppViewAsh* app_view, |
152 const base::string16& title); | 152 const base::string16& title); |
153 | 153 |
154 private: | 154 private: |
155 virtual HRESULT StartFilePicker() OVERRIDE; | 155 virtual HRESULT StartFilePicker() override; |
156 | 156 |
157 typedef winfoundtn::IAsyncOperation<winstorage::StorageFolder*> | 157 typedef winfoundtn::IAsyncOperation<winstorage::StorageFolder*> |
158 FolderPickerAsyncOp; | 158 FolderPickerAsyncOp; |
159 | 159 |
160 // Called asynchronously when the folder picker is done. | 160 // Called asynchronously when the folder picker is done. |
161 HRESULT FolderPickerDone(FolderPickerAsyncOp* async, AsyncStatus status); | 161 HRESULT FolderPickerDone(FolderPickerAsyncOp* async, AsyncStatus status); |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(FolderPickerSession); | 163 DISALLOW_COPY_AND_ASSIGN(FolderPickerSession); |
164 }; | 164 }; |
165 | 165 |
166 #endif // CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_ | 166 #endif // CHROME_BROWSER_UI_METRO_DRIVER_FILE_PICKER_ASH_H_ |
167 | 167 |
OLD | NEW |