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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h

Issue 1334763002: bluetooth: Subscribe to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-origin
Patch Set: Include map Created 5 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BluetoothSupplement_h 5 #ifndef BluetoothSupplement_h
6 #define BluetoothSupplement_h 6 #define BluetoothSupplement_h
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 12 matching lines...) Expand all
23 static const char* supplementName(); 23 static const char* supplementName();
24 24
25 static void provideTo(LocalFrame&, WebBluetooth*); 25 static void provideTo(LocalFrame&, WebBluetooth*);
26 26
27 // Returns the WebBluetooth attached to the frame. 27 // Returns the WebBluetooth attached to the frame.
28 static WebBluetooth* from(LocalFrame*); 28 static WebBluetooth* from(LocalFrame*);
29 29
30 // Returns the WebBluetooth attached to the frame if the frame exists. 30 // Returns the WebBluetooth attached to the frame if the frame exists.
31 // Otherwise returns nullptr. 31 // Otherwise returns nullptr.
32 static WebBluetooth* getFromScriptState(ScriptState*); 32 static WebBluetooth* getFromScriptState(ScriptState*);
33 // Returns the WebBluetooth attached to the execution context.
34 static WebBluetooth* getFromExecutionContext(ExecutionContext*);
haraken 2015/10/10 14:19:35 getFromExecutionContext => fromExecutionContext (B
ortuno 2015/10/12 17:46:07 Done.
33 35
34 DECLARE_VIRTUAL_TRACE(); 36 DECLARE_VIRTUAL_TRACE();
35 37
36 private: 38 private:
37 explicit BluetoothSupplement(WebBluetooth*); 39 explicit BluetoothSupplement(WebBluetooth*);
38 40
39 WebBluetooth* m_bluetooth; 41 WebBluetooth* m_bluetooth;
40 }; 42 };
41 43
42 } // namespace blink 44 } // namespace blink
43 45
44 #endif // BluetoothRoutingId_h 46 #endif // BluetoothRoutingId_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698