| 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 // This has to be before any other includes, else default is picked up. | 5 // This has to be before any other includes, else default is picked up. |
| 6 // See base/logging for details on this. | 6 // See base/logging for details on this. |
| 7 #define NOTIMPLEMENTED_POLICY 5 | 7 #define NOTIMPLEMENTED_POLICY 5 |
| 8 | 8 |
| 9 #include "ui/views/mus/native_widget_mus.h" | 9 #include "ui/views/mus/native_widget_mus.h" |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ptr_util.h" |
| 17 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
| 18 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "services/ui/public/cpp/property_type_converters.h" | 21 #include "services/ui/public/cpp/property_type_converters.h" |
| 21 #include "services/ui/public/cpp/window.h" | 22 #include "services/ui/public/cpp/window.h" |
| 22 #include "services/ui/public/cpp/window_observer.h" | 23 #include "services/ui/public/cpp/window_observer.h" |
| 23 #include "services/ui/public/cpp/window_property.h" | 24 #include "services/ui/public/cpp/window_property.h" |
| 24 #include "services/ui/public/cpp/window_tree_client.h" | 25 #include "services/ui/public/cpp/window_tree_client.h" |
| 25 #include "services/ui/public/interfaces/cursor.mojom.h" | 26 #include "services/ui/public/interfaces/cursor.mojom.h" |
| 26 #include "services/ui/public/interfaces/window_manager.mojom.h" | 27 #include "services/ui/public/interfaces/window_manager.mojom.h" |
| (...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 | 1580 |
| 1580 gfx::Path mask_path; | 1581 gfx::Path mask_path; |
| 1581 native_widget_delegate_->GetHitTestMask(&mask_path); | 1582 native_widget_delegate_->GetHitTestMask(&mask_path); |
| 1582 // TODO(jamescook): Use the full path for the mask. | 1583 // TODO(jamescook): Use the full path for the mask. |
| 1583 gfx::Rect mask_rect = | 1584 gfx::Rect mask_rect = |
| 1584 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); | 1585 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); |
| 1585 window_->SetHitTestMask(mask_rect); | 1586 window_->SetHitTestMask(mask_rect); |
| 1586 } | 1587 } |
| 1587 | 1588 |
| 1588 } // namespace views | 1589 } // namespace views |
| OLD | NEW |