| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/events/keycodes/keyboard_code_conversion.h" | 5 #include "ui/events/keycodes/keyboard_code_conversion.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "ui/events/event_constants.h" | 10 #include "ui/events/event_constants.h" |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 {ui::DomCode::COMMA, | 434 {ui::DomCode::COMMA, |
| 435 {true, ui::DomKey::CHARACTER, ',', ui::VKEY_OEM_COMMA}, | 435 {true, ui::DomKey::CHARACTER, ',', ui::VKEY_OEM_COMMA}, |
| 436 {true, ui::DomKey::CHARACTER, '<', ui::VKEY_OEM_COMMA}}, | 436 {true, ui::DomKey::CHARACTER, '<', ui::VKEY_OEM_COMMA}}, |
| 437 {ui::DomCode::PERIOD, | 437 {ui::DomCode::PERIOD, |
| 438 {true, ui::DomKey::CHARACTER, '.', ui::VKEY_OEM_PERIOD}, | 438 {true, ui::DomKey::CHARACTER, '.', ui::VKEY_OEM_PERIOD}, |
| 439 {true, ui::DomKey::CHARACTER, '>', ui::VKEY_OEM_PERIOD}}, | 439 {true, ui::DomKey::CHARACTER, '>', ui::VKEY_OEM_PERIOD}}, |
| 440 {ui::DomCode::SLASH, | 440 {ui::DomCode::SLASH, |
| 441 {true, ui::DomKey::CHARACTER, '/', ui::VKEY_OEM_2}, | 441 {true, ui::DomKey::CHARACTER, '/', ui::VKEY_OEM_2}, |
| 442 {true, ui::DomKey::CHARACTER, '?', ui::VKEY_OEM_2}}, | 442 {true, ui::DomKey::CHARACTER, '?', ui::VKEY_OEM_2}}, |
| 443 {ui::DomCode::INTL_BACKSLASH, | 443 {ui::DomCode::INTL_BACKSLASH, |
| 444 {true, ui::DomKey::CHARACTER, '<', ui::VKEY_OEM_102}, | 444 {true, ui::DomKey::CHARACTER, '\\', ui::VKEY_OEM_102}, |
| 445 {true, ui::DomKey::CHARACTER, '>', ui::VKEY_OEM_102}}, | 445 {true, ui::DomKey::CHARACTER, '|', ui::VKEY_OEM_102}}, |
| 446 {ui::DomCode::INTL_YEN, | 446 {ui::DomCode::INTL_YEN, |
| 447 {true, ui::DomKey::CHARACTER, 0x00A5, ui::VKEY_OEM_5}, | 447 {true, ui::DomKey::CHARACTER, 0x00A5, ui::VKEY_OEM_5}, |
| 448 {true, ui::DomKey::CHARACTER, '|', ui::VKEY_OEM_5}}, | 448 {true, ui::DomKey::CHARACTER, '|', ui::VKEY_OEM_5}}, |
| 449 {ui::DomCode::NUMPAD_DIVIDE, | 449 {ui::DomCode::NUMPAD_DIVIDE, |
| 450 {true, ui::DomKey::CHARACTER, '/', ui::VKEY_DIVIDE}, | 450 {true, ui::DomKey::CHARACTER, '/', ui::VKEY_DIVIDE}, |
| 451 {true, ui::DomKey::CHARACTER, '/', ui::VKEY_DIVIDE}}, | 451 {true, ui::DomKey::CHARACTER, '/', ui::VKEY_DIVIDE}}, |
| 452 {ui::DomCode::NUMPAD_MULTIPLY, | 452 {ui::DomCode::NUMPAD_MULTIPLY, |
| 453 {true, ui::DomKey::CHARACTER, '*', ui::VKEY_MULTIPLY}, | 453 {true, ui::DomKey::CHARACTER, '*', ui::VKEY_MULTIPLY}, |
| 454 {true, ui::DomKey::CHARACTER, '*', ui::VKEY_MULTIPLY}}, | 454 {true, ui::DomKey::CHARACTER, '*', ui::VKEY_MULTIPLY}}, |
| 455 {ui::DomCode::NUMPAD_SUBTRACT, | 455 {ui::DomCode::NUMPAD_SUBTRACT, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 CheckDomCodeToMeaning("p_us_s", ui::DomCodeToUsLayoutMeaning, it.dom_code, | 514 CheckDomCodeToMeaning("p_us_s", ui::DomCodeToUsLayoutMeaning, it.dom_code, |
| 515 ui::EF_SHIFT_DOWN, it.shift); | 515 ui::EF_SHIFT_DOWN, it.shift); |
| 516 CheckDomCodeToMeaning("p_us_a", ui::DomCodeToUsLayoutMeaning, it.dom_code, | 516 CheckDomCodeToMeaning("p_us_a", ui::DomCodeToUsLayoutMeaning, it.dom_code, |
| 517 ui::EF_ALTGR_DOWN, it.normal); | 517 ui::EF_ALTGR_DOWN, it.normal); |
| 518 CheckDomCodeToMeaning("p_us_a", ui::DomCodeToUsLayoutMeaning, it.dom_code, | 518 CheckDomCodeToMeaning("p_us_a", ui::DomCodeToUsLayoutMeaning, it.dom_code, |
| 519 ui::EF_ALTGR_DOWN|ui::EF_SHIFT_DOWN, it.shift); | 519 ui::EF_ALTGR_DOWN|ui::EF_SHIFT_DOWN, it.shift); |
| 520 } | 520 } |
| 521 } | 521 } |
| 522 | 522 |
| 523 } // namespace | 523 } // namespace |
| OLD | NEW |