Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/ui/views/edit_search_engine_dialog.h

Issue 11571023: Move ash/wm's DialogFrameView to ui/views/window; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder DialogDelegate functions; inline Get*Params into WidgetExample::ButtonPressed; etc. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/crypto_module_password_dialog_view.cc ('k') | chrome/browser/ui/views/edit_search_engine_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698