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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 return geofencing_provider_.get(); | 875 return geofencing_provider_.get(); |
876 } | 876 } |
877 | 877 |
878 blink::WebNotificationManager* | 878 blink::WebNotificationManager* |
879 BlinkPlatformImpl::notificationManager() { | 879 BlinkPlatformImpl::notificationManager() { |
880 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) | 880 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) |
881 return nullptr; | 881 return nullptr; |
882 | 882 |
883 return NotificationManager::ThreadSpecificInstance( | 883 return NotificationManager::ThreadSpecificInstance( |
884 thread_safe_sender_.get(), | 884 thread_safe_sender_.get(), |
885 main_thread_task_runner_.get(), | |
886 notification_dispatcher_.get()); | 885 notification_dispatcher_.get()); |
887 } | 886 } |
888 | 887 |
889 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { | 888 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { |
890 if (!thread_safe_sender_.get() || !push_dispatcher_.get()) | 889 if (!thread_safe_sender_.get() || !push_dispatcher_.get()) |
891 return nullptr; | 890 return nullptr; |
892 | 891 |
893 return PushProvider::ThreadSpecificInstance(thread_safe_sender_.get(), | 892 return PushProvider::ThreadSpecificInstance(thread_safe_sender_.get(), |
894 push_dispatcher_.get()); | 893 push_dispatcher_.get()); |
895 } | 894 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1015 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1017 static_cast<ui::DomKey>(dom_key))); | 1016 static_cast<ui::DomKey>(dom_key))); |
1018 } | 1017 } |
1019 | 1018 |
1020 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1019 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1021 return static_cast<int>( | 1020 return static_cast<int>( |
1022 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1021 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1023 } | 1022 } |
1024 | 1023 |
1025 } // namespace content | 1024 } // namespace content |
OLD | NEW |