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

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: Cleanup 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
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index f53cfb4ffaf534a81dbab3e45ce7b47fddd557e3..e12e36c1d7063c92f52da8760b06fda9cc9a4cba 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;
}
@@ -528,6 +532,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();
@@ -921,6 +926,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.
@@ -1039,6 +1049,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
}
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698