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_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/table_model_observer.h" | 9 #include "app/table_model_observer.h" |
10 #include "chrome/browser/dom_ui/options/options_ui.h" | 10 #include "chrome/browser/dom_ui/options/options_ui.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // Sets the search engine at the given index to be default. Called from DOMUI. | 50 // Sets the search engine at the given index to be default. Called from DOMUI. |
51 void SetDefaultSearchEngine(const ListValue* args); | 51 void SetDefaultSearchEngine(const ListValue* args); |
52 | 52 |
53 // Removes the startup page at the given indexes. Called from DOMUI. | 53 // Removes the startup page at the given indexes. Called from DOMUI. |
54 void RemoveStartupPages(const ListValue* args); | 54 void RemoveStartupPages(const ListValue* args); |
55 | 55 |
56 // Adds a startup page with the given URL after the given index. | 56 // Adds a startup page with the given URL after the given index. |
57 // Called from DOMUI. | 57 // Called from DOMUI. |
58 void AddStartupPage(const ListValue* args); | 58 void AddStartupPage(const ListValue* args); |
59 | 59 |
| 60 // Changes the startup page at the given index to the given URL. |
| 61 // Called from DOMUI. |
| 62 void EditStartupPage(const ListValue* args); |
| 63 |
60 // Sets the startup page set to the current pages. Called from DOMUI. | 64 // Sets the startup page set to the current pages. Called from DOMUI. |
61 void SetStartupPagesToCurrentPages(const ListValue* args); | 65 void SetStartupPagesToCurrentPages(const ListValue* args); |
62 | 66 |
63 // Returns the string ID for the given default browser state. | 67 // Returns the string ID for the given default browser state. |
64 int StatusStringIdForState(ShellIntegration::DefaultBrowserState state); | 68 int StatusStringIdForState(ShellIntegration::DefaultBrowserState state); |
65 | 69 |
66 // Gets the current default browser state, and asynchronously reports it to | 70 // Gets the current default browser state, and asynchronously reports it to |
67 // the DOMUI page. | 71 // the DOMUI page. |
68 void UpdateDefaultBrowserState(); | 72 void UpdateDefaultBrowserState(); |
69 | 73 |
(...skipping 16 matching lines...) Expand all Loading... |
86 // TODO(stuartmorgan): Once there are no other clients of | 90 // TODO(stuartmorgan): Once there are no other clients of |
87 // CustomHomePagesTableModel, consider changing it to something more like | 91 // CustomHomePagesTableModel, consider changing it to something more like |
88 // TemplateURLModel. | 92 // TemplateURLModel. |
89 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; | 93 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; |
90 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; | 94 scoped_ptr<OptionsManagedBannerHandler> banner_handler_; |
91 | 95 |
92 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 96 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
93 }; | 97 }; |
94 | 98 |
95 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 99 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |