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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (Closed)
Patch Set: win 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index c596d3ce9b4bfd8f8843a176392490d1b3e598f9..6cb9469e647c54389cdd8858abb797d0c2b680e0 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -545,7 +545,7 @@ void DesktopWindowTreeHostWin::SetBoundsInPixels(const gfx::Rect& bounds) {
message_handler_->SetBounds(new_expanded, old_content_size != bounds.size());
}
-gfx::Point DesktopWindowTreeHostWin::GetLocationOnNativeScreen() const {
+gfx::Point DesktopWindowTreeHostWin::GetLocationOnScreenInPixels() const {
return GetBoundsInPixels().origin();
}
@@ -571,8 +571,9 @@ void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) {
::ShowCursor(!!show);
}
-void DesktopWindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) {
- POINT cursor_location = location.ToPOINT();
+void DesktopWindowTreeHostWin::MoveCursorToScreenLocationInPixels(
+ const gfx::Point& location_in_pixels) {
+ POINT cursor_location = location_in_pixels.ToPOINT();
::ClientToScreen(GetHWND(), &cursor_location);
::SetCursorPos(cursor_location.x, cursor_location.y);
}
@@ -793,7 +794,7 @@ void DesktopWindowTreeHostWin::HandleEndWMSizeMove() {
void DesktopWindowTreeHostWin::HandleMove() {
native_widget_delegate_->OnNativeWidgetMove();
- OnHostMoved(GetBoundsInPixels().origin());
+ OnHostMovedInPixels(GetBoundsInPixels().origin());
}
void DesktopWindowTreeHostWin::HandleWorkAreaChanged() {
@@ -811,7 +812,7 @@ void DesktopWindowTreeHostWin::HandleVisibilityChanged(bool visible) {
void DesktopWindowTreeHostWin::HandleClientSizeChanged(
const gfx::Size& new_size) {
if (dispatcher())
- OnHostResized(new_size);
+ OnHostResizedInPixels(new_size);
}
void DesktopWindowTreeHostWin::HandleFrameChanged() {

Powered by Google App Engine
This is Rietveld 408576698