Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: content/shell/browser/shell_aura.h

Issue 26695007: aura: Allow creating content_shell without views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unrevert Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/browser/shell.cc ('k') | content/shell/browser/shell_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_aura.h
diff --git a/content/shell/browser/shell_aura.h b/content/shell/browser/shell_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..cad7a301aa1bf98f3a860b3a9aa37572f7882146
--- /dev/null
+++ b/content/shell/browser/shell_aura.h
@@ -0,0 +1,46 @@
+// Copyright 2013 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_BROWSER_SHELL_AURA_H_
+#define CONTENT_SHELL_BROWSER_SHELL_AURA_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace aura {
+namespace client {
+class DefaultActivationClient;
+class DefaultCaptureClient;
+class FocusClient;
+}
+class RootWindow;
+}
+
+namespace ui {
+class EventHandler;
+}
+
+namespace content {
+
+class ShellAuraPlatformData {
+ public:
+ ShellAuraPlatformData();
+ ~ShellAuraPlatformData();
+
+ void CreateWindow(int width, int height);
+
+ aura::RootWindow* window() { return root_window_.get(); }
+
+ private:
+ scoped_ptr<aura::RootWindow> root_window_;
+ scoped_ptr<aura::client::FocusClient> focus_client_;
+ scoped_ptr<aura::client::DefaultActivationClient> activation_client_;
+ scoped_ptr<aura::client::DefaultCaptureClient> capture_client_;
+ scoped_ptr<ui::EventHandler> ime_filter_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellAuraPlatformData);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_BROWSER_SHELL_AURA_H_
« no previous file with comments | « content/shell/browser/shell.cc ('k') | content/shell/browser/shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698