OLD | NEW |
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 Loading... |
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 |
OLD | NEW |