| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // EditSearchEngineDialog provides text fields for editing a keyword: the title, | 5 // EditSearchEngineDialog provides text fields for editing a keyword: the title, |
| 6 // url and actual keyword. It is used by the KeywordEditorView of the Options | 6 // url and actual keyword. It is used by the KeywordEditorView of the Options |
| 7 // dialog, and also on its own to confirm the addition of a keyword added by | 7 // dialog, and also on its own to confirm the addition of a keyword added by |
| 8 // the ExternalJSObject via the RenderView. | 8 // the ExternalJSObject via the RenderView. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_UI_VIEWS_EDIT_SEARCH_ENGINE_DIALOG_H_ | 10 #ifndef CHROME_BROWSER_UI_VIEWS_EDIT_SEARCH_ENGINE_DIALOG_H_ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 TemplateURL* template_url, | 37 TemplateURL* template_url, |
| 38 EditSearchEngineControllerDelegate* delegate, | 38 EditSearchEngineControllerDelegate* delegate, |
| 39 Profile* profile); | 39 Profile* profile); |
| 40 | 40 |
| 41 // views::DialogDelegate: | 41 // views::DialogDelegate: |
| 42 virtual ui::ModalType GetModalType() const OVERRIDE; | 42 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 43 virtual string16 GetWindowTitle() const OVERRIDE; | 43 virtual string16 GetWindowTitle() const OVERRIDE; |
| 44 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; | 44 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; |
| 45 virtual bool Cancel() OVERRIDE; | 45 virtual bool Cancel() OVERRIDE; |
| 46 virtual bool Accept() OVERRIDE; | 46 virtual bool Accept() OVERRIDE; |
| 47 virtual views::View* GetContentsView() OVERRIDE; | |
| 48 | 47 |
| 49 // views::TextfieldController: | 48 // views::TextfieldController: |
| 50 // Updates whether the user can accept the dialog as well as updating image | 49 // Updates whether the user can accept the dialog as well as updating image |
| 51 // views showing whether value is valid. | 50 // views showing whether value is valid. |
| 52 virtual void ContentsChanged(views::Textfield* sender, | 51 virtual void ContentsChanged(views::Textfield* sender, |
| 53 const string16& new_contents) OVERRIDE; | 52 const string16& new_contents) OVERRIDE; |
| 54 virtual bool HandleKeyEvent(views::Textfield* sender, | 53 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 55 const ui::KeyEvent& key_event) OVERRIDE; | 54 const ui::KeyEvent& key_event) OVERRIDE; |
| 56 private: | 55 private: |
| 57 void Init(); | 56 void Init(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 85 views::ImageView* title_iv_; | 84 views::ImageView* title_iv_; |
| 86 views::ImageView* keyword_iv_; | 85 views::ImageView* keyword_iv_; |
| 87 views::ImageView* url_iv_; | 86 views::ImageView* url_iv_; |
| 88 | 87 |
| 89 scoped_ptr<EditSearchEngineController> controller_; | 88 scoped_ptr<EditSearchEngineController> controller_; |
| 90 | 89 |
| 91 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineDialog); | 90 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineDialog); |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 #endif // CHROME_BROWSER_UI_VIEWS_EDIT_SEARCH_ENGINE_DIALOG_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_EDIT_SEARCH_ENGINE_DIALOG_H_ |
| OLD | NEW |