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

Side by Side Diff: components/exo/pointer.cc

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 #include "components/exo/pointer.h" 5 #include "components/exo/pointer.h"
6 6
7 #include "ash/common/display/display_info.h"
8 #include "ash/common/shell_window_ids.h" 7 #include "ash/common/shell_window_ids.h"
9 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
10 #include "components/exo/pointer_delegate.h" 9 #include "components/exo/pointer_delegate.h"
11 #include "components/exo/pointer_stylus_delegate.h" 10 #include "components/exo/pointer_stylus_delegate.h"
12 #include "components/exo/surface.h" 11 #include "components/exo/surface.h"
13 #include "components/exo/wm_helper.h" 12 #include "components/exo/wm_helper.h"
14 #include "ui/aura/client/cursor_client.h" 13 #include "ui/aura/client/cursor_client.h"
15 #include "ui/aura/env.h" 14 #include "ui/aura/env.h"
16 #include "ui/aura/window.h" 15 #include "ui/aura/window.h"
16 #include "ui/display/manager/managed_display_info.h"
17 #include "ui/display/screen.h" 17 #include "ui/display/screen.h"
18 #include "ui/events/event.h" 18 #include "ui/events/event.h"
19 #include "ui/gfx/geometry/vector2d_conversions.h" 19 #include "ui/gfx/geometry/vector2d_conversions.h"
20 #include "ui/views/widget/widget.h" 20 #include "ui/views/widget/widget.h"
21 21
22 namespace exo { 22 namespace exo {
23 namespace { 23 namespace {
24 24
25 static constexpr float kLargeCursorScale = 2.8; 25 static constexpr float kLargeCursorScale = 2.8;
26 26
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 if (ui_scale != cursor_scale_) { 358 if (ui_scale != cursor_scale_) {
359 gfx::Transform transform; 359 gfx::Transform transform;
360 transform.Scale(ui_scale, ui_scale); 360 transform.Scale(ui_scale, ui_scale);
361 widget_->GetNativeWindow()->SetTransform(transform); 361 widget_->GetNativeWindow()->SetTransform(transform);
362 cursor_scale_ = ui_scale; 362 cursor_scale_ = ui_scale;
363 } 363 }
364 } 364 }
365 365
366 } // namespace exo 366 } // namespace exo
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/display_options_handler.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698