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

Side by Side Diff: chrome/browser/views/shell_dialogs_win.cc

Issue 164547: Mac: make save/open dialogs operate as tab-modal sheets.... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Painfully (but hopefully correctly) merged ToT. Created 11 years, 2 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/shell_dialogs.h" 5 #include "chrome/browser/shell_dialogs.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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 // Implementation of SelectFileDialog that shows a Windows common dialog for 189 // Implementation of SelectFileDialog that shows a Windows common dialog for
190 // choosing a file or folder. 190 // choosing a file or folder.
191 class SelectFileDialogImpl : public SelectFileDialog, 191 class SelectFileDialogImpl : public SelectFileDialog,
192 public BaseShellDialogImpl { 192 public BaseShellDialogImpl {
193 public: 193 public:
194 explicit SelectFileDialogImpl(Listener* listener); 194 explicit SelectFileDialogImpl(Listener* listener);
195 virtual ~SelectFileDialogImpl(); 195 virtual ~SelectFileDialogImpl();
196 196
197 // SelectFileDialog implementation: 197 // SelectFileDialog implementation:
198 virtual void SelectFile(Type type, 198 virtual void SelectFile(
199 const string16& title, 199 Type type,
200 const FilePath& default_path, 200 const string16& title,
201 const FileTypeInfo* file_types, 201 const FilePath& default_path,
202 int file_type_index, 202 const FileTypeInfo* file_types,
203 const FilePath::StringType& default_extension, 203 int file_type_index,
204 gfx::NativeWindow owning_window, 204 const FilePath::StringType& default_extension,
205 void* params); 205 gfx::NativeWindow owning_window,
206 void* params);
207 virtual void SelectFileDialogImpl::SelectFileInTab(
208 Type type,
209 const string16& title,
210 const FilePath& default_path,
211 const FileTypeInfo* file_types,
212 int file_type_index,
213 const FilePath::StringType& default_extension,
214 TabContents* owning_tab,
215 void* params) {
216 NOTIMPLEMENTED();
217 }
206 virtual bool IsRunning(HWND owning_hwnd) const; 218 virtual bool IsRunning(HWND owning_hwnd) const;
207 virtual void ListenerDestroyed(); 219 virtual void ListenerDestroyed();
208 220
209 private: 221 private:
210 // A struct for holding all the state necessary for displaying a Save dialog. 222 // A struct for holding all the state necessary for displaying a Save dialog.
211 struct ExecuteSelectParams { 223 struct ExecuteSelectParams {
212 ExecuteSelectParams(Type type, 224 ExecuteSelectParams(Type type,
213 const std::wstring& title, 225 const std::wstring& title,
214 const FilePath& default_path, 226 const FilePath& default_path,
215 const FileTypeInfo* file_types, 227 const FileTypeInfo* file_types,
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { 753 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) {
742 if (listener_) 754 if (listener_)
743 listener_->FontSelectionCanceled(params); 755 listener_->FontSelectionCanceled(params);
744 EndRun(run_state); 756 EndRun(run_state);
745 } 757 }
746 758
747 // static 759 // static
748 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { 760 SelectFontDialog* SelectFontDialog::Create(Listener* listener) {
749 return new SelectFontDialogImpl(listener); 761 return new SelectFontDialogImpl(listener);
750 } 762 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698