OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
7 | 7 |
8 #include "chrome/browser/dom_ui/options/options_ui.h" | 8 #include "chrome/browser/dom_ui/options/options_ui.h" |
9 #include "chrome/browser/search_engines/edit_search_engine_controller.h" | 9 #include "chrome/browser/search_engines/edit_search_engine_controller.h" |
10 #include "ui/base/models/table_model_observer.h" | 10 #include "ui/base/models/table_model_observer.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void CheckSearchEngineInfoValidity(const ListValue* args); | 57 void CheckSearchEngineInfoValidity(const ListValue* args); |
58 | 58 |
59 // Called when an edit is cancelled. | 59 // Called when an edit is cancelled. |
60 // Called from DOMUI. | 60 // Called from DOMUI. |
61 void EditCancelled(const ListValue* args); | 61 void EditCancelled(const ListValue* args); |
62 | 62 |
63 // Called when an edit is finished and should be saved. | 63 // Called when an edit is finished and should be saved. |
64 // Called from DOMUI. | 64 // Called from DOMUI. |
65 void EditCompleted(const ListValue* args); | 65 void EditCompleted(const ListValue* args); |
66 | 66 |
67 // Returns a dictionary to pass to DOMUI representing the given group heading. | |
68 DictionaryValue* CreateDictionaryForHeading(int group_index); | |
69 // Returns a dictionary to pass to DOMUI representing the given search engine. | 67 // Returns a dictionary to pass to DOMUI representing the given search engine. |
70 DictionaryValue* CreateDictionaryForEngine(int index, bool is_default); | 68 DictionaryValue* CreateDictionaryForEngine(int index, bool is_default); |
71 | 69 |
72 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); | 70 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); |
73 }; | 71 }; |
74 | 72 |
75 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ | 73 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ |
OLD | NEW |