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

Unified Diff: services/ui/view_manager/view_registry.h

Issue 1774393002: Mozart: Add ViewInspector contracts for hit testing. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-5
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 | « mojo/services/ui/views/interfaces/view_associates.mojom ('k') | services/ui/view_manager/view_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_registry.h
diff --git a/services/ui/view_manager/view_registry.h b/services/ui/view_manager/view_registry.h
index d2bcb66c5de3146fdf6a00123d5a412ccb046cef..fb6fc813db6ea53ba3fd14576f61677863259e28 100644
--- a/services/ui/view_manager/view_registry.h
+++ b/services/ui/view_manager/view_registry.h
@@ -136,6 +136,17 @@ class ViewRegistry : public mojo::ui::ViewInspector {
// Called when one of the view tree pipes is closed remotely.
void OnViewTreeDied(ViewTreeState* tree_state, const std::string& reason);
+ // VIEW INSPECTOR REQUESTS
+
+ void GetHitTester(mojo::ui::ViewTreeTokenPtr view_tree_token,
+ mojo::InterfaceRequest<mojo::gfx::composition::HitTester>
+ hit_tester_request,
+ const GetHitTesterCallback& callback) override;
+
+ void ResolveScenes(
+ mojo::Array<mojo::gfx::composition::SceneTokenPtr> scene_tokens,
+ const ResolveScenesCallback& callback) override;
+
private:
// LIFETIME
@@ -203,6 +214,7 @@ class ViewRegistry : public mojo::ui::ViewInspector {
uint32_t next_view_token_value_ = 1u;
uint32_t next_view_tree_token_value_ = 1u;
std::unordered_map<uint32_t, ViewState*> views_by_token_;
+ std::unordered_map<uint32_t, ViewState*> views_by_scene_token_;
std::unordered_map<uint32_t, ViewTreeState*> view_trees_by_token_;
DISALLOW_COPY_AND_ASSIGN(ViewRegistry);
« no previous file with comments | « mojo/services/ui/views/interfaces/view_associates.mojom ('k') | services/ui/view_manager/view_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698