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