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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_capture_client.cc

Issue 196383014: Remove window/host accessors from WED; IWYU for WTH (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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/window.h" 7 #include "ui/aura/window.h"
8 #include "ui/aura/window_event_dispatcher.h" 8 #include "ui/aura/window_event_dispatcher.h"
9 #include "ui/aura/window_tree_host.h"
9 10
10 namespace views { 11 namespace views {
11 12
12 // static 13 // static
13 DesktopCaptureClient::CaptureClients* 14 DesktopCaptureClient::CaptureClients*
14 DesktopCaptureClient::capture_clients_ = NULL; 15 DesktopCaptureClient::capture_clients_ = NULL;
15 16
16 DesktopCaptureClient::DesktopCaptureClient(aura::Window* root) 17 DesktopCaptureClient::DesktopCaptureClient(aura::Window* root)
17 : root_(root), 18 : root_(root),
18 capture_window_(NULL) { 19 capture_window_(NULL) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 aura::Window* DesktopCaptureClient::GetGlobalCaptureWindow() { 89 aura::Window* DesktopCaptureClient::GetGlobalCaptureWindow() {
89 for (CaptureClients::iterator i = capture_clients_->begin(); 90 for (CaptureClients::iterator i = capture_clients_->begin();
90 i != capture_clients_->end(); ++i) { 91 i != capture_clients_->end(); ++i) {
91 if ((*i)->capture_window_) 92 if ((*i)->capture_window_)
92 return (*i)->capture_window_; 93 return (*i)->capture_window_;
93 } 94 }
94 return NULL; 95 return NULL;
95 } 96 }
96 97
97 } // namespace views 98 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/event_utils_aura.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698