Lines Matching refs:pp
19 class MyInstance : public pp::Instance {
22 : pp::Instance(instance) {
25 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) {
30 pp::ImageData image(this, PP_IMAGEDATAFORMAT_BGRA_PREMUL, last_size_, true);
31 pp::Graphics2D graphics(this, last_size_, false);
34 pp::BrowserFontDescription desc;
37 pp::BrowserFont_Trusted font(this, desc);
40 pp::Rect text_clip(position.size()); // Use entire bounds for clip.
42 pp::BrowserFontTextRun(
44 pp::Point(20, 100), 0x80008000, clip, false);
49 pp::BrowserFontDescription desc;
50 pp::BrowserFont_Trusted default_font(this, desc);
53 pp::Point(10, y), 0xFF000000);
57 pp::BrowserFontDescription desc;
59 pp::BrowserFont_Trusted serif_font(this, desc);
62 pp::Point(10, y), 0xFF000000);
66 pp::BrowserFontDescription desc;
68 pp::BrowserFont_Trusted sans_serif_font(this, desc);
71 pp::Point(10, y), 0xFF000000);
75 pp::BrowserFontDescription desc;
77 pp::BrowserFont_Trusted monospace_font(this, desc);
80 pp::Point(10, y), 0xFF000000);
84 graphics.PaintImageData(image, pp::Point(0, 0));
85 graphics.Flush(pp::CompletionCallback(&DummyCompletionCallback, NULL));
90 std::string DescribeFont(const pp::BrowserFont_Trusted& font,
92 pp::BrowserFontDescription desc;
102 pp::Size last_size_;
105 class MyModule : public pp::Module {
107 virtual pp::Instance* CreateInstance(PP_Instance instance) {
112 namespace pp {
119 } // namespace pp