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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_capture_client.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/widget/desktop_aura/desktop_capture_client.h" 5 #include "ui/views/widget/desktop_aura/desktop_capture_client.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 11
12 // static 12 // static
13 DesktopCaptureClient::CaptureClients* 13 DesktopCaptureClient::CaptureClients*
14 DesktopCaptureClient::capture_clients_ = NULL; 14 DesktopCaptureClient::capture_clients_ = NULL;
15 15
16 DesktopCaptureClient::DesktopCaptureClient(aura::Window* root) 16 DesktopCaptureClient::DesktopCaptureClient(aura::Window* root)
17 : root_(root), 17 : root_(root),
18 capture_window_(NULL) { 18 capture_window_(NULL) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 aura::Window* DesktopCaptureClient::GetGlobalCaptureWindow() { 87 aura::Window* DesktopCaptureClient::GetGlobalCaptureWindow() {
88 for (CaptureClients::iterator i = capture_clients_->begin(); 88 for (CaptureClients::iterator i = capture_clients_->begin();
89 i != capture_clients_->end(); ++i) { 89 i != capture_clients_->end(); ++i) {
90 if ((*i)->capture_window_) 90 if ((*i)->capture_window_)
91 return (*i)->capture_window_; 91 return (*i)->capture_window_;
92 } 92 }
93 return NULL; 93 return NULL;
94 } 94 }
95 95
96 } // namespace views 96 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_cursor_loader_updater_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698