OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_ |
7 | 7 |
8 #include "chrome/browser/ui/search_engines/edit_search_engine_controller.h" | 8 #include "chrome/browser/ui/search_engines/edit_search_engine_controller.h" |
9 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 9 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
10 #include "ui/base/models/table_model_observer.h" | 10 #include "ui/base/models/table_model_observer.h" |
11 | 11 |
12 class Extension; | 12 class Extension; |
13 class KeywordEditorController; | 13 class KeywordEditorController; |
14 | 14 |
15 namespace options2 { | 15 namespace options2 { |
16 | 16 |
17 class SearchEngineManagerHandler : public OptionsPageUIHandler, | 17 class SearchEngineManagerHandler : public OptionsPageUIHandler, |
18 public ui::TableModelObserver, | 18 public ui::TableModelObserver, |
19 public EditSearchEngineControllerDelegate { | 19 public EditSearchEngineControllerDelegate { |
20 public: | 20 public: |
21 SearchEngineManagerHandler(); | 21 SearchEngineManagerHandler(); |
22 virtual ~SearchEngineManagerHandler(); | 22 virtual ~SearchEngineManagerHandler(); |
23 | 23 |
24 virtual void Initialize() OVERRIDE; | 24 virtual void InitializeHandler() OVERRIDE; |
csilv
2012/03/14 00:09:11
nit: move this into the group below
Dan Beam
2012/03/14 01:13:14
Done.
| |
25 | 25 |
26 // OptionsPageUIHandler implementation. | 26 // OptionsPageUIHandler implementation. |
27 virtual void GetLocalizedValues( | 27 virtual void GetLocalizedValues( |
28 base::DictionaryValue* localized_strings) OVERRIDE; | 28 base::DictionaryValue* localized_strings) OVERRIDE; |
29 void InitializePage() OVERRIDE; | |
29 | 30 |
30 // ui::TableModelObserver implementation. | 31 // ui::TableModelObserver implementation. |
31 virtual void OnModelChanged() OVERRIDE; | 32 virtual void OnModelChanged() OVERRIDE; |
32 virtual void OnItemsChanged(int start, int length) OVERRIDE; | 33 virtual void OnItemsChanged(int start, int length) OVERRIDE; |
33 virtual void OnItemsAdded(int start, int length) OVERRIDE; | 34 virtual void OnItemsAdded(int start, int length) OVERRIDE; |
34 virtual void OnItemsRemoved(int start, int length) OVERRIDE; | 35 virtual void OnItemsRemoved(int start, int length) OVERRIDE; |
35 | 36 |
36 // EditSearchEngineControllerDelegate implementation. | 37 // EditSearchEngineControllerDelegate implementation. |
37 virtual void OnEditedKeyword(const TemplateURL* template_url, | 38 virtual void OnEditedKeyword(const TemplateURL* template_url, |
38 const string16& title, | 39 const string16& title, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 // Returns a dictionary to pass to WebUI representing the extension. | 75 // Returns a dictionary to pass to WebUI representing the extension. |
75 base::DictionaryValue* CreateDictionaryForExtension( | 76 base::DictionaryValue* CreateDictionaryForExtension( |
76 const Extension& extension); | 77 const Extension& extension); |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); | 79 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace options2 | 82 } // namespace options2 |
82 | 83 |
83 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_ | 84 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER2_H_ |
OLD | NEW |