| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_AURA_SHARED_ROOT_WINDOW_CAPTURE_CLIENT_H_ | |
| 6 #define UI_AURA_SHARED_ROOT_WINDOW_CAPTURE_CLIENT_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "ui/aura/client/capture_client.h" | |
| 11 #include "ui/aura/aura_export.h" | |
| 12 | |
| 13 namespace aura { | |
| 14 class RootWindow; | |
| 15 | |
| 16 namespace shared { | |
| 17 | |
| 18 class AURA_EXPORT RootWindowCaptureClient : public client::CaptureClient { | |
| 19 public: | |
| 20 explicit RootWindowCaptureClient(RootWindow* root_window); | |
| 21 virtual ~RootWindowCaptureClient(); | |
| 22 | |
| 23 // Overridden from client::CaptureClient: | |
| 24 virtual void SetCapture(Window* window) OVERRIDE; | |
| 25 virtual void ReleaseCapture(Window* window) OVERRIDE; | |
| 26 virtual Window* GetCaptureWindow() OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 RootWindow* root_window_; | |
| 30 Window* capture_window_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(RootWindowCaptureClient); | |
| 33 }; | |
| 34 | |
| 35 } // namespace shared | |
| 36 } // namespace aura | |
| 37 | |
| 38 #endif // UI_AURA_SHARED_ROOT_WINDOW_CAPTURE_CLIENT_H_ | |
| OLD | NEW |