Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: ui/aura/mus/window_tree_client.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( 1500 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea(
1501 WindowMus::Get(window)->server_id(), offset.x(), offset.y(), 1501 WindowMus::Get(window)->server_id(), offset.x(), offset.y(),
1502 gfx::ConvertInsetsToDIP(ScaleFactorForDisplay(window), hit_area)); 1502 gfx::ConvertInsetsToDIP(ScaleFactorForDisplay(window), hit_area));
1503 } 1503 }
1504 } 1504 }
1505 1505
1506 void WindowTreeClient::OnWindowTreeHostBoundsWillChange( 1506 void WindowTreeClient::OnWindowTreeHostBoundsWillChange(
1507 WindowTreeHostMus* window_tree_host, 1507 WindowTreeHostMus* window_tree_host,
1508 const gfx::Rect& bounds) { 1508 const gfx::Rect& bounds) {
1509 ScheduleInFlightBoundsChange(WindowMus::Get(window_tree_host->window()), 1509 ScheduleInFlightBoundsChange(WindowMus::Get(window_tree_host->window()),
1510 window_tree_host->GetBounds(), bounds); 1510 window_tree_host->GetBoundsInPixel(), bounds);
1511 } 1511 }
1512 1512
1513 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel() { 1513 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel() {
1514 std::unique_ptr<WindowPortMus> window_port = 1514 std::unique_ptr<WindowPortMus> window_port =
1515 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL); 1515 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL);
1516 roots_.insert(window_port.get()); 1516 roots_.insert(window_port.get());
1517 return window_port; 1517 return window_port;
1518 } 1518 }
1519 1519
1520 void WindowTreeClient::OnWindowTreeHostCreated( 1520 void WindowTreeClient::OnWindowTreeHostCreated(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698