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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2689283003: chromeos: removes underlay surface offset (Closed)
Patch Set: log error Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index ec6baf2c07d166cdac5c86ca8da39c8cadd9ecaf..bfeccb9bc5b1fa89368d3fe617f6e48b14d343ee 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1621,17 +1621,12 @@ void WindowTreeClient::ActivateNextWindow() {
window_manager_internal_client_->ActivateNextWindow();
}
-void WindowTreeClient::SetUnderlaySurfaceOffsetAndExtendedHitArea(
- Window* window,
- const gfx::Vector2d& offset,
- const gfx::Insets& hit_area) {
+void WindowTreeClient::SetExtendedHitArea(Window* window,
+ const gfx::Insets& hit_area) {
if (window_manager_internal_client_) {
float device_scale_factor = ScaleFactorForDisplay(window);
- gfx::Vector2dF offset_in_pixels =
- gfx::ScaleVector2d(offset, device_scale_factor);
- window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea(
- WindowMus::Get(window)->server_id(), offset_in_pixels.x(),
- offset_in_pixels.y(),
+ window_manager_internal_client_->SetExtendedHitArea(
+ WindowMus::Get(window)->server_id(),
gfx::ConvertInsetsToPixel(device_scale_factor, hit_area));
}
}
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698