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

Unified Diff: ppapi/examples/2d/paint_manager_example.cc

Issue 9814015: Add new MouseCursor interface for setting the mouse cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/mouse_cursor.cc ('k') | ppapi/examples/mouse_cursor/mouse_cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/2d/paint_manager_example.cc
diff --git a/ppapi/examples/2d/paint_manager_example.cc b/ppapi/examples/2d/paint_manager_example.cc
index d3530cb33c8e4f6e508b19f6898e9bb744ca3b26..86bdbe79ed8f9f2a8e820cd682f24c57cbb413d7 100644
--- a/ppapi/examples/2d/paint_manager_example.cc
+++ b/ppapi/examples/2d/paint_manager_example.cc
@@ -9,6 +9,7 @@
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/size.h"
+#include "ppapi/cpp/view.h"
#include "ppapi/utility/graphics/paint_manager.h"
// Number of pixels to each side of the center of the square that we draw.
@@ -70,8 +71,8 @@ class MyInstance : public pp::Instance, public pp::PaintManager::Client {
}
}
- virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) {
- paint_manager_.SetSize(position.size());
+ virtual void DidChangeView(const pp::View& view) {
+ paint_manager_.SetSize(view.GetRect().size());
}
// PaintManager::Client implementation.
« no previous file with comments | « ppapi/cpp/mouse_cursor.cc ('k') | ppapi/examples/mouse_cursor/mouse_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698