blob: ab3e849b0bbe6e22b82879d82bc57feeb10e820f (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
// 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_DESKTOP_DESKTOP_STACKING_CLIENT_H_
#define UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_
#include "ui/aura/client/stacking_client.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "ui/views/views_export.h"
namespace views {
namespace corewm {
class CompoundEventFilter;
class InputMethodEventFilter;
}
}
namespace aura {
class DesktopActivationClient;
class FocusManager;
class RootWindow;
class Window;
namespace client {
class DefaultCaptureClient;
}
// A stacking client for the desktop; always sets the default parent to the
// RootWindow of the passed in Window.
class VIEWS_EXPORT DesktopStackingClient : public client::StackingClient {
public:
DesktopStackingClient();
virtual ~DesktopStackingClient();
// Overridden from client::StackingClient:
virtual Window* GetDefaultParent(Window* window,
const gfx::Rect& bounds) OVERRIDE;
private:
void CreateNULLParent();
// Windows with NULL parents are parented to this.
scoped_ptr<RootWindow> null_parent_;
// All the member variables below are necessary for the NULL parent root
// window to function.
scoped_ptr<FocusManager> focus_manager_;
// Depends on focus_manager_.
scoped_ptr<DesktopActivationClient> activation_client_;
scoped_ptr<views::corewm::InputMethodEventFilter> input_method_filter_;
views::corewm::CompoundEventFilter* window_event_filter_;
scoped_ptr<client::DefaultCaptureClient> capture_client_;
DISALLOW_COPY_AND_ASSIGN(DesktopStackingClient);
};
} // namespace aura
#endif // UI_AURA_DESKTOP_DESKTOP_STACKING_CLIENT_H_
|