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 shows the user various profiles that currently exist | 5 // A dialog box that shows the user various profiles that currently exist |
6 // and lets the user select one. | 6 // and lets the user select one. |
7 | 7 |
8 #ifndef CHROME_BROWSER_VIEWS_SELECT_PROFILE_DIALOG_H_ | 8 #ifndef CHROME_BROWSER_VIEWS_SELECT_PROFILE_DIALOG_H_ |
9 #define CHROME_BROWSER_VIEWS_SELECT_PROFILE_DIALOG_H_ | 9 #define CHROME_BROWSER_VIEWS_SELECT_PROFILE_DIALOG_H_ |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // views::View methods. | 45 // views::View methods. |
46 virtual gfx::Size GetPreferredSize(); | 46 virtual gfx::Size GetPreferredSize(); |
47 virtual void Layout(); | 47 virtual void Layout(); |
48 | 48 |
49 // views::DialogDelegate Methods: | 49 // views::DialogDelegate Methods: |
50 virtual bool Accept(); | 50 virtual bool Accept(); |
51 virtual bool Cancel(); | 51 virtual bool Cancel(); |
52 virtual views::View* GetContentsView(); | 52 virtual views::View* GetContentsView(); |
53 virtual int GetDialogButtons() const; | 53 virtual int GetDialogButtons() const; |
54 virtual views::View* GetInitiallyFocusedView() const; | 54 virtual views::View* GetInitiallyFocusedView(); |
55 virtual std::wstring GetWindowTitle() const; | 55 virtual std::wstring GetWindowTitle() const; |
56 virtual bool IsModal() const { return false; } | 56 virtual bool IsModal() const { return false; } |
57 | 57 |
58 // views::ComboBox::Model methods. | 58 // views::ComboBox::Model methods. |
59 virtual int GetItemCount(views::ComboBox* source); | 59 virtual int GetItemCount(views::ComboBox* source); |
60 virtual std::wstring GetItemAt(views::ComboBox* source, int index); | 60 virtual std::wstring GetItemAt(views::ComboBox* source, int index); |
61 | 61 |
62 // GetProfilesHelper::Delegate method. | 62 // GetProfilesHelper::Delegate method. |
63 virtual void OnGetProfilesDone(const std::vector<std::wstring>& profiles); | 63 virtual void OnGetProfilesDone(const std::vector<std::wstring>& profiles); |
64 | 64 |
(...skipping 10 matching lines...) Expand all Loading... |
75 std::vector<std::wstring> profiles_; | 75 std::vector<std::wstring> profiles_; |
76 std::wstring profile_name_; | 76 std::wstring profile_name_; |
77 | 77 |
78 // Helper instance that handles all task posting activities. | 78 // Helper instance that handles all task posting activities. |
79 scoped_refptr<GetProfilesHelper> helper_; | 79 scoped_refptr<GetProfilesHelper> helper_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(SelectProfileDialog); | 81 DISALLOW_COPY_AND_ASSIGN(SelectProfileDialog); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_VIEWS_SELECT_PROFILE_DIALOG_H_ | 84 #endif // CHROME_BROWSER_VIEWS_SELECT_PROFILE_DIALOG_H_ |
OLD | NEW |