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

Side by Side Diff: src/trusted/plugin/ppapi/plugin_ppapi.h

Issue 7395005: Proxy PPB_Input_Event, PPP_Input_Event, and associated IFs. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: copyright headers 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 /* 1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 // PPAPI-based implementation of the interface for a NaCl plugin instance. 7 // PPAPI-based implementation of the interface for a NaCl plugin instance.
8 8
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Gets called by the browser right after New(). 59 // Gets called by the browser right after New().
60 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); 60 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]);
61 61
62 // Handles view changes from the browser. 62 // Handles view changes from the browser.
63 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip); 63 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip);
64 64
65 // Handles gaining or losing focus. 65 // Handles gaining or losing focus.
66 virtual void DidChangeFocus(bool has_focus); 66 virtual void DidChangeFocus(bool has_focus);
67 67
68 // Handles input events delivered from the browser to this plugin element. 68 // Handles input events delivered from the browser to this plugin element.
69 // TODO(dmichael): Remove this.
69 virtual bool HandleInputEvent(const PP_InputEvent& event); 70 virtual bool HandleInputEvent(const PP_InputEvent& event);
70 71
72 // Handles input events delivered from the browser to this plugin element.
73 virtual bool HandleInputEvent(const pp::InputEvent& event);
74
71 // Handles gaining or losing focus. 75 // Handles gaining or losing focus.
72 virtual bool HandleDocumentLoad(const pp::URLLoader& url_loader); 76 virtual bool HandleDocumentLoad(const pp::URLLoader& url_loader);
73 77
74 // Returns a scriptable reference to this plugin element. 78 // Returns a scriptable reference to this plugin element.
75 // Called by JavaScript document.getElementById(plugin_id). 79 // Called by JavaScript document.getElementById(plugin_id).
76 virtual pp::Var GetInstanceObject(); 80 virtual pp::Var GetInstanceObject();
77 81
78 // Handles postMessage from browser 82 // Handles postMessage from browser
79 virtual void HandleMessage(const pp::Var& message); 83 virtual void HandleMessage(const pp::Var& message);
80 84
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 nacl::scoped_ptr<pp::Zoom_Dev> zoom_adapter_; 296 nacl::scoped_ptr<pp::Zoom_Dev> zoom_adapter_;
293 297
294 int64_t init_time_; 298 int64_t init_time_;
295 int64_t ready_time_; 299 int64_t ready_time_;
296 size_t nexe_size_; 300 size_t nexe_size_;
297 }; 301 };
298 302
299 } // namespace plugin 303 } // namespace plugin
300 304
301 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_ 305 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_PLUGIN_PPAPI_H_
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/untrusted/srpcgen/ppp_rpc.h ('k') | src/trusted/plugin/ppapi/plugin_ppapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698