Home | History | Annotate | Download | only in mouse_lock

Lines Matching refs:pp

23 class MyInstance : public pp::Instance, public pp::MouseLock {
26 : pp::Instance(instance),
27 pp::MouseLock(this),
41 pp::Module::Get()->GetBrowserInterface(PPB_CONSOLE_INTERFACE));
50 virtual bool HandleInputEvent(const pp::InputEvent& event) {
53 pp::MouseInputEvent mouse_event(event);
61 pp::MouseInputEvent mouse_event(event);
70 pp::KeyboardInputEvent key_event(event);
91 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) {
99 device_context_ = pp::Graphics2D(this, pp::Size(width_, height_), false);
137 pp::ImageData image = PaintImage(width_, height_);
146 pp::ImageData PaintImage(int width, int height) {
147 pp::ImageData image(this, PP_IMAGEDATAFORMAT_BGRA_PREMUL,
148 pp::Size(width, height), false);
159 pp::Point vertex(mouse_movement_.x() + center_x,
161 pp::Point anchor_1;
162 pp::Point anchor_2;
195 *image.GetAddr32(pp::Point(x, y)) = foreground_color;
212 *image.GetAddr32(pp::Point(x, y)) = foreground_color;
216 *image.GetAddr32(pp::Point(x, y)) = kBackgroundColor;
237 pp::Var value(buf);
245 pp::Point mouse_movement_;
250 pp::CompletionCallbackFactory<MyInstance> callback_factory_;
254 pp::FlashFullscreen flash_fullscreen_;
256 pp::Graphics2D device_context_;
261 class MyModule : public pp::Module {
263 MyModule() : pp::Module() {}
267 virtual pp::Instance* CreateInstance(PP_Instance instance) {
272 namespace pp {
279 } // namespace pp