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

Side by Side Diff: ui/views/corewm/capture_controller.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/corewm/base_focus_rules.cc ('k') | ui/views/corewm/capture_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/views/corewm/base_focus_rules.cc ('k') | ui/views/corewm/capture_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698