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

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: Removed comments for the 1.0 interface. 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 thunk::GetPPB_KeyboardInputEvent_Thunk(), 85 thunk::GetPPB_KeyboardInputEvent_Thunk(),
86 PPB_KEYBOARD_INPUT_EVENT_INTERFACE, 86 PPB_KEYBOARD_INPUT_EVENT_INTERFACE,
87 INTERFACE_ID_NONE, 87 INTERFACE_ID_NONE,
88 false, 88 false,
89 &CreateInputEventProxy, 89 &CreateInputEventProxy,
90 }; 90 };
91 return &info; 91 return &info;
92 } 92 }
93 93
94 // static 94 // static
95 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetMouseInputEventInfo() { 95 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetMouseInputEventInfo1_0() {
96 static const Info info = { 96 static const Info info = {
97 thunk::GetPPB_MouseInputEvent_Thunk(), 97 thunk::GetPPB_MouseInputEvent_1_0_Thunk(),
98 PPB_MOUSE_INPUT_EVENT_INTERFACE, 98 PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
99 INTERFACE_ID_NONE, 99 INTERFACE_ID_NONE,
100 false, 100 false,
101 &CreateInputEventProxy, 101 &CreateInputEventProxy,
102 };
103 return &info;
104 }
105
106 // static
107 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetMouseInputEventInfo1_1() {
108 static const Info info = {
109 thunk::GetPPB_MouseInputEvent_1_1_Thunk(),
110 PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
111 INTERFACE_ID_NONE,
112 false,
113 &CreateInputEventProxy,
102 }; 114 };
103 return &info; 115 return &info;
104 } 116 }
105 117
106 // static 118 // static
107 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetWheelInputEventInfo() { 119 const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetWheelInputEventInfo() {
108 static const Info info = { 120 static const Info info = {
109 thunk::GetPPB_WheelInputEvent_Thunk(), 121 thunk::GetPPB_WheelInputEvent_Thunk(),
110 PPB_WHEEL_INPUT_EVENT_INTERFACE, 122 PPB_WHEEL_INPUT_EVENT_INTERFACE,
111 INTERFACE_ID_NONE, 123 INTERFACE_ID_NONE,
(...skipping 12 matching lines...) Expand all
124 } 136 }
125 137
126 bool PPB_InputEvent_Proxy::OnMessageReceived(const IPC::Message& msg) { 138 bool PPB_InputEvent_Proxy::OnMessageReceived(const IPC::Message& msg) {
127 // There are no IPC messages for this interface. 139 // There are no IPC messages for this interface.
128 NOTREACHED(); 140 NOTREACHED();
129 return false; 141 return false;
130 } 142 }
131 143
132 } // namespace proxy 144 } // namespace proxy
133 } // namespace ppapi 145 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698