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 #ifndef CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ |
7 | 7 |
8 #include <Windows.h> | 8 #include <Windows.h> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // Invoked when the user modifies a TemplateURL. Updates the TemplateURLModel | 141 // Invoked when the user modifies a TemplateURL. Updates the TemplateURLModel |
142 // and table model appropriately. | 142 // and table model appropriately. |
143 void ModifyTemplateURL(const TemplateURL* template_url, | 143 void ModifyTemplateURL(const TemplateURL* template_url, |
144 const std::wstring& title, | 144 const std::wstring& title, |
145 const std::wstring& keyword, | 145 const std::wstring& keyword, |
146 const std::wstring& url); | 146 const std::wstring& url); |
147 | 147 |
148 // Overriden to invoke Layout. | 148 // Overriden to invoke Layout. |
149 virtual void DidChangeBounds(const CRect& previous, const CRect& current); | 149 virtual void DidChangeBounds(const CRect& previous, const CRect& current); |
150 virtual void GetPreferredSize(CSize* out); | 150 virtual gfx::Size GetPreferredSize(); |
151 | 151 |
152 // DialogDelegate methods: | 152 // DialogDelegate methods: |
153 virtual bool CanResize() const; | 153 virtual bool CanResize() const; |
154 virtual std::wstring GetWindowTitle() const; | 154 virtual std::wstring GetWindowTitle() const; |
155 virtual int GetDialogButtons() const; | 155 virtual int GetDialogButtons() const; |
156 virtual bool Accept(); | 156 virtual bool Accept(); |
157 virtual bool Cancel(); | 157 virtual bool Cancel(); |
158 virtual ChromeViews::View* GetContentsView(); | 158 virtual ChromeViews::View* GetContentsView(); |
159 | 159 |
160 // Returns the TemplateURLModel we're using. | 160 // Returns the TemplateURLModel we're using. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 ChromeViews::NativeButton* edit_button_; | 201 ChromeViews::NativeButton* edit_button_; |
202 ChromeViews::NativeButton* remove_button_; | 202 ChromeViews::NativeButton* remove_button_; |
203 ChromeViews::NativeButton* make_default_button_; | 203 ChromeViews::NativeButton* make_default_button_; |
204 ChromeViews::CheckBox* enable_suggest_checkbox_; | 204 ChromeViews::CheckBox* enable_suggest_checkbox_; |
205 | 205 |
206 DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); | 206 DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); |
207 }; | 207 }; |
208 | 208 |
209 #endif // CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ | 209 #endif // CHROME_BROWSER_VIEWS_KEYWORD_EDITOR_VIEW_H_ |
210 | 210 |
OLD | NEW |