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

Side by Side Diff: content/child/blink_platform_impl.h

Issue 929053004: [KeyboardEvent] Add embedder APIs to translate between Dom |key| enum and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "API has been updated on the blink side" Created 5 years, 9 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698