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

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

Issue 11819007: Changed DefaultAdapter to RunCallbackOnAdapterReady function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created IsBluetoothSupported in BluetoothEventRouter to fix browser_tests. Created 7 years, 11 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) 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_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 20 matching lines...) Expand all
31 BluetoothOptionsHandler(); 31 BluetoothOptionsHandler();
32 virtual ~BluetoothOptionsHandler(); 32 virtual ~BluetoothOptionsHandler();
33 33
34 // OptionsPageUIHandler implementation. 34 // OptionsPageUIHandler implementation.
35 virtual void GetLocalizedValues( 35 virtual void GetLocalizedValues(
36 base::DictionaryValue* localized_strings) OVERRIDE; 36 base::DictionaryValue* localized_strings) OVERRIDE;
37 virtual void RegisterMessages() OVERRIDE; 37 virtual void RegisterMessages() OVERRIDE;
38 virtual void InitializeHandler() OVERRIDE; 38 virtual void InitializeHandler() OVERRIDE;
39 virtual void InitializePage() OVERRIDE; 39 virtual void InitializePage() OVERRIDE;
40 40
41 void InitializeAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
42
41 // Sends a notification to the Web UI of the status of a Bluetooth device. 43 // Sends a notification to the Web UI of the status of a Bluetooth device.
42 // |device| is the Bluetooth device. 44 // |device| is the Bluetooth device.
43 // |params| is an optional set of parameters. 45 // |params| is an optional set of parameters.
44 void SendDeviceNotification(const device::BluetoothDevice* device, 46 void SendDeviceNotification(const device::BluetoothDevice* device,
45 base::DictionaryValue* params); 47 base::DictionaryValue* params);
46 48
47 // device::BluetoothDevice::PairingDelegate override. 49 // device::BluetoothDevice::PairingDelegate override.
48 // 50 //
49 // This method will be called when the Bluetooth daemon requires a 51 // This method will be called when the Bluetooth daemon requires a
50 // PIN Code for authentication of the device |device|, the UI will display 52 // PIN Code for authentication of the device |device|, the UI will display
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // than this object does. 195 // than this object does.
194 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; 196 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); 198 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler);
197 }; 199 };
198 200
199 } // namespace options 201 } // namespace options
200 } // namespace chromeos 202 } // namespace chromeos
201 203
202 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ 204 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698