OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_USER_DATA_DIR_DIALOG_H_ | 8 #ifndef CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_H_ |
9 #define CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_H_ | 9 #define CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "chrome/browser/ui/shell_dialogs.h" | 14 #include "chrome/browser/ui/shell_dialogs.h" |
15 #include "views/window/dialog_delegate.h" | 15 #include "ui/views/window/dialog_delegate.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 | 18 |
19 namespace views { | 19 namespace views { |
20 class MessageBoxView; | 20 class MessageBoxView; |
21 } | 21 } |
22 | 22 |
23 class UserDataDirDialog : public views::DialogDelegate, | 23 class UserDataDirDialog : public views::DialogDelegate, |
24 public MessageLoopForUI::Dispatcher, | 24 public MessageLoopForUI::Dispatcher, |
25 public SelectFileDialog::Listener { | 25 public SelectFileDialog::Listener { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 scoped_refptr<SelectFileDialog> select_file_dialog_; | 65 scoped_refptr<SelectFileDialog> select_file_dialog_; |
66 | 66 |
67 // Used to keep track of whether or not to block the message loop (still | 67 // Used to keep track of whether or not to block the message loop (still |
68 // waiting for the user to dismiss the dialog). | 68 // waiting for the user to dismiss the dialog). |
69 bool is_blocking_; | 69 bool is_blocking_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(UserDataDirDialog); | 71 DISALLOW_COPY_AND_ASSIGN(UserDataDirDialog); |
72 }; | 72 }; |
73 | 73 |
74 #endif // CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_H_ | 74 #endif // CHROME_BROWSER_UI_VIEWS_USER_DATA_DIR_DIALOG_H_ |
OLD | NEW |