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

Side by Side Diff: ppapi/examples/mouse_lock/mouse_lock.cc

Issue 8295023: Move PPB/PPP_MouseLock out of dev/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and resolve conflicts. Created 9 years, 2 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/cpp/mouse_lock.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_globals.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 <cmath> 5 #include <cmath>
6 #include <stdarg.h> 6 #include <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "ppapi/c/dev/ppb_console_dev.h" 9 #include "ppapi/c/dev/ppb_console_dev.h"
10 #include "ppapi/c/ppb_input_event.h" 10 #include "ppapi/c/ppb_input_event.h"
11 #include "ppapi/cpp/completion_callback.h" 11 #include "ppapi/cpp/completion_callback.h"
12 #include "ppapi/cpp/dev/mouse_lock_dev.h"
13 #include "ppapi/cpp/graphics_2d.h" 12 #include "ppapi/cpp/graphics_2d.h"
14 #include "ppapi/cpp/image_data.h" 13 #include "ppapi/cpp/image_data.h"
15 #include "ppapi/cpp/input_event.h" 14 #include "ppapi/cpp/input_event.h"
16 #include "ppapi/cpp/instance.h" 15 #include "ppapi/cpp/instance.h"
17 #include "ppapi/cpp/logging.h" 16 #include "ppapi/cpp/logging.h"
18 #include "ppapi/cpp/module.h" 17 #include "ppapi/cpp/module.h"
18 #include "ppapi/cpp/mouse_lock.h"
19 #include "ppapi/cpp/rect.h" 19 #include "ppapi/cpp/rect.h"
20 #include "ppapi/cpp/var.h" 20 #include "ppapi/cpp/var.h"
21 21
22 class MyInstance : public pp::Instance, public pp::MouseLock_Dev { 22 class MyInstance : public pp::Instance, public pp::MouseLock {
23 public: 23 public:
24 explicit MyInstance(PP_Instance instance) 24 explicit MyInstance(PP_Instance instance)
25 : pp::Instance(instance), 25 : pp::Instance(instance),
26 pp::MouseLock_Dev(this), 26 pp::MouseLock(this),
27 width_(0), 27 width_(0),
28 height_(0), 28 height_(0),
29 mouse_locked_(false), 29 mouse_locked_(false),
30 pending_paint_(false), 30 pending_paint_(false),
31 waiting_for_flush_completion_(false), 31 waiting_for_flush_completion_(false),
32 callback_factory_(this), 32 callback_factory_(this),
33 console_(NULL) { 33 console_(NULL) {
34 } 34 }
35 virtual ~MyInstance() {} 35 virtual ~MyInstance() {}
36 36
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 namespace pp { 265 namespace pp {
266 266
267 // Factory function for your specialization of the Module object. 267 // Factory function for your specialization of the Module object.
268 Module* CreateModule() { 268 Module* CreateModule() {
269 return new MyModule(); 269 return new MyModule();
270 } 270 }
271 271
272 } // namespace pp 272 } // namespace pp
273 273
OLDNEW
« no previous file with comments | « ppapi/cpp/mouse_lock.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698