blob: f86485cbf11dccd8705c5a60ff3499ec1907e3a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_AURA_SHARED_ROOT_WINDOW_CAPTURE_CLIENT_H_
#define UI_AURA_SHARED_ROOT_WINDOW_CAPTURE_CLIENT_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/aura_export.h"
namespace aura {
class RootWindow;
namespace shared {
class AURA_EXPORT RootWindowCaptureClient : public client::CaptureClient {
public:
explicit RootWindowCaptureClient(RootWindow* root_window);
virtual ~RootWindowCaptureClient();
// Overridden from client::CaptureClient:
virtual void SetCapture(Window* window) OVERRIDE;
virtual void ReleaseCapture(Window* window) OVERRIDE;
virtual Window* GetCaptureWindow() OVERRIDE;
private:
RootWindow* root_window_;
Window* capture_window_;
DISALLOW_COPY_AND_ASSIGN(RootWindowCaptureClient);
};
} // namespace shared
} // namespace aura
#endif // UI_AURA_SHARED_ROOT_WINDOW_CAPTURE_CLIENT_H_
|