| 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_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/options2/options_ui.h" | 9 #include "chrome/browser/ui/webui/options2/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 KeywordEditorController; | 12 class KeywordEditorController; |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 class Extension; | 15 class Extension; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace options2 { | 18 namespace options { |
| 19 | 19 |
| 20 class SearchEngineManagerHandler : public OptionsPageUIHandler, | 20 class SearchEngineManagerHandler : public OptionsPageUIHandler, |
| 21 public ui::TableModelObserver, | 21 public ui::TableModelObserver, |
| 22 public EditSearchEngineControllerDelegate { | 22 public EditSearchEngineControllerDelegate { |
| 23 public: | 23 public: |
| 24 SearchEngineManagerHandler(); | 24 SearchEngineManagerHandler(); |
| 25 virtual ~SearchEngineManagerHandler(); | 25 virtual ~SearchEngineManagerHandler(); |
| 26 | 26 |
| 27 // OptionsPageUIHandler implementation. | 27 // OptionsPageUIHandler implementation. |
| 28 virtual void GetLocalizedValues( | 28 virtual void GetLocalizedValues( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Returns a dictionary to pass to WebUI representing the given search engine. | 74 // Returns a dictionary to pass to WebUI representing the given search engine. |
| 75 base::DictionaryValue* CreateDictionaryForEngine(int index, bool is_default); | 75 base::DictionaryValue* CreateDictionaryForEngine(int index, bool is_default); |
| 76 | 76 |
| 77 // Returns a dictionary to pass to WebUI representing the extension. | 77 // Returns a dictionary to pass to WebUI representing the extension. |
| 78 base::DictionaryValue* CreateDictionaryForExtension( | 78 base::DictionaryValue* CreateDictionaryForExtension( |
| 79 const extensions::Extension& extension); | 79 const extensions::Extension& extension); |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); | 81 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace options2 | 84 } // namespace options |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 86 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
| OLD | NEW |