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

Unified Diff: examples/ui/pdf_viewer/pdf_viewer.cc

Issue 1776473005: Mozart: Implement basic input event dispatch with hit testing. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-7
Patch Set: Created 4 years, 9 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 | « apps/moterm/moterm_view.cc ('k') | examples/ui/spinning_cube/spinning_cube_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/pdf_viewer/pdf_viewer.cc
diff --git a/examples/ui/pdf_viewer/pdf_viewer.cc b/examples/ui/pdf_viewer/pdf_viewer.cc
index 3833dba049e4bdee998994c9c2301235fd41bf02..0efcc20ea873339a6de0ab3751f66987ab2e67e8 100644
--- a/examples/ui/pdf_viewer/pdf_viewer.cc
+++ b/examples/ui/pdf_viewer/pdf_viewer.cc
@@ -186,6 +186,8 @@ class PDFDocumentView : public mojo::ui::GaneshView,
update->resources.insert(kContentImageResourceId, content_resource.Pass());
auto root_node = mojo::gfx::composition::Node::New();
+ root_node->hit_test_behavior =
+ mojo::gfx::composition::HitTestBehavior::New();
root_node->op = mojo::gfx::composition::NodeOp::New();
root_node->op->set_image(mojo::gfx::composition::ImageNodeOp::New());
root_node->op->get_image()->content_rect = bounds.Clone();
« no previous file with comments | « apps/moterm/moterm_view.cc ('k') | examples/ui/spinning_cube/spinning_cube_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698