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 #include "content/child/blink_platform_impl.h" | 5 #include "content/child/blink_platform_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 return geofencing_provider_.get(); | 865 return geofencing_provider_.get(); |
866 } | 866 } |
867 | 867 |
868 blink::WebNotificationManager* | 868 blink::WebNotificationManager* |
869 BlinkPlatformImpl::notificationManager() { | 869 BlinkPlatformImpl::notificationManager() { |
870 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) | 870 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) |
871 return nullptr; | 871 return nullptr; |
872 | 872 |
873 return NotificationManager::ThreadSpecificInstance( | 873 return NotificationManager::ThreadSpecificInstance( |
874 thread_safe_sender_.get(), | 874 thread_safe_sender_.get(), |
875 main_thread_task_runner_.get(), | |
876 notification_dispatcher_.get()); | 875 notification_dispatcher_.get()); |
877 } | 876 } |
878 | 877 |
879 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { | 878 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { |
880 if (!thread_safe_sender_.get() || !push_dispatcher_.get()) | 879 if (!thread_safe_sender_.get() || !push_dispatcher_.get()) |
881 return nullptr; | 880 return nullptr; |
882 | 881 |
883 return PushProvider::ThreadSpecificInstance(thread_safe_sender_.get(), | 882 return PushProvider::ThreadSpecificInstance(thread_safe_sender_.get(), |
884 push_dispatcher_.get()); | 883 push_dispatcher_.get()); |
885 } | 884 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1005 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1007 static_cast<ui::DomKey>(dom_key))); | 1006 static_cast<ui::DomKey>(dom_key))); |
1008 } | 1007 } |
1009 | 1008 |
1010 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1009 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1011 return static_cast<int>( | 1010 return static_cast<int>( |
1012 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1011 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1013 } | 1012 } |
1014 | 1013 |
1015 } // namespace content | 1014 } // namespace content |
OLD | NEW |