| 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 IDR_UASTYLE_MEDIA_CONTROLS_NEW_CSS, | 797 IDR_UASTYLE_MEDIA_CONTROLS_NEW_CSS, |
| 798 ui::SCALE_FACTOR_NONE}, | 798 ui::SCALE_FACTOR_NONE}, |
| 799 {"fullscreen.css", IDR_UASTYLE_FULLSCREEN_CSS, ui::SCALE_FACTOR_NONE}, | 799 {"fullscreen.css", IDR_UASTYLE_FULLSCREEN_CSS, ui::SCALE_FACTOR_NONE}, |
| 800 {"xhtmlmp.css", IDR_UASTYLE_XHTMLMP_CSS, ui::SCALE_FACTOR_NONE}, | 800 {"xhtmlmp.css", IDR_UASTYLE_XHTMLMP_CSS, ui::SCALE_FACTOR_NONE}, |
| 801 {"viewportAndroid.css", | 801 {"viewportAndroid.css", |
| 802 IDR_UASTYLE_VIEWPORT_ANDROID_CSS, | 802 IDR_UASTYLE_VIEWPORT_ANDROID_CSS, |
| 803 ui::SCALE_FACTOR_NONE}, | 803 ui::SCALE_FACTOR_NONE}, |
| 804 {"InspectorOverlayPage.html", | 804 {"InspectorOverlayPage.html", |
| 805 IDR_INSPECTOR_OVERLAY_PAGE_HTML, | 805 IDR_INSPECTOR_OVERLAY_PAGE_HTML, |
| 806 ui::SCALE_FACTOR_NONE}, | 806 ui::SCALE_FACTOR_NONE}, |
| 807 {"InjectedScriptSource.js", | |
| 808 IDR_INSPECTOR_INJECTED_SCRIPT_SOURCE_JS, | |
| 809 ui::SCALE_FACTOR_NONE}, | |
| 810 {"DebuggerScriptSource.js", | |
| 811 IDR_INSPECTOR_DEBUGGER_SCRIPT_SOURCE_JS, | |
| 812 ui::SCALE_FACTOR_NONE}, | |
| 813 {"DocumentExecCommand.js", | 807 {"DocumentExecCommand.js", |
| 814 IDR_PRIVATE_SCRIPT_DOCUMENTEXECCOMMAND_JS, | 808 IDR_PRIVATE_SCRIPT_DOCUMENTEXECCOMMAND_JS, |
| 815 ui::SCALE_FACTOR_NONE}, | 809 ui::SCALE_FACTOR_NONE}, |
| 816 {"DocumentXMLTreeViewer.css", | 810 {"DocumentXMLTreeViewer.css", |
| 817 IDR_PRIVATE_SCRIPT_DOCUMENTXMLTREEVIEWER_CSS, | 811 IDR_PRIVATE_SCRIPT_DOCUMENTXMLTREEVIEWER_CSS, |
| 818 ui::SCALE_FACTOR_NONE}, | 812 ui::SCALE_FACTOR_NONE}, |
| 819 {"DocumentXMLTreeViewer.js", | 813 {"DocumentXMLTreeViewer.js", |
| 820 IDR_PRIVATE_SCRIPT_DOCUMENTXMLTREEVIEWER_JS, | 814 IDR_PRIVATE_SCRIPT_DOCUMENTXMLTREEVIEWER_JS, |
| 821 ui::SCALE_FACTOR_NONE}, | 815 ui::SCALE_FACTOR_NONE}, |
| 822 {"HTMLMarqueeElement.js", | 816 {"HTMLMarqueeElement.js", |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1097 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1104 static_cast<ui::DomKey>(dom_key))); | 1098 static_cast<ui::DomKey>(dom_key))); |
| 1105 } | 1099 } |
| 1106 | 1100 |
| 1107 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1101 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1108 return static_cast<int>( | 1102 return static_cast<int>( |
| 1109 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1103 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1110 } | 1104 } |
| 1111 | 1105 |
| 1112 } // namespace content | 1106 } // namespace content |
| OLD | NEW |