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

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

Issue 459008: Mac: the return of the tab-modal-sheets patch. (Closed)
Patch Set: Merged ToT. Must ... commit ... soon. Created 11 years 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/chrome_browser.gypi » ('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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 // Implementation of SelectFileDialog that shows a Windows common dialog for 185 // Implementation of SelectFileDialog that shows a Windows common dialog for
186 // choosing a file or folder. 186 // choosing a file or folder.
187 class SelectFileDialogImpl : public SelectFileDialog, 187 class SelectFileDialogImpl : public SelectFileDialog,
188 public BaseShellDialogImpl { 188 public BaseShellDialogImpl {
189 public: 189 public:
190 explicit SelectFileDialogImpl(Listener* listener); 190 explicit SelectFileDialogImpl(Listener* listener);
191 191
192 // SelectFileDialog implementation: 192 // SelectFileDialog implementation:
193 virtual void SelectFile(Type type, 193 virtual void SelectFile(
194 const string16& title, 194 Type type,
195 const FilePath& default_path, 195 const string16& title,
196 const FileTypeInfo* file_types, 196 const FilePath& default_path,
197 int file_type_index, 197 const FileTypeInfo* file_types,
198 const FilePath::StringType& default_extension, 198 int file_type_index,
199 gfx::NativeWindow owning_window, 199 const FilePath::StringType& default_extension,
200 void* params); 200 gfx::NativeWindow owning_window,
201 void* params);
202 virtual void SelectFileDialogImpl::SelectFileInTab(
203 Type type,
204 const string16& title,
205 const FilePath& default_path,
206 const FileTypeInfo* file_types,
207 int file_type_index,
208 const FilePath::StringType& default_extension,
209 TabContents* owning_tab,
210 void* params) {
211 NOTIMPLEMENTED();
212 }
201 virtual bool IsRunning(HWND owning_hwnd) const; 213 virtual bool IsRunning(HWND owning_hwnd) const;
202 virtual void ListenerDestroyed(); 214 virtual void ListenerDestroyed();
203 215
204 private: 216 private:
205 virtual ~SelectFileDialogImpl(); 217 virtual ~SelectFileDialogImpl();
206 218
207 // A struct for holding all the state necessary for displaying a Save dialog. 219 // A struct for holding all the state necessary for displaying a Save dialog.
208 struct ExecuteSelectParams { 220 struct ExecuteSelectParams {
209 ExecuteSelectParams(Type type, 221 ExecuteSelectParams(Type type,
210 const std::wstring& title, 222 const std::wstring& title,
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { 765 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) {
754 if (listener_) 766 if (listener_)
755 listener_->FontSelectionCanceled(params); 767 listener_->FontSelectionCanceled(params);
756 EndRun(run_state); 768 EndRun(run_state);
757 } 769 }
758 770
759 // static 771 // static
760 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { 772 SelectFontDialog* SelectFontDialog::Create(Listener* listener) {
761 return new SelectFontDialogImpl(listener); 773 return new SelectFontDialogImpl(listener);
762 } 774 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698