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_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Called from WebUI. | 72 // Called from WebUI. |
73 void AddStartupPage(const ListValue* args); | 73 void AddStartupPage(const ListValue* args); |
74 | 74 |
75 // Changes the startup page at the given index to the given URL. | 75 // Changes the startup page at the given index to the given URL. |
76 // Called from WebUI. | 76 // Called from WebUI. |
77 void EditStartupPage(const ListValue* args); | 77 void EditStartupPage(const ListValue* args); |
78 | 78 |
79 // Sets the startup page set to the current pages. Called from WebUI. | 79 // Sets the startup page set to the current pages. Called from WebUI. |
80 void SetStartupPagesToCurrentPages(const ListValue* args); | 80 void SetStartupPagesToCurrentPages(const ListValue* args); |
81 | 81 |
| 82 // Writes the current set of startup pages to prefs. Called from WebUI. |
| 83 void DragDropStartupPage(const ListValue* args); |
| 84 |
82 // Gets autocomplete suggestions asychronously for the given string. | 85 // Gets autocomplete suggestions asychronously for the given string. |
83 // Called from WebUI. | 86 // Called from WebUI. |
84 void RequestAutocompleteSuggestions(const ListValue* args); | 87 void RequestAutocompleteSuggestions(const ListValue* args); |
85 | 88 |
86 // Called when the 'Always show the bookmarks bar' checkbox is toggled. | 89 // Called when the 'Always show the bookmarks bar' checkbox is toggled. |
87 // Notifies any listeners interested in this event. |args| is ignored. | 90 // Notifies any listeners interested in this event. |args| is ignored. |
88 void ToggleShowBookmarksBar(const ListValue* args); | 91 void ToggleShowBookmarksBar(const ListValue* args); |
89 | 92 |
90 // Returns the string ID for the given default browser state. | 93 // Returns the string ID for the given default browser state. |
91 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state); | 94 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state); |
(...skipping 27 matching lines...) Expand all Loading... |
119 // TemplateURLService. | 122 // TemplateURLService. |
120 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; | 123 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; |
121 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 124 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
122 | 125 |
123 scoped_ptr<AutocompleteController> autocomplete_controller_; | 126 scoped_ptr<AutocompleteController> autocomplete_controller_; |
124 | 127 |
125 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 128 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
126 }; | 129 }; |
127 | 130 |
128 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 131 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |