| OLD | NEW |
| (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_ |
| OLD | NEW |