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/views/corewm/capture_controller.h" | 5 #include "ui/views/corewm/capture_controller.h" |
6 | 6 |
7 #include "ui/aura/root_window.h" | |
8 #include "ui/aura/window.h" | 7 #include "ui/aura/window.h" |
| 8 #include "ui/aura/window_event_dispatcher.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 namespace corewm { | 11 namespace corewm { |
12 | 12 |
13 //////////////////////////////////////////////////////////////////////////////// | 13 //////////////////////////////////////////////////////////////////////////////// |
14 // CaptureController, public: | 14 // CaptureController, public: |
15 | 15 |
16 void CaptureController::Attach(aura::Window* root) { | 16 void CaptureController::Attach(aura::Window* root) { |
17 DCHECK_EQ(0u, root_windows_.count(root)); | 17 DCHECK_EQ(0u, root_windows_.count(root)); |
18 root_windows_.insert(root); | 18 root_windows_.insert(root); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 capture_controller_->Detach(root_window_); | 136 capture_controller_->Detach(root_window_); |
137 if (!capture_controller_->is_active()) { | 137 if (!capture_controller_->is_active()) { |
138 delete capture_controller_; | 138 delete capture_controller_; |
139 capture_controller_ = NULL; | 139 capture_controller_ = NULL; |
140 } | 140 } |
141 root_window_ = NULL; | 141 root_window_ = NULL; |
142 } | 142 } |
143 | 143 |
144 } // namespace corewm | 144 } // namespace corewm |
145 } // namespace views | 145 } // namespace views |
OLD | NEW |