| 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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { | 1057 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { |
| 1058 if (IsMainThread()) | 1058 if (IsMainThread()) |
| 1059 return main_thread_sync_provider_.get(); | 1059 return main_thread_sync_provider_.get(); |
| 1060 | 1060 |
| 1061 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( | 1061 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( |
| 1062 main_thread_task_runner_.get()); | 1062 main_thread_task_runner_.get()); |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 blink::WebApiKeyValidator* BlinkPlatformImpl::apiKeyValidator() { | 1065 blink::WebTrialTokenValidator* BlinkPlatformImpl::trialTokenValidator() { |
| 1066 return &api_key_validator_; | 1066 return &trial_token_validator_; |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 1069 WebThemeEngine* BlinkPlatformImpl::themeEngine() { |
| 1070 return &native_theme_engine_; | 1070 return &native_theme_engine_; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { | 1073 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { |
| 1074 return &fallback_theme_engine_; | 1074 return &fallback_theme_engine_; |
| 1075 } | 1075 } |
| 1076 | 1076 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1198 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1199 static_cast<ui::DomKey>(dom_key))); | 1199 static_cast<ui::DomKey>(dom_key))); |
| 1200 } | 1200 } |
| 1201 | 1201 |
| 1202 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1202 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1203 return static_cast<int>( | 1203 return static_cast<int>( |
| 1204 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1204 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1205 } | 1205 } |
| 1206 | 1206 |
| 1207 } // namespace content | 1207 } // namespace content |
| OLD | NEW |