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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_MUS_HIT_TEST_DATA_PROVIDER_MUS_H_
6 #define UI_AURA_MUS_HIT_TEST_DATA_PROVIDER_MUS_H_
7
8 #include "base/macros.h"
9 #include "components/viz/client/hit_test_data_provider.h"
10
11 namespace aura {
12
13 class Window;
14
15 class HitTestDataProviderMus : public viz::HitTestDataProvider {
16 public:
17 HitTestDataProviderMus(Window* window);
18 ~HitTestDataProviderMus() override;
19
20 // HitTestDataProvider:
21 std::unique_ptr<HitTestRegionList> GetHitTestData() override;
22
23 private:
24 // Recursively walks the children of |window| and uses |window|'s
25 // EventTargeter to generate hit-test data for the |window|'s descendants.
26 // Populates |hit_test_region_list|.
27 void GetHitTestDataRecursively(aura::Window* window,
28 HitTestRegionList* hit_test_region_list);
29
30 aura::Window* window_ = nullptr;
31
32 DISALLOW_COPY_AND_ASSIGN(HitTestDataProviderMus);
33 };
34
35 } // namespace aura
36
37 #endif // UI_AURA_MUS_HIT_TEST_DATA_PROVIDER_MUS_H_
OLDNEW
« 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