summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_stacking_client_ash.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 21:30:57 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 21:30:57 +0000
commit950dcc7ef6f3295642bf69ebc9f363fbcfcfdd7f (patch)
treecce51286851d317a4605ed04ec953e2f24aee095 /content/shell/shell_stacking_client_ash.h
parent2c2c54fdf157e8bca5cdbe485a3b3848fa4741fa (diff)
downloadchromium_src-950dcc7ef6f3295642bf69ebc9f363fbcfcfdd7f.zip
chromium_src-950dcc7ef6f3295642bf69ebc9f363fbcfcfdd7f.tar.gz
chromium_src-950dcc7ef6f3295642bf69ebc9f363fbcfcfdd7f.tar.bz2
Followup to r164359: Rename content/shell/shell_stacking_client_{chromeos => ash}.{cc,h}
BUG=146077, 151934 Review URL: https://chromiumcodereview.appspot.com/11318016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_stacking_client_ash.h')
-rw-r--r--content/shell/shell_stacking_client_ash.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/content/shell/shell_stacking_client_ash.h b/content/shell/shell_stacking_client_ash.h
new file mode 100644
index 0000000..c059044
--- /dev/null
+++ b/content/shell/shell_stacking_client_ash.h
@@ -0,0 +1,58 @@
+// 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 CONTENT_SHELL_SHELL_STACKING_CLIENT_ASH_H_
+#define CONTENT_SHELL_SHELL_STACKING_CLIENT_ASH_H_
+
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/aura/client/stacking_client.h"
+
+namespace aura {
+class RootWindow;
+class Window;
+namespace shared {
+class CompoundEventFilter;
+class InputMethodEventFilter;
+class RootWindowCaptureClient;
+}
+namespace test {
+class TestActivationClient;
+}
+}
+
+namespace gfx {
+class Rect;
+}
+
+namespace content {
+
+// Creates a minimal environment for running the shell. We can't pull in all of
+// ash here, but we can create attach several of the same things we'd find in
+// the ash parts of the code.
+class ShellStackingClientAsh : public aura::client::StackingClient {
+ public:
+ ShellStackingClientAsh();
+ virtual ~ShellStackingClientAsh();
+
+ // Overridden from client::StackingClient:
+ virtual aura::Window* GetDefaultParent(aura::Window* window,
+ const gfx::Rect& bounds) OVERRIDE;
+
+ private:
+ scoped_ptr<aura::RootWindow> root_window_;
+
+ // Owned by RootWindow
+ aura::shared::CompoundEventFilter* root_window_event_filter_;
+
+ scoped_ptr<aura::shared::RootWindowCaptureClient> capture_client_;
+ scoped_ptr<aura::shared::InputMethodEventFilter> input_method_filter_;
+ scoped_ptr<aura::test::TestActivationClient> test_activation_client_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellStackingClientAsh);
+};
+
+} // namespace content;
+
+#endif // CONTENT_SHELL_SHELL_STACKING_CLIENT_ASH_H_