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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 } | 984 } |
985 | 985 |
986 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { | 986 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { |
987 if (IsMainThread()) | 987 if (IsMainThread()) |
988 return main_thread_sync_provider_.get(); | 988 return main_thread_sync_provider_.get(); |
989 | 989 |
990 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( | 990 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( |
991 main_thread_task_runner_.get()); | 991 main_thread_task_runner_.get()); |
992 } | 992 } |
993 | 993 |
994 blink::WebTrialTokenValidator* BlinkPlatformImpl::trialTokenValidator() { | |
995 return &trial_token_validator_; | |
996 } | |
997 | |
998 WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 994 WebThemeEngine* BlinkPlatformImpl::themeEngine() { |
999 return &native_theme_engine_; | 995 return &native_theme_engine_; |
1000 } | 996 } |
1001 | 997 |
1002 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { | 998 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { |
1003 return &fallback_theme_engine_; | 999 return &fallback_theme_engine_; |
1004 } | 1000 } |
1005 | 1001 |
1006 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile( | 1002 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile( |
1007 const blink::WebString& vfs_file_name, int desired_flags) { | 1003 const blink::WebString& vfs_file_name, int desired_flags) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1099 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1104 static_cast<ui::DomKey>(dom_key))); | 1100 static_cast<ui::DomKey>(dom_key))); |
1105 } | 1101 } |
1106 | 1102 |
1107 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1103 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1108 return static_cast<int>( | 1104 return static_cast<int>( |
1109 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1105 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1110 } | 1106 } |
1111 | 1107 |
1112 } // namespace content | 1108 } // namespace content |
OLD | NEW |