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

Side by Side Diff: chrome/browser/ui/webui/options/search_engine_manager_handler.h

Issue 15805002: Modify extension omnibox keywords to be user-configurable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test updates Created 7 years, 6 months 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
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 #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"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Called when an edit is cancelled. 66 // Called when an edit is cancelled.
67 // Called from WebUI. 67 // Called from WebUI.
68 void EditCancelled(const base::ListValue* args); 68 void EditCancelled(const base::ListValue* args);
69 69
70 // Called when an edit is finished and should be saved. 70 // Called when an edit is finished and should be saved.
71 // Called from WebUI. 71 // Called from WebUI.
72 void EditCompleted(const base::ListValue* args); 72 void EditCompleted(const base::ListValue* args);
73 73
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(
76 int index, bool is_default, bool is_extension);
76 77
77 // Returns a dictionary to pass to WebUI representing the extension. 78 // Returns a dictionary to pass to WebUI representing the extension.
78 base::DictionaryValue* CreateDictionaryForExtension( 79 base::DictionaryValue* CreateDictionaryForExtension(
79 const extensions::Extension& extension); 80 const extensions::Extension& extension);
80 81
81 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler); 82 DISALLOW_COPY_AND_ASSIGN(SearchEngineManagerHandler);
82 }; 83 };
83 84
84 } // namespace options 85 } // namespace options
85 86
86 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_ 87 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SEARCH_ENGINE_MANAGER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698