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_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_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/options/options_ui.h" | 9 #include "chrome/browser/ui/webui/options/options_ui.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 KeywordEditorController; | 13 class KeywordEditorController; |
13 | 14 |
14 class SearchEngineManagerHandler : public OptionsPageUIHandler, | 15 class SearchEngineManagerHandler : public OptionsPageUIHandler, |
15 public ui::TableModelObserver, | 16 public ui::TableModelObserver, |
16 public EditSearchEngineControllerDelegate { | 17 public EditSearchEngineControllerDelegate { |
17 public: | 18 public: |
18 SearchEngineManagerHandler(); | 19 SearchEngineManagerHandler(); |
19 virtual ~SearchEngineManagerHandler(); | 20 virtual ~SearchEngineManagerHandler(); |
20 | 21 |
21 virtual void Initialize(); | 22 virtual void Initialize(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Called from WebUI. | 61 // Called from WebUI. |
61 void EditCancelled(const base::ListValue* args); | 62 void EditCancelled(const base::ListValue* args); |
62 | 63 |
63 // Called when an edit is finished and should be saved. | 64 // Called when an edit is finished and should be saved. |
64 // Called from WebUI. | 65 // Called from WebUI. |
65 void EditCompleted(const base::ListValue* args); | 66 void EditCompleted(const base::ListValue* args); |
66 | 67 |
67 // Returns a dictionary to pass to WebUI representing the given search engine. | 68 // Returns a dictionary to pass to WebUI representing the given search engine. |
68 base::DictionaryValue* CreateDictionaryForEngine(int index, bool is_default); | 69 base::DictionaryValue* CreateDictionaryForEngine(int index, bool is_default); |
69 | 70 |
| 71 // Returns a dictionary to pass to WebUI representing the extension. |
| 72 base::DictionaryValue* CreateDictionaryForExtension( |
| 73 const Extension& extension); |
| 74 |
70 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); | 75 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); |
71 }; | 76 }; |
72 | 77 |
73 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 78 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
OLD | NEW |