| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/aura/mus/window_tree_client.h" | 5 #include "ui/aura/mus/window_tree_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 } | 1469 } |
| 1470 } | 1470 } |
| 1471 | 1471 |
| 1472 void WindowTreeClient::OnWindowTreeHostBoundsWillChange( | 1472 void WindowTreeClient::OnWindowTreeHostBoundsWillChange( |
| 1473 WindowTreeHostMus* window_tree_host, | 1473 WindowTreeHostMus* window_tree_host, |
| 1474 const gfx::Rect& bounds) { | 1474 const gfx::Rect& bounds) { |
| 1475 ScheduleInFlightBoundsChange(WindowMus::Get(window_tree_host->window()), | 1475 ScheduleInFlightBoundsChange(WindowMus::Get(window_tree_host->window()), |
| 1476 window_tree_host->GetBounds(), bounds); | 1476 window_tree_host->GetBounds(), bounds); |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 void WindowTreeClient::OnWindowTreeHostClientAreaWillChange( |
| 1480 WindowTreeHostMus* window_tree_host, |
| 1481 const gfx::Insets& insets) { |
| 1482 SetClientArea(window_tree_host->window(), insets, std::vector<gfx::Rect>()); |
| 1483 } |
| 1484 |
| 1485 void WindowTreeClient::OnWindowTreeHostClearHitTestMask( |
| 1486 WindowTreeHostMus* window_tree_host) { |
| 1487 ClearHitTestMask(window_tree_host->window()); |
| 1488 } |
| 1489 |
| 1490 void WindowTreeClient::OnWindowTreeHostHitTestMaskWillChange( |
| 1491 WindowTreeHostMus* window_tree_host, |
| 1492 const gfx::Rect& mask_rect) { |
| 1493 SetHitTestMask(window_tree_host->window(), mask_rect); |
| 1494 } |
| 1495 |
| 1479 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel() { | 1496 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel() { |
| 1480 std::unique_ptr<WindowPortMus> window_port = | 1497 std::unique_ptr<WindowPortMus> window_port = |
| 1481 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL); | 1498 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL); |
| 1482 roots_.insert(window_port.get()); | 1499 roots_.insert(window_port.get()); |
| 1483 return window_port; | 1500 return window_port; |
| 1484 } | 1501 } |
| 1485 | 1502 |
| 1486 void WindowTreeClient::OnWindowTreeHostCreated( | 1503 void WindowTreeClient::OnWindowTreeHostCreated( |
| 1487 WindowTreeHostMus* window_tree_host) { | 1504 WindowTreeHostMus* window_tree_host) { |
| 1488 // All WindowTreeHosts are destroyed before this, so we don't need to unset | 1505 // All WindowTreeHosts are destroyed before this, so we don't need to unset |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( | 1548 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( |
| 1532 this, capture_synchronizer_.get(), window)); | 1549 this, capture_synchronizer_.get(), window)); |
| 1533 } | 1550 } |
| 1534 | 1551 |
| 1535 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { | 1552 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { |
| 1536 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( | 1553 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( |
| 1537 this, focus_synchronizer_.get(), window)); | 1554 this, focus_synchronizer_.get(), window)); |
| 1538 } | 1555 } |
| 1539 | 1556 |
| 1540 } // namespace aura | 1557 } // namespace aura |
| OLD | NEW |