| OLD | NEW |
| 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 Loading... |
| 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__ |
| OLD | NEW |