OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_FIRST_RUN_SEARCH_ENGINE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_SEARCH_ENGINE_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_SEARCH_ENGINE_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_SEARCH_ENGINE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual std::wstring GetWindowTitle() const; | 96 virtual std::wstring GetWindowTitle() const; |
97 views::View* GetContentsView() { return this; } | 97 views::View* GetContentsView() { return this; } |
98 bool CanResize() const { return false; } | 98 bool CanResize() const { return false; } |
99 bool CanMaximize() const { return false; } | 99 bool CanMaximize() const { return false; } |
100 bool IsAlwaysOnTop() const { return false; } | 100 bool IsAlwaysOnTop() const { return false; } |
101 bool HasAlwaysOnTopMenu() const { return false; } | 101 bool HasAlwaysOnTopMenu() const { return false; } |
102 | 102 |
103 // Overridden from views::ButtonListener: | 103 // Overridden from views::ButtonListener: |
104 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 104 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
105 | 105 |
| 106 // Override from View so we can draw the gray background at dialog top. |
| 107 virtual void Paint(gfx::Canvas* canvas); |
| 108 |
106 // Overridden from TemplateURLModelObserver. When the search engines have | 109 // Overridden from TemplateURLModelObserver. When the search engines have |
107 // loaded from the profile, we can populate the logos in the dialog box | 110 // loaded from the profile, we can populate the logos in the dialog box |
108 // to present to the user. | 111 // to present to the user. |
109 virtual void OnTemplateURLModelChanged(); | 112 virtual void OnTemplateURLModelChanged(); |
110 | 113 |
111 private: | 114 private: |
112 // Initializes the labels and controls in the view. | 115 // Initializes the labels and controls in the view. |
113 void SetupControls(); | 116 void SetupControls(); |
114 | 117 |
115 // Owned by the profile_. | 118 // Owned by the profile_. |
(...skipping 15 matching lines...) Expand all Loading... |
131 | 134 |
132 // UI elements: | 135 // UI elements: |
133 views::Label* title_label_; | 136 views::Label* title_label_; |
134 views::Label* text_label_; | 137 views::Label* text_label_; |
135 | 138 |
136 DISALLOW_COPY_AND_ASSIGN(FirstRunSearchEngineView); | 139 DISALLOW_COPY_AND_ASSIGN(FirstRunSearchEngineView); |
137 }; | 140 }; |
138 | 141 |
139 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_SEARCH_ENGINE_VIEW_H_ | 142 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_SEARCH_ENGINE_VIEW_H_ |
140 | 143 |
OLD | NEW |