| 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 <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 {"generatePasswordHover", | 682 {"generatePasswordHover", |
| 683 IDR_PASSWORD_GENERATION_ICON_HOVER, | 683 IDR_PASSWORD_GENERATION_ICON_HOVER, |
| 684 ui::SCALE_FACTOR_100P}, | 684 ui::SCALE_FACTOR_100P}, |
| 685 {"html.css", IDR_UASTYLE_HTML_CSS, ui::SCALE_FACTOR_NONE}, | 685 {"html.css", IDR_UASTYLE_HTML_CSS, ui::SCALE_FACTOR_NONE}, |
| 686 {"quirks.css", IDR_UASTYLE_QUIRKS_CSS, ui::SCALE_FACTOR_NONE}, | 686 {"quirks.css", IDR_UASTYLE_QUIRKS_CSS, ui::SCALE_FACTOR_NONE}, |
| 687 {"view-source.css", IDR_UASTYLE_VIEW_SOURCE_CSS, ui::SCALE_FACTOR_NONE}, | 687 {"view-source.css", IDR_UASTYLE_VIEW_SOURCE_CSS, ui::SCALE_FACTOR_NONE}, |
| 688 #if defined(OS_ANDROID) | 688 #if defined(OS_ANDROID) |
| 689 {"themeChromiumAndroid.css", | 689 {"themeChromiumAndroid.css", |
| 690 IDR_UASTYLE_THEME_CHROMIUM_ANDROID_CSS, | 690 IDR_UASTYLE_THEME_CHROMIUM_ANDROID_CSS, |
| 691 ui::SCALE_FACTOR_NONE}, | 691 ui::SCALE_FACTOR_NONE}, |
| 692 {"fullscreenAndroid.css", |
| 693 IDR_UASTYLE_FULLSCREEN_ANDROID_CSS, |
| 694 ui::SCALE_FACTOR_NONE}, |
| 692 {"mediaControlsAndroid.css", | 695 {"mediaControlsAndroid.css", |
| 693 IDR_UASTYLE_MEDIA_CONTROLS_ANDROID_CSS, | 696 IDR_UASTYLE_MEDIA_CONTROLS_ANDROID_CSS, |
| 694 ui::SCALE_FACTOR_NONE}, | 697 ui::SCALE_FACTOR_NONE}, |
| 695 {"mediaControlsAndroidNew.css", | 698 {"mediaControlsAndroidNew.css", |
| 696 IDR_UASTYLE_MEDIA_CONTROLS_ANDROID_NEW_CSS, | 699 IDR_UASTYLE_MEDIA_CONTROLS_ANDROID_NEW_CSS, |
| 697 ui::SCALE_FACTOR_NONE}, | 700 ui::SCALE_FACTOR_NONE}, |
| 698 #endif | 701 #endif |
| 699 #if !defined(OS_WIN) | 702 #if !defined(OS_WIN) |
| 700 {"themeChromiumLinux.css", | 703 {"themeChromiumLinux.css", |
| 701 IDR_UASTYLE_THEME_CHROMIUM_LINUX_CSS, | 704 IDR_UASTYLE_THEME_CHROMIUM_LINUX_CSS, |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1003 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1001 static_cast<ui::DomKey>(dom_key))); | 1004 static_cast<ui::DomKey>(dom_key))); |
| 1002 } | 1005 } |
| 1003 | 1006 |
| 1004 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1007 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1005 return static_cast<int>( | 1008 return static_cast<int>( |
| 1006 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1009 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1007 } | 1010 } |
| 1008 | 1011 |
| 1009 } // namespace content | 1012 } // namespace content |
| OLD | NEW |