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

Unified Diff: ui/aura/root_window.cc

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make sure we have a valid system location Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 57b96684bd41fa2872f5ac1ea2fbfa05bda83ffa..dc6f6244ddb136b1b6c5a083a76b4829bde435d0 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -180,6 +180,10 @@ void RootWindow::ShowRootWindow() {
host_->Show();
}
+void RootWindow::HideRootWindow() {
+ host_->Hide();
+}
+
RootWindowHostDelegate* RootWindow::AsRootWindowHostDelegate() {
return this;
}
@@ -522,6 +526,7 @@ void RootWindow::UpdateCapture(Window* old_capture,
// Send a capture changed event with bogus location data.
ui::MouseEvent event(ui::ET_MOUSE_CAPTURE_CHANGED, gfx::Point(),
gfx::Point(), 0);
+
ProcessMouseEvent(old_capture, &event);
old_capture->delegate()->OnCaptureLost();
@@ -915,6 +920,11 @@ void RootWindow::OnHostPaint() {
Draw();
}
+void RootWindow::OnHostMoved(const gfx::Point& origin) {
+ FOR_EACH_OBSERVER(RootWindowObserver, observers_,
+ OnRootWindowMoved(this, origin));
+}
+
void RootWindow::OnHostResized(const gfx::Size& size) {
DispatchHeldMouseMove();
// The compositor should have the same size as the native root window host.
@@ -1033,6 +1043,7 @@ void RootWindow::SynthesizeMouseMoveEvent() {
orig_mouse_location,
orig_mouse_location,
ui::EF_IS_SYNTHESIZED);
+ event.set_system_location(Env::GetInstance()->last_mouse_location());
OnHostMouseEvent(&event);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698