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

Unified Diff: win8/metro_driver/chrome_app_view_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/chrome_app_view_ash.h
===================================================================
--- win8/metro_driver/chrome_app_view_ash.h (revision 194196)
+++ win8/metro_driver/chrome_app_view_ash.h (working copy)
@@ -10,6 +10,7 @@
#include <windows.ui.input.h>
#include <windows.ui.viewmanagement.h>
+#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
#include "ui/base/events/event_constants.h"
@@ -22,6 +23,8 @@
class OpenFilePickerSession;
class SaveFilePickerSession;
+class FolderPickerSession;
+class FilePickerSessionBase;
struct MetroViewerHostMsg_SaveAsDialogParams;
@@ -45,10 +48,11 @@
void OnSetCursor(HCURSOR cursor);
void OnDisplayFileOpenDialog(const string16& title,
const string16& filter,
- const string16& default_path,
+ const base::FilePath& default_path,
bool allow_multiple_files);
void OnDisplayFileSaveAsDialog(
const MetroViewerHostMsg_SaveAsDialogParams& params);
+ void OnDisplayFolderPicker(const string16& title);
// This function is invoked when the open file operation completes. The
// result of the operation is passed in along with the OpenFilePickerSession
@@ -64,6 +68,13 @@
void OnSaveFileCompleted(SaveFilePickerSession* save_file_picker,
bool success);
+ // This function is invoked when the folder picker operation completes. The
+ // result of the operation is passed in along with the FolderPickerSession
+ // instance which is deleted after we read the required information from
+ // the FolderPickerSession class.
+ void OnFolderPickerCompleted(FolderPickerSession* folder_picker,
+ bool success);
+
private:
HRESULT OnActivate(winapp::Core::ICoreApplicationView* view,
winapp::Activation::IActivatedEventArgs* args);
@@ -109,6 +120,7 @@
EventRegistrationToken visibility_changed_token_;
EventRegistrationToken accel_keydown_token_;
EventRegistrationToken accel_keyup_token_;
+ EventRegistrationToken window_activated_token_;
// Keep state about which button is currently down, if any, as PointerMoved
// events do not contain that state, but Ash's MouseEvents need it.
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698