diff options
Diffstat (limited to 'ppapi/examples/mouse_cursor/mouse_cursor.cc')
-rw-r--r-- | ppapi/examples/mouse_cursor/mouse_cursor.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ppapi/examples/mouse_cursor/mouse_cursor.cc b/ppapi/examples/mouse_cursor/mouse_cursor.cc index 0c8b10b..8a70b15 100644 --- a/ppapi/examples/mouse_cursor/mouse_cursor.cc +++ b/ppapi/examples/mouse_cursor/mouse_cursor.cc @@ -32,11 +32,11 @@ class MyInstance : public pp::Instance { virtual ~MyInstance() { } - virtual void DidChangeView(const pp::View& view) {
- width_ = view.GetRect().width();
- height_ = view.GetRect().height();
- }
-
+ virtual void DidChangeView(const pp::View& view) { + width_ = view.GetRect().width(); + height_ = view.GetRect().height(); + } + virtual bool HandleInputEvent(const pp::InputEvent& event) { switch (event.GetType()) { case PP_INPUTEVENT_TYPE_MOUSEDOWN: |