Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_android.h" | 5 #include "ui/events/keycodes/keyboard_code_conversion_android.h" |
| 6 | 6 |
| 7 #include <android/keycodes.h> | 7 #include <android/keycodes.h> |
| 8 | 8 |
| 9 namespace ui { | 9 namespace ui { |
| 10 namespace { | 10 namespace { |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 return DomKey::TV_ANTENNA_CABLE; | 327 return DomKey::TV_ANTENNA_CABLE; |
| 328 case AKEYCODE_TV_INPUT_HDMI_1: | 328 case AKEYCODE_TV_INPUT_HDMI_1: |
| 329 return DomKey::TV_INPUT_HDMI1; | 329 return DomKey::TV_INPUT_HDMI1; |
| 330 case AKEYCODE_TV_INPUT_HDMI_2: | 330 case AKEYCODE_TV_INPUT_HDMI_2: |
| 331 return DomKey::TV_INPUT_HDMI2; | 331 return DomKey::TV_INPUT_HDMI2; |
| 332 case AKEYCODE_TV_INPUT_HDMI_3: | 332 case AKEYCODE_TV_INPUT_HDMI_3: |
| 333 return DomKey::TV_INPUT_HDMI3; | 333 return DomKey::TV_INPUT_HDMI3; |
| 334 case AKEYCODE_TV_INPUT_HDMI_4: | 334 case AKEYCODE_TV_INPUT_HDMI_4: |
| 335 return DomKey::TV_INPUT_HDMI4; | 335 return DomKey::TV_INPUT_HDMI4; |
| 336 case AKEYCODE_TV_INPUT_COMPOSITE_1: | 336 case AKEYCODE_TV_INPUT_COMPOSITE_1: |
| 337 return DomKey::TV_INPUT_COMPOSITE1; | |
| 338 case AKEYCODE_TV_INPUT_COMPOSITE_2: | |
| 339 return DomKey::TV_INPUT_COMPOSITE2; | |
| 340 case AKEYCODE_TV_INPUT_COMPONENT_1: | |
|
garykac
2017/01/10 21:33:25
Could you fix these to be in alphabetical order?
chongz
2017/01/10 22:21:36
It seems to me that this table is in AKEYCODE valu
| |
| 337 return DomKey::TV_INPUT_COMPONENT1; | 341 return DomKey::TV_INPUT_COMPONENT1; |
| 338 case AKEYCODE_TV_INPUT_COMPOSITE_2: | 342 case AKEYCODE_TV_INPUT_COMPONENT_2: |
| 339 return DomKey::TV_INPUT_COMPONENT2; | 343 return DomKey::TV_INPUT_COMPONENT2; |
| 340 case AKEYCODE_TV_INPUT_COMPONENT_1: | |
| 341 return DomKey::TV_INPUT_COMPOSITE1; | |
| 342 case AKEYCODE_TV_INPUT_COMPONENT_2: | |
| 343 return DomKey::TV_INPUT_COMPOSITE2; | |
| 344 case AKEYCODE_TV_INPUT_VGA_1: | 344 case AKEYCODE_TV_INPUT_VGA_1: |
| 345 return DomKey::TV_INPUT_VGA1; | 345 return DomKey::TV_INPUT_VGA1; |
| 346 case AKEYCODE_TV_AUDIO_DESCRIPTION: | 346 case AKEYCODE_TV_AUDIO_DESCRIPTION: |
| 347 return DomKey::TV_AUDIO_DESCRIPTION; | 347 return DomKey::TV_AUDIO_DESCRIPTION; |
| 348 case AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: | 348 case AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: |
| 349 return DomKey::TV_AUDIO_DESCRIPTION_MIX_UP; | 349 return DomKey::TV_AUDIO_DESCRIPTION_MIX_UP; |
| 350 case AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: | 350 case AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: |
| 351 return DomKey::TV_AUDIO_DESCRIPTION_MIX_DOWN; | 351 return DomKey::TV_AUDIO_DESCRIPTION_MIX_DOWN; |
| 352 case AKEYCODE_TV_ZOOM_MODE: | 352 case AKEYCODE_TV_ZOOM_MODE: |
| 353 return DomKey::ZOOM_TOGGLE; | 353 return DomKey::ZOOM_TOGGLE; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 769 case AKEYCODE_CHANNEL_UP: | 769 case AKEYCODE_CHANNEL_UP: |
| 770 return VKEY_PRIOR; | 770 return VKEY_PRIOR; |
| 771 case AKEYCODE_CHANNEL_DOWN: | 771 case AKEYCODE_CHANNEL_DOWN: |
| 772 return VKEY_NEXT; | 772 return VKEY_NEXT; |
| 773 default: | 773 default: |
| 774 return VKEY_UNKNOWN; | 774 return VKEY_UNKNOWN; |
| 775 } | 775 } |
| 776 } | 776 } |
| 777 | 777 |
| 778 } // namespace ui | 778 } // namespace ui |
| OLD | NEW |