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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 IDR_UASTYLE_MEDIA_CONTROLS_CSS, | 908 IDR_UASTYLE_MEDIA_CONTROLS_CSS, |
909 ui::SCALE_FACTOR_NONE}, | 909 ui::SCALE_FACTOR_NONE}, |
910 {"fullscreen.css", IDR_UASTYLE_FULLSCREEN_CSS, ui::SCALE_FACTOR_NONE}, | 910 {"fullscreen.css", IDR_UASTYLE_FULLSCREEN_CSS, ui::SCALE_FACTOR_NONE}, |
911 {"xhtmlmp.css", IDR_UASTYLE_XHTMLMP_CSS, ui::SCALE_FACTOR_NONE}, | 911 {"xhtmlmp.css", IDR_UASTYLE_XHTMLMP_CSS, ui::SCALE_FACTOR_NONE}, |
912 {"viewportAndroid.css", | 912 {"viewportAndroid.css", |
913 IDR_UASTYLE_VIEWPORT_ANDROID_CSS, | 913 IDR_UASTYLE_VIEWPORT_ANDROID_CSS, |
914 ui::SCALE_FACTOR_NONE}, | 914 ui::SCALE_FACTOR_NONE}, |
915 {"InspectorOverlayPage.html", | 915 {"InspectorOverlayPage.html", |
916 IDR_INSPECTOR_OVERLAY_PAGE_HTML, | 916 IDR_INSPECTOR_OVERLAY_PAGE_HTML, |
917 ui::SCALE_FACTOR_NONE}, | 917 ui::SCALE_FACTOR_NONE}, |
918 {"InjectedScriptCanvasModuleSource.js", | |
919 IDR_INSPECTOR_INJECTED_SCRIPT_CANVAS_MODULE_SOURCE_JS, | |
920 ui::SCALE_FACTOR_NONE}, | |
921 {"InjectedScriptSource.js", | 918 {"InjectedScriptSource.js", |
922 IDR_INSPECTOR_INJECTED_SCRIPT_SOURCE_JS, | 919 IDR_INSPECTOR_INJECTED_SCRIPT_SOURCE_JS, |
923 ui::SCALE_FACTOR_NONE}, | 920 ui::SCALE_FACTOR_NONE}, |
924 {"DebuggerScriptSource.js", | 921 {"DebuggerScriptSource.js", |
925 IDR_INSPECTOR_DEBUGGER_SCRIPT_SOURCE_JS, | 922 IDR_INSPECTOR_DEBUGGER_SCRIPT_SOURCE_JS, |
926 ui::SCALE_FACTOR_NONE}, | 923 ui::SCALE_FACTOR_NONE}, |
927 {"DocumentExecCommand.js", | 924 {"DocumentExecCommand.js", |
928 IDR_PRIVATE_SCRIPT_DOCUMENTEXECCOMMAND_JS, | 925 IDR_PRIVATE_SCRIPT_DOCUMENTEXECCOMMAND_JS, |
929 ui::SCALE_FACTOR_NONE}, | 926 ui::SCALE_FACTOR_NONE}, |
930 {"DocumentXMLTreeViewer.css", | 927 {"DocumentXMLTreeViewer.css", |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 return WebString::fromUTF8(ui::KeycodeConverter::DomCodeToCodeString( | 1318 return WebString::fromUTF8(ui::KeycodeConverter::DomCodeToCodeString( |
1322 static_cast<ui::DomCode>(dom_code))); | 1319 static_cast<ui::DomCode>(dom_code))); |
1323 } | 1320 } |
1324 | 1321 |
1325 int BlinkPlatformImpl::domEnumFromCodeString(const WebString& code) { | 1322 int BlinkPlatformImpl::domEnumFromCodeString(const WebString& code) { |
1326 return static_cast<int>(ui::KeycodeConverter::CodeStringToDomCode( | 1323 return static_cast<int>(ui::KeycodeConverter::CodeStringToDomCode( |
1327 code.utf8().data())); | 1324 code.utf8().data())); |
1328 } | 1325 } |
1329 | 1326 |
1330 } // namespace content | 1327 } // namespace content |
OLD | NEW |