Chromium Code Reviews| 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 #ifndef UI_AURA_CLIENT_CAPTURE_CLIENT_H_ | 5 #ifndef UI_AURA_CLIENT_CAPTURE_CLIENT_H_ |
| 6 #define UI_AURA_CLIENT_CAPTURE_CLIENT_H_ | 6 #define UI_AURA_CLIENT_CAPTURE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
| 9 #include "ui/aura/window.h" | |
| 9 | 10 |
| 10 namespace aura { | 11 namespace aura { |
| 11 class Window; | 12 class Window; |
| 12 | 13 |
| 13 namespace client { | 14 namespace client { |
| 14 | 15 |
| 15 class CaptureClientObserver; | 16 class CaptureClientObserver; |
| 16 | 17 |
| 17 // An interface implemented by an object that manages input capture. | 18 // An interface implemented by an object that manages input capture. |
| 18 class AURA_EXPORT CaptureClient { | 19 class AURA_EXPORT CaptureClient { |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 42 | 43 |
| 43 // Sets/Gets the capture client on the root Window. | 44 // Sets/Gets the capture client on the root Window. |
| 44 AURA_EXPORT void SetCaptureClient(Window* root_window, | 45 AURA_EXPORT void SetCaptureClient(Window* root_window, |
| 45 CaptureClient* client); | 46 CaptureClient* client); |
| 46 AURA_EXPORT CaptureClient* GetCaptureClient(Window* root_window); | 47 AURA_EXPORT CaptureClient* GetCaptureClient(Window* root_window); |
| 47 | 48 |
| 48 // A utility function to get the current capture window. Returns NULL | 49 // A utility function to get the current capture window. Returns NULL |
| 49 // if the window doesn't have a root window, or there is no capture window. | 50 // if the window doesn't have a root window, or there is no capture window. |
| 50 AURA_EXPORT Window* GetCaptureWindow(Window* window); | 51 AURA_EXPORT Window* GetCaptureWindow(Window* window); |
| 51 | 52 |
| 53 // The capture client is stored on the window using this property. | |
| 54 AURA_EXPORT extern const WindowProperty<CaptureClient*>* const | |
| 55 kRootWindowCaptureClientKey; | |
|
sadrul
2017/01/21 03:23:37
Can you move this into aura_constants.h? since the
riajiang
2017/01/24 19:36:21
The key is not needed anymore so deleted here.
| |
| 56 | |
| 52 } // namespace client | 57 } // namespace client |
| 53 } // namespace aura | 58 } // namespace aura |
| 54 | 59 |
| 55 #endif // UI_AURA_CLIENT_CAPTURE_CLIENT_H_ | 60 #endif // UI_AURA_CLIENT_CAPTURE_CLIENT_H_ |
| OLD | NEW |