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

Side by Side Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.h

Issue 9822001: Basic infrastructure for the Bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix non-chromeos builds Created 8 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
7 #pragma once
8
9 #include "chrome/browser/extensions/extension_function.h"
10
11 namespace extensions {
12 namespace api {
13
14 class BluetoothIsAvailableFunction : public AsyncExtensionFunction {
15 public:
16 virtual bool RunImpl() OVERRIDE;
17 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.isAvailable")
18 };
19
20 class BluetoothIsPoweredFunction : public AsyncExtensionFunction {
21 public:
22 virtual bool RunImpl() OVERRIDE;
23 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.isPowered")
24 };
25
26 class BluetoothDisconnectFunction : public AsyncExtensionFunction {
27 public:
28 virtual bool RunImpl() OVERRIDE;
29 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.disconnect")
30 };
31
32 class BluetoothReadFunction : public AsyncExtensionFunction {
33 public:
34 virtual bool RunImpl() OVERRIDE;
35 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.read")
36 };
37
38 class BluetoothSetOutOfBandPairingDataFunction
39 : public AsyncExtensionFunction {
40 public:
41 virtual bool RunImpl() OVERRIDE;
42 DECLARE_EXTENSION_FUNCTION_NAME(
43 "experimental.bluetooth.setOutOfBandPairingData")
44 };
45
46 class BluetoothGetOutOfBandPairingDataFunction : public AsyncExtensionFunction {
47 public:
48 virtual bool RunImpl() OVERRIDE;
49 DECLARE_EXTENSION_FUNCTION_NAME(
50 "experimental.bluetooth.getOutOfBandPairingData")
51 };
52
53 class BluetoothGetAddressFunction : public AsyncExtensionFunction {
54 public:
55 virtual bool RunImpl() OVERRIDE;
56 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.getAddress")
57 };
58
59 class BluetoothWriteFunction : public AsyncExtensionFunction {
60 public:
61 virtual bool RunImpl() OVERRIDE;
62 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.write")
63 };
64
65 class BluetoothConnectFunction : public AsyncExtensionFunction {
66 public:
67 virtual bool RunImpl() OVERRIDE;
68 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.connect")
69 };
70
71 class BluetoothGetDevicesWithServiceFunction : public AsyncExtensionFunction {
72 public:
73 virtual bool RunImpl() OVERRIDE;
74 DECLARE_EXTENSION_FUNCTION_NAME(
75 "experimental.bluetooth.getDevicesWithService")
76 };
77
78 } // namespace api
79 } // namespace extensions
80
81 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698