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

Side by Side Diff: ash/host/ash_window_tree_host_platform.cc

Issue 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (Closed)
Patch Set: win 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
« no previous file with comments | « ash/host/ash_window_tree_host_platform.h ('k') | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/host/ash_window_tree_host_platform.h" 5 #include "ash/host/ash_window_tree_host_platform.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/host/root_window_transformer.h" 9 #include "ash/host/root_window_transformer.h"
10 #include "ash/host/transformer_helper.h" 10 #include "ash/host/transformer_helper.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 gfx::Transform AshWindowTreeHostPlatform::GetRootTransform() const { 85 gfx::Transform AshWindowTreeHostPlatform::GetRootTransform() const {
86 return transformer_helper_.GetTransform(); 86 return transformer_helper_.GetTransform();
87 } 87 }
88 88
89 gfx::Transform AshWindowTreeHostPlatform::GetInverseRootTransform() const { 89 gfx::Transform AshWindowTreeHostPlatform::GetInverseRootTransform() const {
90 return transformer_helper_.GetInverseTransform(); 90 return transformer_helper_.GetInverseTransform();
91 } 91 }
92 92
93 void AshWindowTreeHostPlatform::UpdateRootWindowSize( 93 void AshWindowTreeHostPlatform::UpdateRootWindowSizeInPixels(
94 const gfx::Size& host_size) { 94 const gfx::Size& host_size_in_pixels) {
95 transformer_helper_.UpdateWindowSize(host_size); 95 transformer_helper_.UpdateWindowSize(host_size_in_pixels);
96 } 96 }
97 97
98 void AshWindowTreeHostPlatform::OnCursorVisibilityChangedNative(bool show) { 98 void AshWindowTreeHostPlatform::OnCursorVisibilityChangedNative(bool show) {
99 SetTapToClickPaused(!show); 99 SetTapToClickPaused(!show);
100 } 100 }
101 101
102 void AshWindowTreeHostPlatform::SetBoundsInPixels(const gfx::Rect& bounds) { 102 void AshWindowTreeHostPlatform::SetBoundsInPixels(const gfx::Rect& bounds) {
103 WindowTreeHostPlatform::SetBoundsInPixels(bounds); 103 WindowTreeHostPlatform::SetBoundsInPixels(bounds);
104 ConfineCursorToRootWindow(); 104 ConfineCursorToRootWindow();
105 } 105 }
(...skipping 19 matching lines...) Expand all
125 #if defined(USE_OZONE) 125 #if defined(USE_OZONE)
126 DCHECK(ui::OzonePlatform::GetInstance()->GetInputController()); 126 DCHECK(ui::OzonePlatform::GetInstance()->GetInputController());
127 127
128 // Temporarily pause tap-to-click when the cursor is hidden. 128 // Temporarily pause tap-to-click when the cursor is hidden.
129 ui::OzonePlatform::GetInstance()->GetInputController()->SetTapToClickPaused( 129 ui::OzonePlatform::GetInstance()->GetInputController()->SetTapToClickPaused(
130 state); 130 state);
131 #endif 131 #endif
132 } 132 }
133 133
134 } // namespace ash 134 } // namespace ash
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_platform.h ('k') | ash/host/ash_window_tree_host_unified.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698