Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(966)

Side by Side Diff: ppapi/proxy/ppb_input_event_proxy.cc

Issue 7715021: Add movement information to PPB_MouseInputEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_input_event_proxy.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ppapi/proxy/ppb_input_event_proxy.h" 5 #include "ppapi/proxy/ppb_input_event_proxy.h"
6 6
7 #include "ppapi/c/ppb_audio_config.h" 7 #include "ppapi/c/ppb_audio_config.h"
8 #include "ppapi/proxy/plugin_dispatcher.h" 8 #include "ppapi/proxy/plugin_dispatcher.h"
9 #include "ppapi/proxy/plugin_var_tracker.h" 9 #include "ppapi/proxy/plugin_var_tracker.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 thunk::GetPPB_KeyboardInputEvent_Thunk(), 53 thunk::GetPPB_KeyboardInputEvent_Thunk(),
54 PPB_KEYBOARD_INPUT_EVENT_INTERFACE, 54 PPB_KEYBOARD_INPUT_EVENT_INTERFACE,
55 INTERFACE_ID_NONE, 55 INTERFACE_ID_NONE,
56 false, 56 false,
57 &CreateInputEventProxy, 57 &CreateInputEventProxy,
58 }; 58 };
59 return &info; 59 return &info;
60 } 60 }
61 61
62 // static 62 // static
63 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetMouseInputEventInfo() { 63 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetMouseInputEventInfo1_0() {
64 static const Info info = { 64 static const Info info = {
65 thunk::GetPPB_MouseInputEvent_Thunk(), 65 thunk::GetPPB_MouseInputEvent_1_0_Thunk(),
66 PPB_MOUSE_INPUT_EVENT_INTERFACE, 66 PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
67 INTERFACE_ID_NONE, 67 INTERFACE_ID_NONE,
68 false, 68 false,
69 &CreateInputEventProxy, 69 &CreateInputEventProxy,
70 };
71 return &info;
72 }
73
74 // static
75 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetMouseInputEventInfo1_1() {
76 static const Info info = {
77 thunk::GetPPB_MouseInputEvent_1_1_Thunk(),
78 PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
79 INTERFACE_ID_NONE,
80 false,
81 &CreateInputEventProxy,
70 }; 82 };
71 return &info; 83 return &info;
72 } 84 }
73 85
74 // static 86 // static
75 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetWheelInputEventInfo() { 87 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetWheelInputEventInfo() {
76 static const Info info = { 88 static const Info info = {
77 thunk::GetPPB_WheelInputEvent_Thunk(), 89 thunk::GetPPB_WheelInputEvent_Thunk(),
78 PPB_WHEEL_INPUT_EVENT_INTERFACE, 90 PPB_WHEEL_INPUT_EVENT_INTERFACE,
79 INTERFACE_ID_NONE, 91 INTERFACE_ID_NONE,
80 false, 92 false,
81 &CreateInputEventProxy, 93 &CreateInputEventProxy,
82 }; 94 };
83 return &info; 95 return &info;
84 } 96 }
85 97
86 bool PPB_InputEvent_Proxy::OnMessageReceived(const IPC::Message& msg) { 98 bool PPB_InputEvent_Proxy::OnMessageReceived(const IPC::Message& msg) {
87 // There are no IPC messages for this interface. 99 // There are no IPC messages for this interface.
88 NOTREACHED(); 100 NOTREACHED();
89 return false; 101 return false;
90 } 102 }
91 103
92 } // namespace proxy 104 } // namespace proxy
93 } // namespace ppapi 105 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_input_event_proxy.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698