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

Side by Side Diff: chrome/browser/ui/views/user_data_dir_dialog_view.h

Issue 11878031: Bring back the file dialogs for chrome AURA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 #ifndef CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "ui/base/dialogs/select_file_dialog.h" 12 #include "ui/shell_dialogs/select_file_dialog.h"
13 #include "ui/views/window/dialog_delegate.h" 13 #include "ui/views/window/dialog_delegate.h"
14 14
15 namespace views { 15 namespace views {
16 class MessageBoxView; 16 class MessageBoxView;
17 } 17 }
18 18
19 // A dialog box that tells the user that we can't write to the specified user 19 // A dialog box that tells the user that we can't write to the specified user
20 // data directory. Provides the user a chance to pick a different directory. 20 // data directory. Provides the user a chance to pick a different directory.
21 class UserDataDirDialogView : public views::DialogDelegate, 21 class UserDataDirDialogView : public views::DialogDelegate,
22 public MessageLoopForUI::Dispatcher, 22 public MessageLoopForUI::Dispatcher,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; 56 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
57 57
58 // Used to keep track of whether or not to block the message loop (still 58 // Used to keep track of whether or not to block the message loop (still
59 // waiting for the user to dismiss the dialog). 59 // waiting for the user to dismiss the dialog).
60 bool is_blocking_; 60 bool is_blocking_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(UserDataDirDialogView); 62 DISALLOW_COPY_AND_ASSIGN(UserDataDirDialogView);
63 }; 63 };
64 64
65 #endif // CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_VIEW_H_ 65 #endif // CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698