| 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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { | 1070 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { |
| 1071 if (IsMainThread()) | 1071 if (IsMainThread()) |
| 1072 return main_thread_sync_provider_.get(); | 1072 return main_thread_sync_provider_.get(); |
| 1073 | 1073 |
| 1074 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( | 1074 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( |
| 1075 main_thread_task_runner_.get()); | 1075 main_thread_task_runner_.get()); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 blink::WebApiKeyValidator* BlinkPlatformImpl::apiKeyValidator() { | 1078 blink::WebTrialTokenValidator* BlinkPlatformImpl::trialTokenValidator() { |
| 1079 return &api_key_validator_; | 1079 return &trial_token_validator_; |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 1082 WebThemeEngine* BlinkPlatformImpl::themeEngine() { |
| 1083 return &native_theme_engine_; | 1083 return &native_theme_engine_; |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { | 1086 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { |
| 1087 return &fallback_theme_engine_; | 1087 return &fallback_theme_engine_; |
| 1088 } | 1088 } |
| 1089 | 1089 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1211 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1212 static_cast<ui::DomKey>(dom_key))); | 1212 static_cast<ui::DomKey>(dom_key))); |
| 1213 } | 1213 } |
| 1214 | 1214 |
| 1215 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1215 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1216 return static_cast<int>( | 1216 return static_cast<int>( |
| 1217 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1217 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 } // namespace content | 1220 } // namespace content |
| OLD | NEW |