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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 #if defined(ENABLE_PRINT_PREVIEW) | 279 #if defined(ENABLE_PRINT_PREVIEW) |
280 // Register localized values used by Cloud Print | 280 // Register localized values used by Cloud Print |
281 void RegisterCloudPrintValues(base::DictionaryValue* values); | 281 void RegisterCloudPrintValues(base::DictionaryValue* values); |
282 #endif | 282 #endif |
283 | 283 |
284 // Check if hotword is available. If it is, tell the javascript to show | 284 // Check if hotword is available. If it is, tell the javascript to show |
285 // the hotword section of the settings page. | 285 // the hotword section of the settings page. |
286 void SendHotwordAvailable(); | 286 void SendHotwordAvailable(); |
287 | 287 |
| 288 // Callback that updates the visibility of the audio history upon completion |
| 289 // of a call to the server to the get the current value. |
| 290 void SetHotwordAudioHistorySectionVisible( |
| 291 bool always_on, |
| 292 const base::string16& audio_history_state, |
| 293 bool success, |
| 294 bool logging_enabled); |
| 295 |
288 // Callback for "requestHotwordAvailable" message. | 296 // Callback for "requestHotwordAvailable" message. |
289 void HandleRequestHotwordAvailable(const base::ListValue* args); | 297 void HandleRequestHotwordAvailable(const base::ListValue* args); |
290 | 298 |
291 // Callback for "launchHotwordAudioVerificationApp" message. | 299 // Callback for "launchHotwordAudioVerificationApp" message. |
292 void HandleLaunchHotwordAudioVerificationApp(const base::ListValue* args); | 300 void HandleLaunchHotwordAudioVerificationApp(const base::ListValue* args); |
293 | 301 |
294 // Callback for "launchEasyUnlockSetup" message. | 302 // Callback for "launchEasyUnlockSetup" message. |
295 void HandleLaunchEasyUnlockSetup(const base::ListValue* args); | 303 void HandleLaunchEasyUnlockSetup(const base::ListValue* args); |
296 | 304 |
297 // Callback for "refreshExtensionControlIndicators" message. | 305 // Callback for "refreshExtensionControlIndicators" message. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 | 400 |
393 // Used to get WeakPtr to self for use on the UI thread. | 401 // Used to get WeakPtr to self for use on the UI thread. |
394 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 402 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
395 | 403 |
396 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 404 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
397 }; | 405 }; |
398 | 406 |
399 } // namespace options | 407 } // namespace options |
400 | 408 |
401 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 409 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |