OLD | NEW |
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_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Gets the current default browser state, and asynchronously reports it to | 118 // Gets the current default browser state, and asynchronously reports it to |
119 // the WebUI page. | 119 // the WebUI page. |
120 void UpdateDefaultBrowserState(); | 120 void UpdateDefaultBrowserState(); |
121 | 121 |
122 // Updates the UI with the given state for the default browser. | 122 // Updates the UI with the given state for the default browser. |
123 void SetDefaultBrowserUIString(int status_string_id); | 123 void SetDefaultBrowserUIString(int status_string_id); |
124 | 124 |
125 // Loads the possible default search engine list and reports it to the WebUI. | 125 // Loads the possible default search engine list and reports it to the WebUI. |
126 void AddTemplateUrlServiceObserver(); | 126 void AddTemplateUrlServiceObserver(); |
127 | 127 |
128 // Sends an array of Profile objects to javascript. | |
129 // Each object is of the form: | 128 // Each object is of the form: |
130 // profileInfo = { | 129 // profileInfo = { |
131 // name: "Profile Name", | 130 // name: "Profile Name", |
132 // iconURL: "chrome://path/to/icon/image", | 131 // iconURL: "chrome://path/to/icon/image", |
133 // filePath: "/path/to/profile/data/on/disk", | 132 // filePath: "/path/to/profile/data/on/disk", |
134 // isCurrentProfile: false | 133 // isCurrentProfile: false |
135 // }; | 134 // }; |
| 135 // Caller takes ownership of the pointer. |
| 136 ListValue* GetProfilesInfoList(); |
| 137 |
| 138 // Sends an array of Profile objects to javascript. |
136 void SendProfilesInfo(); | 139 void SendProfilesInfo(); |
137 | 140 |
138 // Asynchronously opens a new browser window to create a new profile. | 141 // Asynchronously opens a new browser window to create a new profile. |
139 // |args| is not used. | 142 // |args| is not used. |
140 void CreateProfile(const base::ListValue* args); | 143 void CreateProfile(const base::ListValue* args); |
141 | 144 |
142 void ObserveThemeChanged(); | 145 void ObserveThemeChanged(); |
143 void ThemesReset(const base::ListValue* args); | 146 void ThemesReset(const base::ListValue* args); |
144 #if defined(TOOLKIT_GTK) | 147 #if defined(TOOLKIT_GTK) |
145 void ThemesSetGTK(const base::ListValue* args); | 148 void ThemesSetGTK(const base::ListValue* args); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 #if !defined(OS_CHROMEOS) | 315 #if !defined(OS_CHROMEOS) |
313 scoped_ptr<PrefSetObserver> proxy_prefs_; | 316 scoped_ptr<PrefSetObserver> proxy_prefs_; |
314 #endif // !defined(OS_CHROMEOS) | 317 #endif // !defined(OS_CHROMEOS) |
315 | 318 |
316 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 319 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
317 }; | 320 }; |
318 | 321 |
319 } // namespace options2 | 322 } // namespace options2 |
320 | 323 |
321 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 324 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
OLD | NEW |