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

Side by Side Diff: ppapi/examples/2d/graphics_2d_example.c

Issue 7452002: Remove HandleInputEvent from PPP_Instance and freeze to 1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 5 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 /* Got a resize, repaint the plugin. */ 150 /* Got a resize, repaint the plugin. */
151 Repaint(info, &position->size); 151 Repaint(info, &position->size);
152 info->last_size.width = position->size.width; 152 info->last_size.width = position->size.width;
153 info->last_size.height = position->size.height; 153 info->last_size.height = position->size.height;
154 } 154 }
155 } 155 }
156 156
157 void Instance_DidChangeFocus(PP_Instance pp_instance, PP_Bool has_focus) { 157 void Instance_DidChangeFocus(PP_Instance pp_instance, PP_Bool has_focus) {
158 } 158 }
159 159
160 PP_Bool Instance_HandleInputEvent(PP_Instance pp_instance,
161 const struct PP_InputEvent* event) {
162 /* We don't handle any events. */
163 return PP_FALSE;
164 }
165
166 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, 160 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
167 PP_Resource pp_url_loader) { 161 PP_Resource pp_url_loader) {
168 return PP_FALSE; 162 return PP_FALSE;
169 } 163 }
170 164
171 static struct PPP_Instance instance_interface = { 165 static struct PPP_Instance instance_interface = {
172 &Instance_DidCreate, 166 &Instance_DidCreate,
173 &Instance_DidDestroy, 167 &Instance_DidDestroy,
174 &Instance_DidChangeView, 168 &Instance_DidChangeView,
175 &Instance_DidChangeFocus, 169 &Instance_DidChangeFocus,
176 &Instance_HandleInputEvent,
177 &Instance_HandleDocumentLoad 170 &Instance_HandleDocumentLoad
178 }; 171 };
179 172
180 173
181 /* Global entrypoints --------------------------------------------------------*/ 174 /* Global entrypoints --------------------------------------------------------*/
182 175
183 PP_EXPORT int32_t PPP_InitializeModule(PP_Module module, 176 PP_EXPORT int32_t PPP_InitializeModule(PP_Module module,
184 PPB_GetInterface get_browser_interface) { 177 PPB_GetInterface get_browser_interface) {
185 g_get_browser_interface = get_browser_interface; 178 g_get_browser_interface = get_browser_interface;
186 179
(...skipping 14 matching lines...) Expand all
201 194
202 PP_EXPORT void PPP_ShutdownModule() { 195 PP_EXPORT void PPP_ShutdownModule() {
203 } 196 }
204 197
205 PP_EXPORT const void* PPP_GetInterface(const char* interface_name) { 198 PP_EXPORT const void* PPP_GetInterface(const char* interface_name) {
206 if (strcmp(interface_name, PPP_INSTANCE_INTERFACE) == 0) 199 if (strcmp(interface_name, PPP_INSTANCE_INTERFACE) == 0)
207 return &instance_interface; 200 return &instance_interface;
208 return NULL; 201 return NULL;
209 } 202 }
210 203
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698