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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 void SuspendSharedTimer(); | 163 void SuspendSharedTimer(); |
164 void ResumeSharedTimer(); | 164 void ResumeSharedTimer(); |
165 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 165 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
166 | 166 |
167 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } | 167 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
168 | 168 |
169 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 169 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
170 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 170 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
171 | 171 |
| 172 virtual blink::WebString domKeyStringFromEnum(int dom_code); |
| 173 virtual int domEnumFromKeyString(const blink::WebString& codeString); |
| 174 |
172 private: | 175 private: |
173 static void DestroyCurrentThread(void*); | 176 static void DestroyCurrentThread(void*); |
174 | 177 |
175 void DoTimeout() { | 178 void DoTimeout() { |
176 if (shared_timer_func_ && !shared_timer_suspended_) | 179 if (shared_timer_func_ && !shared_timer_suspended_) |
177 shared_timer_func_(); | 180 shared_timer_func_(); |
178 } | 181 } |
179 | 182 |
180 void InternalInit(); | 183 void InternalInit(); |
181 | 184 |
(...skipping 13 matching lines...) Expand all Loading... |
195 scoped_ptr<WebBluetoothImpl> bluetooth_; | 198 scoped_ptr<WebBluetoothImpl> bluetooth_; |
196 | 199 |
197 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 200 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
198 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 201 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
199 scoped_refptr<PushDispatcher> push_dispatcher_; | 202 scoped_refptr<PushDispatcher> push_dispatcher_; |
200 }; | 203 }; |
201 | 204 |
202 } // namespace content | 205 } // namespace content |
203 | 206 |
204 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 207 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |