OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/threading/thread_local_storage.h" | 9 #include "base/threading/thread_local_storage.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 void SuspendSharedTimer(); | 169 void SuspendSharedTimer(); |
170 void ResumeSharedTimer(); | 170 void ResumeSharedTimer(); |
171 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 171 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
172 | 172 |
173 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } | 173 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
174 | 174 |
175 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 175 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
176 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 176 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
177 | 177 |
| 178 virtual blink::WebString domKeyStringFromEnum(int dom_code); |
| 179 virtual int domKeyEnumFromString(const blink::WebString& codeString); |
| 180 |
178 private: | 181 private: |
179 static void DestroyCurrentThread(void*); | 182 static void DestroyCurrentThread(void*); |
180 | 183 |
181 void DoTimeout() { | 184 void DoTimeout() { |
182 if (shared_timer_func_ && !shared_timer_suspended_) | 185 if (shared_timer_func_ && !shared_timer_suspended_) |
183 shared_timer_func_(); | 186 shared_timer_func_(); |
184 } | 187 } |
185 | 188 |
186 void InternalInit(); | 189 void InternalInit(); |
187 | 190 |
(...skipping 13 matching lines...) Expand all Loading... |
201 scoped_ptr<WebBluetoothImpl> bluetooth_; | 204 scoped_ptr<WebBluetoothImpl> bluetooth_; |
202 | 205 |
203 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 206 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
204 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 207 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
205 scoped_refptr<PushDispatcher> push_dispatcher_; | 208 scoped_refptr<PushDispatcher> push_dispatcher_; |
206 }; | 209 }; |
207 | 210 |
208 } // namespace content | 211 } // namespace content |
209 | 212 |
210 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 213 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |