OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |