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

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

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 1 month 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/display/display_manager.h"
8 #include "ash/public/cpp/shell_window_ids.h" 7 #include "ash/public/cpp/shell_window_ids.h"
9 #include "components/exo/pointer_delegate.h" 8 #include "components/exo/pointer_delegate.h"
10 #include "components/exo/pointer_stylus_delegate.h" 9 #include "components/exo/pointer_stylus_delegate.h"
11 #include "components/exo/surface.h" 10 #include "components/exo/surface.h"
12 #include "components/exo/wm_helper.h" 11 #include "components/exo/wm_helper.h"
13 #include "ui/aura/client/cursor_client.h" 12 #include "ui/aura/client/cursor_client.h"
14 #include "ui/aura/env.h" 13 #include "ui/aura/env.h"
15 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
15 #include "ui/display/manager/display_manager.h"
16 #include "ui/display/manager/managed_display_info.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;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 if (ui_scale != cursor_scale_) { 370 if (ui_scale != cursor_scale_) {
371 gfx::Transform transform; 371 gfx::Transform transform;
372 transform.Scale(ui_scale, ui_scale); 372 transform.Scale(ui_scale, ui_scale);
373 widget_->GetNativeWindow()->SetTransform(transform); 373 widget_->GetNativeWindow()->SetTransform(transform);
374 cursor_scale_ = ui_scale; 374 cursor_scale_ = ui_scale;
375 } 375 }
376 } 376 }
377 377
378 } // namespace exo 378 } // namespace exo
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc ('k') | components/exo/wm_helper_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698