| 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_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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void HandleCancelProfileCreation(const base::ListValue* args); | 187 void HandleCancelProfileCreation(const base::ListValue* args); |
| 188 | 188 |
| 189 // Internal implementation. This may safely be called whether profile creation | 189 // Internal implementation. This may safely be called whether profile creation |
| 190 // or registration is in progress or not. |user_initiated| should be true if | 190 // or registration is in progress or not. |user_initiated| should be true if |
| 191 // the cancellation was deliberately requested by the user, and false if it | 191 // the cancellation was deliberately requested by the user, and false if it |
| 192 // was caused implicitly, e.g. by shutting down the browser. | 192 // was caused implicitly, e.g. by shutting down the browser. |
| 193 void CancelProfileRegistration(bool user_initiated); | 193 void CancelProfileRegistration(bool user_initiated); |
| 194 | 194 |
| 195 void ObserveThemeChanged(); | 195 void ObserveThemeChanged(); |
| 196 void ThemesReset(const base::ListValue* args); | 196 void ThemesReset(const base::ListValue* args); |
| 197 #if defined(TOOLKIT_GTK) | 197 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 198 void ThemesSetGTK(const base::ListValue* args); | 198 void ThemesSetNative(const base::ListValue* args); |
| 199 #endif | 199 #endif |
| 200 | 200 |
| 201 #if defined(OS_CHROMEOS) | 201 #if defined(OS_CHROMEOS) |
| 202 void UpdateAccountPicture(); | 202 void UpdateAccountPicture(); |
| 203 #endif | 203 #endif |
| 204 | 204 |
| 205 // Callback for the "selectDownloadLocation" message. This will prompt the | 205 // Callback for the "selectDownloadLocation" message. This will prompt the |
| 206 // user for a destination folder using platform-specific APIs. | 206 // user for a destination folder using platform-specific APIs. |
| 207 void HandleSelectDownloadLocation(const ListValue* args); | 207 void HandleSelectDownloadLocation(const ListValue* args); |
| 208 | 208 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 DoublePrefMember default_zoom_level_; | 344 DoublePrefMember default_zoom_level_; |
| 345 | 345 |
| 346 PrefChangeRegistrar profile_pref_registrar_; | 346 PrefChangeRegistrar profile_pref_registrar_; |
| 347 | 347 |
| 348 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 348 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 349 }; | 349 }; |
| 350 | 350 |
| 351 } // namespace options | 351 } // namespace options |
| 352 | 352 |
| 353 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 353 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |