| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/browser_ppp_input_event.h" |    5 #include "native_client/src/shared/ppapi_proxy/browser_ppp_input_event.h" | 
|    6  |    6  | 
|    7 #include "native_client/src/include/nacl_scoped_ptr.h" |    7 #include "native_client/src/include/nacl_scoped_ptr.h" | 
|    8 #include "native_client/src/include/portability.h" |    8 #include "native_client/src/include/portability.h" | 
|    9 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |    9 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" | 
|   10 #include "native_client/src/shared/ppapi_proxy/input_event_data.h" |   10 #include "native_client/src/shared/ppapi_proxy/input_event_data.h" | 
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   62     case PP_INPUTEVENT_TYPE_KEYUP: |   62     case PP_INPUTEVENT_TYPE_KEYUP: | 
|   63     case PP_INPUTEVENT_TYPE_CHAR: |   63     case PP_INPUTEVENT_TYPE_CHAR: | 
|   64       data.key_code = |   64       data.key_code = | 
|   65           PPBKeyboardInputEventInterface()->GetKeyCode(input_event); |   65           PPBKeyboardInputEventInterface()->GetKeyCode(input_event); | 
|   66       character_text = |   66       character_text = | 
|   67           PPBKeyboardInputEventInterface()->GetCharacterText(input_event); |   67           PPBKeyboardInputEventInterface()->GetCharacterText(input_event); | 
|   68       break; |   68       break; | 
|   69     case PP_INPUTEVENT_TYPE_UNDEFINED: |   69     case PP_INPUTEVENT_TYPE_UNDEFINED: | 
|   70       return PP_FALSE; |   70       return PP_FALSE; | 
|   71     // TODO(nfullagar): Implement support for event types below. |   71     // TODO(nfullagar): Implement support for event types below. | 
|   72     case PP_INPUTEVENT_TYPE_COMPOSITION_START: |   72     case PP_INPUTEVENT_TYPE_IME_COMPOSITION_START: | 
|   73     case PP_INPUTEVENT_TYPE_COMPOSITION_UPDATE: |   73     case PP_INPUTEVENT_TYPE_IME_COMPOSITION_UPDATE: | 
|   74     case PP_INPUTEVENT_TYPE_COMPOSITION_END: |   74     case PP_INPUTEVENT_TYPE_IME_COMPOSITION_END: | 
|   75     case PP_INPUTEVENT_TYPE_IME_TEXT: |   75     case PP_INPUTEVENT_TYPE_IME_TEXT: | 
|   76       DebugPrintf("   No implementation for event type %d\n", |   76       DebugPrintf("   No implementation for event type %d\n", | 
|   77           data.event_type); |   77           data.event_type); | 
|   78       return PP_FALSE; |   78       return PP_FALSE; | 
|   79     // No default case; if any new types are added we should get a compile |   79     // No default case; if any new types are added we should get a compile | 
|   80     // warning. |   80     // warning. | 
|   81   } |   81   } | 
|   82   // Now data and character_text have all the data we want to send to the |   82   // Now data and character_text have all the data we want to send to the | 
|   83   // untrusted side. |   83   // untrusted side. | 
|   84  |   84  | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  116 }  // namespace |  116 }  // namespace | 
|  117  |  117  | 
|  118 const PPP_InputEvent* BrowserInputEvent::GetInterface() { |  118 const PPP_InputEvent* BrowserInputEvent::GetInterface() { | 
|  119   static const PPP_InputEvent input_event_interface = { |  119   static const PPP_InputEvent input_event_interface = { | 
|  120     HandleInputEvent |  120     HandleInputEvent | 
|  121   }; |  121   }; | 
|  122   return &input_event_interface; |  122   return &input_event_interface; | 
|  123 } |  123 } | 
|  124  |  124  | 
|  125 }  // namespace ppapi_proxy |  125 }  // namespace ppapi_proxy | 
| OLD | NEW |