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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 | 166 |
167 void SuspendSharedTimer(); | 167 void SuspendSharedTimer(); |
168 void ResumeSharedTimer(); | 168 void ResumeSharedTimer(); |
169 virtual void OnStartSharedTimer(base::TimeDelta delay) {} | 169 virtual void OnStartSharedTimer(base::TimeDelta delay) {} |
170 | 170 |
171 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } | 171 WebBluetoothImpl* BluetoothImplForTesting() { return bluetooth_.get(); } |
172 | 172 |
173 virtual blink::WebString domCodeStringFromEnum(int dom_code); | 173 virtual blink::WebString domCodeStringFromEnum(int dom_code); |
174 virtual int domEnumFromCodeString(const blink::WebString& codeString); | 174 virtual int domEnumFromCodeString(const blink::WebString& codeString); |
175 | 175 |
176 virtual blink::WebString domKeyStringFromEnum(int dom_code); | |
Wez
2015/05/07 00:23:23
nit: dom_code -> dom_key
Habib Virji
2015/05/19 16:16:28
Acknowledged.
| |
177 virtual int domKeyEnumFromString(const blink::WebString& codeString); | |
Wez
2015/05/07 00:23:23
nit: codeString -> keyString
Habib Virji
2015/05/19 16:16:28
Acknowledged.
| |
178 | |
176 private: | 179 private: |
177 void DoTimeout() { | 180 void DoTimeout() { |
178 if (shared_timer_func_ && !shared_timer_suspended_) | 181 if (shared_timer_func_ && !shared_timer_suspended_) |
179 shared_timer_func_(); | 182 shared_timer_func_(); |
180 } | 183 } |
181 | 184 |
182 void InternalInit(); | 185 void InternalInit(); |
183 void UpdateWebThreadTLS(blink::WebThread* thread); | 186 void UpdateWebThreadTLS(blink::WebThread* thread); |
184 | 187 |
185 bool IsMainThread() const; | 188 bool IsMainThread() const; |
(...skipping 15 matching lines...) Expand all Loading... | |
201 | 204 |
202 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 205 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
203 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 206 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
204 scoped_refptr<PushDispatcher> push_dispatcher_; | 207 scoped_refptr<PushDispatcher> push_dispatcher_; |
205 scoped_ptr<PermissionDispatcher> permission_client_; | 208 scoped_ptr<PermissionDispatcher> permission_client_; |
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 |