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