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

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

Issue 7044136: Support drag&drop for startup pages (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed review issues Created 9 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698