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

Side by Side Diff: chrome/browser/ui/views/select_file_dialog_win.cc

Issue 10698053: Breaks compile on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
OLDNEW
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 "chrome/browser/ui/select_file_dialog.h" 5 #include "chrome/browser/ui/select_file_dialog.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <commdlg.h> 8 #include <commdlg.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 10
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 final_name); 427 final_name);
428 } 428 }
429 429
430 } // namespace 430 } // namespace
431 431
432 // Implementation of SelectFileDialog that shows a Windows common dialog for 432 // Implementation of SelectFileDialog that shows a Windows common dialog for
433 // choosing a file or folder. 433 // choosing a file or folder.
434 class SelectFileDialogImpl : public SelectFileDialog, 434 class SelectFileDialogImpl : public SelectFileDialog,
435 public BaseShellDialogImpl { 435 public BaseShellDialogImpl {
436 public: 436 public:
437 explicit SelectFileDialogImpl(Listener* listener, 437 explicit SelectFileDialogImpl(Listener* listener);
438 ui::SelectFilePolicy* policy);
439 438
440 // BaseShellDialog implementation: 439 // BaseShellDialog implementation:
441 virtual bool IsRunning(HWND owning_hwnd) const OVERRIDE; 440 virtual bool IsRunning(HWND owning_hwnd) const OVERRIDE;
442 virtual void ListenerDestroyed() OVERRIDE; 441 virtual void ListenerDestroyed() OVERRIDE;
443 442
444 protected: 443 protected:
445 // SelectFileDialog implementation: 444 // SelectFileDialog implementation:
446 virtual void SelectFileImpl(Type type, 445 virtual void SelectFileImpl(Type type,
447 const string16& title, 446 const string16& title,
448 const FilePath& default_path, 447 const FilePath& default_path,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 LPARAM data); 535 LPARAM data);
537 536
538 virtual bool HasMultipleFileTypeChoicesImpl() OVERRIDE; 537 virtual bool HasMultipleFileTypeChoicesImpl() OVERRIDE;
539 538
540 bool has_multiple_file_type_choices_; 539 bool has_multiple_file_type_choices_;
541 540
542 541
543 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); 542 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl);
544 }; 543 };
545 544
546 SelectFileDialogImpl::SelectFileDialogImpl(Listener* listener, 545 SelectFileDialogImpl::SelectFileDialogImpl(Listener* listener)
547 ui::SelectFilePolicy* policy) 546 : SelectFileDialog(listener),
548 : SelectFileDialog(listener, policy),
549 BaseShellDialogImpl(), 547 BaseShellDialogImpl(),
550 has_multiple_file_type_choices_(false) { 548 has_multiple_file_type_choices_(false) {
551 } 549 }
552 550
553 SelectFileDialogImpl::~SelectFileDialogImpl() { 551 SelectFileDialogImpl::~SelectFileDialogImpl() {
554 } 552 }
555 553
556 void SelectFileDialogImpl::SelectFileImpl( 554 void SelectFileDialogImpl::SelectFileImpl(
557 Type type, 555 Type type,
558 const string16& title, 556 const string16& title,
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 for (std::vector<FilePath>::iterator file = path + 1; 843 for (std::vector<FilePath>::iterator file = path + 1;
846 file != files.end(); ++file) { 844 file != files.end(); ++file) {
847 paths->push_back(path->Append(*file)); 845 paths->push_back(path->Append(*file));
848 } 846 }
849 } 847 }
850 } 848 }
851 return success; 849 return success;
852 } 850 }
853 851
854 // static 852 // static
855 SelectFileDialog* SelectFileDialog::Create(Listener* listener, 853 SelectFileDialog* SelectFileDialog::Create(Listener* listener) {
856 ui::SelectFilePolicy* policy) { 854 return new SelectFileDialogImpl(listener);
857 return new SelectFileDialogImpl(listener, policy);
858 } 855 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/select_file_dialog_extension_unittest.cc ('k') | chrome/browser/ui/views/user_data_dir_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698