OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/mus/native_widget_mus.h" | 5 #include "ui/views/mus/native_widget_mus.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "components/bitmap_uploader/bitmap_uploader.h" | 11 #include "components/bitmap_uploader/bitmap_uploader.h" |
12 #include "components/mus/public/cpp/property_type_converters.h" | 12 #include "services/ui/public/cpp/property_type_converters.h" |
13 #include "components/mus/public/cpp/window.h" | 13 #include "services/ui/public/cpp/window.h" |
14 #include "components/mus/public/cpp/window_observer.h" | 14 #include "services/ui/public/cpp/window_observer.h" |
15 #include "components/mus/public/cpp/window_property.h" | 15 #include "services/ui/public/cpp/window_property.h" |
16 #include "components/mus/public/cpp/window_tree_client.h" | 16 #include "services/ui/public/cpp/window_tree_client.h" |
17 #include "components/mus/public/interfaces/cursor.mojom.h" | 17 #include "services/ui/public/interfaces/cursor.mojom.h" |
18 #include "components/mus/public/interfaces/window_manager.mojom.h" | 18 #include "services/ui/public/interfaces/window_manager.mojom.h" |
19 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 19 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
20 #include "components/mus/public/interfaces/window_tree.mojom.h" | 20 #include "services/ui/public/interfaces/window_tree.mojom.h" |
21 #include "ui/aura/client/default_capture_client.h" | 21 #include "ui/aura/client/default_capture_client.h" |
22 #include "ui/aura/client/window_tree_client.h" | 22 #include "ui/aura/client/window_tree_client.h" |
23 #include "ui/aura/env.h" | 23 #include "ui/aura/env.h" |
24 #include "ui/aura/layout_manager.h" | 24 #include "ui/aura/layout_manager.h" |
25 #include "ui/aura/mus/mus_util.h" | 25 #include "ui/aura/mus/mus_util.h" |
26 #include "ui/aura/window.h" | 26 #include "ui/aura/window.h" |
27 #include "ui/aura/window_property.h" | 27 #include "ui/aura/window_property.h" |
28 #include "ui/base/hit_test.h" | 28 #include "ui/base/hit_test.h" |
29 #include "ui/base/view_prop.h" | 29 #include "ui/base/view_prop.h" |
30 #include "ui/display/display.h" | 30 #include "ui/display/display.h" |
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 | 1400 |
1401 gfx::Path mask_path; | 1401 gfx::Path mask_path; |
1402 native_widget_delegate_->GetHitTestMask(&mask_path); | 1402 native_widget_delegate_->GetHitTestMask(&mask_path); |
1403 // TODO(jamescook): Use the full path for the mask. | 1403 // TODO(jamescook): Use the full path for the mask. |
1404 gfx::Rect mask_rect = | 1404 gfx::Rect mask_rect = |
1405 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); | 1405 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); |
1406 window_->SetHitTestMask(mask_rect); | 1406 window_->SetHitTestMask(mask_rect); |
1407 } | 1407 } |
1408 | 1408 |
1409 } // namespace views | 1409 } // namespace views |
OLD | NEW |