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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // capture. This behavior is necessitated by Windows occassionally delivering | 31 // capture. This behavior is necessitated by Windows occassionally delivering |
32 // mouse events to a window other than the capture window and expecting that | 32 // mouse events to a window other than the capture window and expecting that |
33 // window to get the event. If we shared the capture window on the desktop this | 33 // window to get the event. If we shared the capture window on the desktop this |
34 // behavior would not be possible. | 34 // behavior would not be possible. |
35 class VIEWS_EXPORT DesktopCaptureClient : public aura::client::CaptureClient { | 35 class VIEWS_EXPORT DesktopCaptureClient : public aura::client::CaptureClient { |
36 public: | 36 public: |
37 explicit DesktopCaptureClient(aura::Window* root); | 37 explicit DesktopCaptureClient(aura::Window* root); |
38 virtual ~DesktopCaptureClient(); | 38 virtual ~DesktopCaptureClient(); |
39 | 39 |
40 // Overridden from aura::client::CaptureClient: | 40 // Overridden from aura::client::CaptureClient: |
41 virtual void SetCapture(aura::Window* window) OVERRIDE; | 41 virtual void SetCapture(aura::Window* window) override; |
42 virtual void ReleaseCapture(aura::Window* window) OVERRIDE; | 42 virtual void ReleaseCapture(aura::Window* window) override; |
43 virtual aura::Window* GetCaptureWindow() OVERRIDE; | 43 virtual aura::Window* GetCaptureWindow() override; |
44 virtual aura::Window* GetGlobalCaptureWindow() OVERRIDE; | 44 virtual aura::Window* GetGlobalCaptureWindow() override; |
45 | 45 |
46 private: | 46 private: |
47 typedef std::set<DesktopCaptureClient*> CaptureClients; | 47 typedef std::set<DesktopCaptureClient*> CaptureClients; |
48 | 48 |
49 aura::Window* root_; | 49 aura::Window* root_; |
50 aura::Window* capture_window_; | 50 aura::Window* capture_window_; |
51 | 51 |
52 // Set of DesktopCaptureClients. | 52 // Set of DesktopCaptureClients. |
53 static CaptureClients* capture_clients_; | 53 static CaptureClients* capture_clients_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient); | 55 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace views | 58 } // namespace views |
59 | 59 |
60 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ | 60 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CAPTURE_CLIENT_H_ |
OLD | NEW |