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

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

Issue 10824364: [NOT FOR REVIEW] ash: Add some implementation for the window management extension API. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
« no previous file with comments | « chrome/browser/extensions/api/wm/wm_utils.cc ('k') | chrome/browser/ui/ash/window_manager_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/window_manager_extension.h
diff --git a/chrome/browser/ui/ash/window_manager_extension.h b/chrome/browser/ui/ash/window_manager_extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..55f6a178e6ffb5e536e6f1c5d7ff44c544eb4ff5
--- /dev/null
+++ b/chrome/browser/ui/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_ASH_WINDOW_MANAGER_EXTENSION_H_
+#define CHROME_BROWSER_UI_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(aura::Window* window,
+ const char event_name[]);
+
+ // Overridden from ash::WindowManagerExtensionDelegate.
+ virtual void OnWindowCreated(aura::Window* window) OVERRIDE;
+ virtual void OnWindowClosed(aura::Window* window) OVERRIDE;
+ virtual void OnWindowHidden(aura::Window* window) OVERRIDE;
+ virtual void OnWindowShown(aura::Window* window) OVERRIDE;
+ virtual void OnActiveWindowChanged(aura::Window* window) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowManagerExtension);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_WINDOW_MANAGER_EXTENSION_H_
« no previous file with comments | « chrome/browser/extensions/api/wm/wm_utils.cc ('k') | chrome/browser/ui/ash/window_manager_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698