| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 194 } |
| 195 | 195 |
| 196 void RootWindow::ShowRootWindow() { | 196 void RootWindow::ShowRootWindow() { |
| 197 host_->Show(); | 197 host_->Show(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void RootWindow::HideRootWindow() { | 200 void RootWindow::HideRootWindow() { |
| 201 host_->Hide(); | 201 host_->Hide(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void RootWindow::PrepareForShutdown() { |
| 205 host_->PrepareForShutdown(); |
| 206 // discard synthesize event request as well. |
| 207 synthesize_mouse_move_ = false; |
| 208 } |
| 209 |
| 204 RootWindowHostDelegate* RootWindow::AsRootWindowHostDelegate() { | 210 RootWindowHostDelegate* RootWindow::AsRootWindowHostDelegate() { |
| 205 return this; | 211 return this; |
| 206 } | 212 } |
| 207 | 213 |
| 208 void RootWindow::SetHostSize(const gfx::Size& size_in_pixel) { | 214 void RootWindow::SetHostSize(const gfx::Size& size_in_pixel) { |
| 209 DispatchHeldMouseMove(); | 215 DispatchHeldMouseMove(); |
| 210 gfx::Rect bounds = host_->GetBounds(); | 216 gfx::Rect bounds = host_->GetBounds(); |
| 211 bounds.set_size(size_in_pixel); | 217 bounds.set_size(size_in_pixel); |
| 212 host_->SetBounds(bounds); | 218 host_->SetBounds(bounds); |
| 213 | 219 |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 void RootWindow::UnlockCompositor() { | 1093 void RootWindow::UnlockCompositor() { |
| 1088 DCHECK(compositor_lock_); | 1094 DCHECK(compositor_lock_); |
| 1089 compositor_lock_ = NULL; | 1095 compositor_lock_ = NULL; |
| 1090 if (draw_on_compositor_unlock_) { | 1096 if (draw_on_compositor_unlock_) { |
| 1091 draw_on_compositor_unlock_ = false; | 1097 draw_on_compositor_unlock_ = false; |
| 1092 ScheduleDraw(); | 1098 ScheduleDraw(); |
| 1093 } | 1099 } |
| 1094 } | 1100 } |
| 1095 | 1101 |
| 1096 } // namespace aura | 1102 } // namespace aura |
| OLD | NEW |