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

Side by Side Diff: chrome/browser/views/user_data_dir_dialog.h

Issue 45048: Remove Windows "Save As" dialogs from Save Page code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/shell_dialogs_win.cc ('k') | chrome/browser/views/user_data_dir_dialog.cc » ('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 // A dialog box that tells the user that we can't write to the specified user 5 // A dialog box that tells the user that we can't write to the specified user
6 // data directory. Provides the user a chance to pick a different directory. 6 // data directory. Provides the user a chance to pick a different directory.
7 7
8 #ifndef CHROME_BROWSER_USER_DATA_DIR_DIALOG_H__ 8 #ifndef CHROME_BROWSER_USER_DATA_DIR_DIALOG_H__
9 #define CHROME_BROWSER_USER_DATA_DIR_DIALOG_H__ 9 #define CHROME_BROWSER_USER_DATA_DIR_DIALOG_H__
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 // views::WindowDelegate Methods: 42 // views::WindowDelegate Methods:
43 virtual bool IsAlwaysOnTop() const { return false; } 43 virtual bool IsAlwaysOnTop() const { return false; }
44 virtual bool IsModal() const { return false; } 44 virtual bool IsModal() const { return false; }
45 virtual views::View* GetContentsView(); 45 virtual views::View* GetContentsView();
46 46
47 // MessageLoop::Dispatcher Method: 47 // MessageLoop::Dispatcher Method:
48 virtual bool Dispatch(const MSG& msg); 48 virtual bool Dispatch(const MSG& msg);
49 49
50 // SelectFileDialog::Listener Methods: 50 // SelectFileDialog::Listener Methods:
51 virtual void FileSelected(const std::wstring& path, void* params); 51 virtual void FileSelected(const std::wstring& path, int index, void* params);
52 virtual void FileSelectionCanceled(void* params); 52 virtual void FileSelectionCanceled(void* params);
53 53
54 private: 54 private:
55 explicit UserDataDirDialog(const std::wstring& user_data_dir); 55 explicit UserDataDirDialog(const std::wstring& user_data_dir);
56 56
57 // Empty until the user picks a directory. 57 // Empty until the user picks a directory.
58 std::wstring user_data_dir_; 58 std::wstring user_data_dir_;
59 59
60 MessageBoxView* message_box_view_; 60 MessageBoxView* message_box_view_;
61 scoped_refptr<SelectFileDialog> select_file_dialog_; 61 scoped_refptr<SelectFileDialog> select_file_dialog_;
62 62
63 // Used to keep track of whether or not to block the message loop (still 63 // Used to keep track of whether or not to block the message loop (still
64 // waiting for the user to dismiss the dialog). 64 // waiting for the user to dismiss the dialog).
65 bool is_blocking_; 65 bool is_blocking_;
66 66
67 DISALLOW_EVIL_CONSTRUCTORS(UserDataDirDialog); 67 DISALLOW_EVIL_CONSTRUCTORS(UserDataDirDialog);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_USER_DATA_DIR_DIALOG_H__ 70 #endif // CHROME_BROWSER_USER_DATA_DIR_DIALOG_H__
OLDNEW
« no previous file with comments | « chrome/browser/views/shell_dialogs_win.cc ('k') | chrome/browser/views/user_data_dir_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698