| 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 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1467 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
| 1468 WindowMus::Get(window)->server_id(), offset.x(), offset.y(), | 1468 WindowMus::Get(window)->server_id(), offset.x(), offset.y(), |
| 1469 gfx::ConvertInsetsToDIP(ScaleFactorForDisplay(window), hit_area)); | 1469 gfx::ConvertInsetsToDIP(ScaleFactorForDisplay(window), hit_area)); |
| 1470 } | 1470 } |
| 1471 } | 1471 } |
| 1472 | 1472 |
| 1473 void WindowTreeClient::OnWindowTreeHostBoundsWillChange( | 1473 void WindowTreeClient::OnWindowTreeHostBoundsWillChange( |
| 1474 WindowTreeHostMus* window_tree_host, | 1474 WindowTreeHostMus* window_tree_host, |
| 1475 const gfx::Rect& bounds) { | 1475 const gfx::Rect& bounds) { |
| 1476 ScheduleInFlightBoundsChange(WindowMus::Get(window_tree_host->window()), | 1476 ScheduleInFlightBoundsChange(WindowMus::Get(window_tree_host->window()), |
| 1477 window_tree_host->GetBounds(), bounds); | 1477 window_tree_host->GetBoundsInPixels(), bounds); |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 void WindowTreeClient::OnWindowTreeHostClientAreaWillChange( | 1480 void WindowTreeClient::OnWindowTreeHostClientAreaWillChange( |
| 1481 WindowTreeHostMus* window_tree_host, | 1481 WindowTreeHostMus* window_tree_host, |
| 1482 const gfx::Insets& client_area, | 1482 const gfx::Insets& client_area, |
| 1483 const std::vector<gfx::Rect>& additional_client_areas) { | 1483 const std::vector<gfx::Rect>& additional_client_areas) { |
| 1484 DCHECK(tree_); | 1484 DCHECK(tree_); |
| 1485 Window* window = window_tree_host->window(); | 1485 Window* window = window_tree_host->window(); |
| 1486 float device_scale_factor = ScaleFactorForDisplay(window); | 1486 float device_scale_factor = ScaleFactorForDisplay(window); |
| 1487 std::vector<gfx::Rect> additional_client_areas_in_pixel; | 1487 std::vector<gfx::Rect> additional_client_areas_in_pixel; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( | 1583 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( |
| 1584 this, capture_synchronizer_.get(), window)); | 1584 this, capture_synchronizer_.get(), window)); |
| 1585 } | 1585 } |
| 1586 | 1586 |
| 1587 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { | 1587 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { |
| 1588 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( | 1588 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( |
| 1589 this, focus_synchronizer_.get(), window)); | 1589 this, focus_synchronizer_.get(), window)); |
| 1590 } | 1590 } |
| 1591 | 1591 |
| 1592 } // namespace aura | 1592 } // namespace aura |
| OLD | NEW |