| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 prompts the user to enter a profile name, and opens a new | 5 // A dialog box that prompts the user to enter a profile name, and opens a new |
| 6 // window in that profile. | 6 // window in that profile. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ | 8 #ifndef CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ |
| 9 #define CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ | 9 #define CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 virtual bool Accept(); | 32 virtual bool Accept(); |
| 33 virtual int GetDialogButtons() const; | 33 virtual int GetDialogButtons() const; |
| 34 virtual views::View* GetInitiallyFocusedView(); | 34 virtual views::View* GetInitiallyFocusedView(); |
| 35 virtual bool IsDialogButtonEnabled(DialogButton button) const; | 35 virtual bool IsDialogButtonEnabled(DialogButton button) const; |
| 36 virtual std::wstring GetWindowTitle() const; | 36 virtual std::wstring GetWindowTitle() const; |
| 37 virtual void DeleteDelegate(); | 37 virtual void DeleteDelegate(); |
| 38 | 38 |
| 39 // views::TextField::Controller methods. | 39 // views::TextField::Controller methods. |
| 40 virtual void ContentsChanged(views::TextField* sender, | 40 virtual void ContentsChanged(views::TextField* sender, |
| 41 const std::wstring& new_contents); | 41 const std::wstring& new_contents); |
| 42 virtual void HandleKeystroke(views::TextField* sender, | 42 virtual bool HandleKeystroke(views::TextField* sender, |
| 43 UINT message, TCHAR key, UINT repeat_count, | 43 UINT message, TCHAR key, UINT repeat_count, |
| 44 UINT flags) {} | 44 UINT flags) { return false; } |
| 45 | 45 |
| 46 // views::WindowDelegate methods. | 46 // views::WindowDelegate methods. |
| 47 virtual views::View* GetContentsView(); | 47 virtual views::View* GetContentsView(); |
| 48 virtual bool IsAlwaysOnTop() const { return false; } | 48 virtual bool IsAlwaysOnTop() const { return false; } |
| 49 virtual bool IsModal() const { return false; } | 49 virtual bool IsModal() const { return false; } |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 NewProfileDialog(); | 52 NewProfileDialog(); |
| 53 | 53 |
| 54 MessageBoxView* message_box_view_; | 54 MessageBoxView* message_box_view_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(NewProfileDialog); | 56 DISALLOW_COPY_AND_ASSIGN(NewProfileDialog); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ | 59 #endif // CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ |
| OLD | NEW |