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_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" | 9 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" |
10 #include "chrome/browser/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void DragDropStartupPage(const ListValue* args); | 83 void DragDropStartupPage(const ListValue* args); |
84 | 84 |
85 // Gets autocomplete suggestions asychronously for the given string. | 85 // Gets autocomplete suggestions asychronously for the given string. |
86 // Called from WebUI. | 86 // Called from WebUI. |
87 void RequestAutocompleteSuggestions(const ListValue* args); | 87 void RequestAutocompleteSuggestions(const ListValue* args); |
88 | 88 |
89 // Called when the 'Always show the bookmarks bar' checkbox is toggled. | 89 // Called when the 'Always show the bookmarks bar' checkbox is toggled. |
90 // Notifies any listeners interested in this event. |args| is ignored. | 90 // Notifies any listeners interested in this event. |args| is ignored. |
91 void ToggleShowBookmarksBar(const ListValue* args); | 91 void ToggleShowBookmarksBar(const ListValue* args); |
92 | 92 |
| 93 // Enables/disables Instant. |
| 94 void EnableInstant(const ListValue* args); |
| 95 void DisableInstant(const ListValue* args); |
| 96 |
93 // Returns the string ID for the given default browser state. | 97 // Returns the string ID for the given default browser state. |
94 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state); | 98 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state); |
95 | 99 |
96 // Gets the current default browser state, and asynchronously reports it to | 100 // Gets the current default browser state, and asynchronously reports it to |
97 // the WebUI page. | 101 // the WebUI page. |
98 void UpdateDefaultBrowserState(); | 102 void UpdateDefaultBrowserState(); |
99 | 103 |
100 // Updates the UI with the given state for the default browser. | 104 // Updates the UI with the given state for the default browser. |
101 void SetDefaultBrowserUIString(int status_string_id); | 105 void SetDefaultBrowserUIString(int status_string_id); |
102 | 106 |
(...skipping 22 matching lines...) Expand all Loading... |
125 // CustomHomePagesTableModel, consider changing it to something more like | 129 // CustomHomePagesTableModel, consider changing it to something more like |
126 // TemplateURLService. | 130 // TemplateURLService. |
127 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; | 131 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; |
128 | 132 |
129 scoped_ptr<AutocompleteController> autocomplete_controller_; | 133 scoped_ptr<AutocompleteController> autocomplete_controller_; |
130 | 134 |
131 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 135 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
132 }; | 136 }; |
133 | 137 |
134 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 138 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |