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

Unified Diff: ui/aura/mus/hit_test_data_provider_mus.h

Issue 2972963002: [mus+ash] Implements hit-test client in Aura (Closed)
Patch Set: [mus ash] Implements hit-test client in Aura (rebased) Created 3 years, 5 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 | « ui/aura/BUILD.gn ('k') | ui/aura/mus/hit_test_data_provider_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/hit_test_data_provider_mus.h
diff --git a/ui/aura/mus/hit_test_data_provider_mus.h b/ui/aura/mus/hit_test_data_provider_mus.h
new file mode 100644
index 0000000000000000000000000000000000000000..de4f520b787f8060e414d35d39847693ced10543
--- /dev/null
+++ b/ui/aura/mus/hit_test_data_provider_mus.h
@@ -0,0 +1,37 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_MUS_HIT_TEST_DATA_PROVIDER_MUS_H_
+#define UI_AURA_MUS_HIT_TEST_DATA_PROVIDER_MUS_H_
+
+#include "base/macros.h"
+#include "components/viz/client/hit_test_data_provider.h"
+
+namespace aura {
+
+class Window;
+
+class HitTestDataProviderMus : public viz::HitTestDataProvider {
+ public:
+ HitTestDataProviderMus(Window* window);
+ ~HitTestDataProviderMus() override;
+
+ // HitTestDataProvider:
+ std::unique_ptr<HitTestRegionList> GetHitTestData() override;
+
+ private:
+ // Recursively walks the children of |window| and uses |window|'s
+ // EventTargeter to generate hit-test data for the |window|'s descendants.
+ // Populates |hit_test_region_list|.
+ void GetHitTestDataRecursively(aura::Window* window,
+ HitTestRegionList* hit_test_region_list);
+
+ aura::Window* window_ = nullptr;
+
+ DISALLOW_COPY_AND_ASSIGN(HitTestDataProviderMus);
+};
+
+} // namespace aura
+
+#endif // UI_AURA_MUS_HIT_TEST_DATA_PROVIDER_MUS_H_
« no previous file with comments | « ui/aura/BUILD.gn ('k') | ui/aura/mus/hit_test_data_provider_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698