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

Unified Diff: chrome/browser/ui/views/ash/window_manager_extension.h

Issue 10803037: [WIP] ash/extensions: Add experimental extension support for window-management in ash. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-152100 Created 8 years, 4 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
Index: chrome/browser/ui/views/ash/window_manager_extension.h
diff --git a/chrome/browser/ui/views/ash/window_manager_extension.h b/chrome/browser/ui/views/ash/window_manager_extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..f94568cee1a9a2eba35ddc3fbfe0869f56f87aa0
--- /dev/null
+++ b/chrome/browser/ui/views/ash/window_manager_extension.h
@@ -0,0 +1,32 @@
+// 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 CHROME_BROWSER_UI_VIEWS_ASH_WINDOW_MANAGER_EXTENSION_H_
+#define CHROME_BROWSER_UI_VIEWS_ASH_WINDOW_MANAGER_EXTENSION_H_
+
+#include <map>
+
+#include "ash/wm/window_manager_extension.h"
+
+class WindowManagerExtension : public ash::WindowManagerExtensionDelegate {
+ public:
+ WindowManagerExtension();
+
+ virtual ~WindowManagerExtension();
+
+ private:
+ void DispatchEventForWindow(const aura::Window* window,
+ const char event_name[]);
+
+ // Overridden from ash::WindowManagerExtensionDelegate.
+ virtual void OnWindowCreated(const aura::Window* window) OVERRIDE;
+ virtual void OnWindowClosed(const aura::Window* window) OVERRIDE;
+ virtual void OnWindowHidden(const aura::Window* window) OVERRIDE;
+ virtual void OnWindowShown(const aura::Window* window) OVERRIDE;
+ virtual void OnActiveWindowChanged(const aura::Window* window) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowManagerExtension);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_ASH_WINDOW_MANAGER_EXTENSION_H_
« no previous file with comments | « chrome/browser/ui/views/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/views/ash/window_manager_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698