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

Unified Diff: ppapi/examples/mouse_lock/mouse_lock.cc

Issue 11416214: PPAPI: Move PPB_Console out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/examples/ime/ime.cc ('k') | ppapi/examples/video_decode/video_decode.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/mouse_lock/mouse_lock.cc
diff --git a/ppapi/examples/mouse_lock/mouse_lock.cc b/ppapi/examples/mouse_lock/mouse_lock.cc
index 4203622c9d0a8491cbcc374bdc2d9f9054d9185e..3b1644f7a43fc8a5830071a32a91f08d54ae0f97 100644
--- a/ppapi/examples/mouse_lock/mouse_lock.cc
+++ b/ppapi/examples/mouse_lock/mouse_lock.cc
@@ -6,7 +6,7 @@
#include <stdarg.h>
#include <stdio.h>
-#include "ppapi/c/dev/ppb_console_dev.h"
+#include "ppapi/c/ppb_console.h"
#include "ppapi/c/ppb_input_event.h"
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
@@ -37,8 +37,8 @@ class MyInstance : public pp::Instance, public pp::MouseLock {
virtual ~MyInstance() {}
virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) {
- console_ = reinterpret_cast<const PPB_Console_Dev*>(
- pp::Module::Get()->GetBrowserInterface(PPB_CONSOLE_DEV_INTERFACE));
+ console_ = reinterpret_cast<const PPB_Console*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_CONSOLE_INTERFACE));
if (!console_)
return false;
@@ -226,7 +226,7 @@ class MyInstance : public pp::Instance, public pp::MouseLock {
pow(static_cast<double>(point_1_y - point_2_y), 2));
}
- void Log(PP_LogLevel_Dev level, const char* format, ...) {
+ void Log(PP_LogLevel level, const char* format, ...) {
va_list args;
va_start(args, format);
char buf[512];
@@ -249,7 +249,7 @@ class MyInstance : public pp::Instance, public pp::MouseLock {
pp::CompletionCallbackFactory<MyInstance> callback_factory_;
- const PPB_Console_Dev* console_;
+ const PPB_Console* console_;
pp::FlashFullscreen flash_fullscreen_;
« no previous file with comments | « ppapi/examples/ime/ime.cc ('k') | ppapi/examples/video_decode/video_decode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698