OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/root_window.h" | 5 #include "ui/aura/root_window.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 184 } |
185 | 185 |
186 void RootWindow::ShowRootWindow() { | 186 void RootWindow::ShowRootWindow() { |
187 host_->Show(); | 187 host_->Show(); |
188 } | 188 } |
189 | 189 |
190 void RootWindow::HideRootWindow() { | 190 void RootWindow::HideRootWindow() { |
191 host_->Hide(); | 191 host_->Hide(); |
192 } | 192 } |
193 | 193 |
| 194 void RootWindow::StopListeningEvents() { |
| 195 host_->StopListeningEvents(); |
| 196 // discard synthesize event request as well. |
| 197 synthesize_mouse_move_ = false; |
| 198 } |
| 199 |
194 RootWindowHostDelegate* RootWindow::AsRootWindowHostDelegate() { | 200 RootWindowHostDelegate* RootWindow::AsRootWindowHostDelegate() { |
195 return this; | 201 return this; |
196 } | 202 } |
197 | 203 |
198 void RootWindow::SetHostSize(const gfx::Size& size_in_pixel) { | 204 void RootWindow::SetHostSize(const gfx::Size& size_in_pixel) { |
199 DispatchHeldMouseMove(); | 205 DispatchHeldMouseMove(); |
200 gfx::Rect bounds = host_->GetBounds(); | 206 gfx::Rect bounds = host_->GetBounds(); |
201 bounds.set_size(size_in_pixel); | 207 bounds.set_size(size_in_pixel); |
202 host_->SetBounds(bounds); | 208 host_->SetBounds(bounds); |
203 | 209 |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 void RootWindow::UnlockCompositor() { | 1083 void RootWindow::UnlockCompositor() { |
1078 DCHECK(compositor_lock_); | 1084 DCHECK(compositor_lock_); |
1079 compositor_lock_ = NULL; | 1085 compositor_lock_ = NULL; |
1080 if (draw_on_compositor_unlock_) { | 1086 if (draw_on_compositor_unlock_) { |
1081 draw_on_compositor_unlock_ = false; | 1087 draw_on_compositor_unlock_ = false; |
1082 ScheduleDraw(); | 1088 ScheduleDraw(); |
1083 } | 1089 } |
1084 } | 1090 } |
1085 | 1091 |
1086 } // namespace aura | 1092 } // namespace aura |
OLD | NEW |