OLD | NEW |
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 #include "stdafx.h" | 5 #include "stdafx.h" |
6 #include "win8/metro_driver/file_picker.h" | 6 #include "win8/metro_driver/file_picker.h" |
7 | 7 |
8 #include <windows.storage.pickers.h> | 8 #include <windows.storage.pickers.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "base/win/metro.h" | 16 #include "base/win/metro.h" |
17 #include "base/win/scoped_comptr.h" | 17 #include "base/win/scoped_comptr.h" |
18 #include "win8/metro_driver/chrome_app_view.h" | 18 #include "win8/metro_driver/chrome_app_view.h" |
19 #include "win8/metro_driver/winrt_utils.h" | 19 #include "win8/metro_driver/winrt_utils.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 namespace winstorage = ABI::Windows::Storage; | 23 namespace winstorage = ABI::Windows::Storage; |
24 typedef winfoundtn::Collections::IVector<HSTRING> StringVectorItf; | 24 typedef winfoundtn::Collections::IVector<HSTRING> StringVectorItf; |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 OpenFilePickerSession session(open_file_name); | 611 OpenFilePickerSession session(open_file_name); |
612 | 612 |
613 return session.Run(); | 613 return session.Run(); |
614 } | 614 } |
615 | 615 |
616 BOOL MetroGetSaveFileName(OPENFILENAME* open_file_name) { | 616 BOOL MetroGetSaveFileName(OPENFILENAME* open_file_name) { |
617 SaveFilePickerSession session(open_file_name); | 617 SaveFilePickerSession session(open_file_name); |
618 | 618 |
619 return session.Run(); | 619 return session.Run(); |
620 } | 620 } |
OLD | NEW |