OLD | NEW |
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/widget/desktop_capture_client.h" | 5 #include "ui/views/widget/desktop_capture_client.h" |
6 | 6 |
7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/root_window.h" |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 23 matching lines...) Expand all Loading... |
34 void DesktopCaptureClient::ReleaseCapture(aura::Window* window) { | 34 void DesktopCaptureClient::ReleaseCapture(aura::Window* window) { |
35 if (capture_window_ != window) | 35 if (capture_window_ != window) |
36 return; | 36 return; |
37 SetCapture(NULL); | 37 SetCapture(NULL); |
38 } | 38 } |
39 | 39 |
40 aura::Window* DesktopCaptureClient::GetCaptureWindow() { | 40 aura::Window* DesktopCaptureClient::GetCaptureWindow() { |
41 return capture_window_; | 41 return capture_window_; |
42 } | 42 } |
43 | 43 |
44 } // namespace views | 44 } // namespace views |
OLD | NEW |