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

Side by Side Diff: ui/aura/window_tree_host_ozone.cc

Issue 778043004: Set capture to the window being dragged when dragging a window on Ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_capture
Patch Set: Created 6 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/wm/toplevel_window_event_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/aura/window_tree_host_ozone.h" 5 #include "ui/aura/window_tree_host_ozone.h"
6 6
7 #include "ui/aura/window_event_dispatcher.h" 7 #include "ui/aura/window_event_dispatcher.h"
8 #include "ui/ozone/public/ozone_platform.h" 8 #include "ui/ozone/public/ozone_platform.h"
9 #include "ui/platform_window/platform_window.h" 9 #include "ui/platform_window/platform_window.h"
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void WindowTreeHostOzone::SetBounds(const gfx::Rect& bounds) { 80 void WindowTreeHostOzone::SetBounds(const gfx::Rect& bounds) {
81 platform_window_->SetBounds(bounds); 81 platform_window_->SetBounds(bounds);
82 } 82 }
83 83
84 gfx::Point WindowTreeHostOzone::GetLocationOnNativeScreen() const { 84 gfx::Point WindowTreeHostOzone::GetLocationOnNativeScreen() const {
85 return platform_window_->GetBounds().origin(); 85 return platform_window_->GetBounds().origin();
86 } 86 }
87 87
88 void WindowTreeHostOzone::SetCapture() { 88 void WindowTreeHostOzone::SetCapture() {
89 platform_window_->SetCapture(); 89 //platform_window_->SetCapture();
pkotwicz 2014/12/08 20:05:18 I have commented this out to demonstrate that nati
90 } 90 }
91 91
92 void WindowTreeHostOzone::ReleaseCapture() { 92 void WindowTreeHostOzone::ReleaseCapture() {
93 platform_window_->ReleaseCapture(); 93 //platform_window_->ReleaseCapture();
94 } 94 }
95 95
96 void WindowTreeHostOzone::SetCursorNative(gfx::NativeCursor cursor) { 96 void WindowTreeHostOzone::SetCursorNative(gfx::NativeCursor cursor) {
97 if (cursor == current_cursor_) 97 if (cursor == current_cursor_)
98 return; 98 return;
99 current_cursor_ = cursor; 99 current_cursor_ = cursor;
100 platform_window_->SetCursor(cursor.platform()); 100 platform_window_->SetCursor(cursor.platform());
101 } 101 }
102 102
103 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { 103 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) {
(...skipping 13 matching lines...) Expand all
117 return new WindowTreeHostOzone(bounds); 117 return new WindowTreeHostOzone(bounds);
118 } 118 }
119 119
120 // static 120 // static
121 gfx::Size WindowTreeHost::GetNativeScreenSize() { 121 gfx::Size WindowTreeHost::GetNativeScreenSize() {
122 NOTIMPLEMENTED(); 122 NOTIMPLEMENTED();
123 return gfx::Size(); 123 return gfx::Size();
124 } 124 }
125 125
126 } // namespace aura 126 } // namespace aura
OLDNEW
« no previous file with comments | « ash/wm/toplevel_window_event_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698