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

Unified Diff: ui/aura_shell/show_state_controller.h

Issue 8400063: Move maximize/fullscreen/restore to shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OVERRIDE from .cc Created 9 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 | « ui/aura_shell/property_util.cc ('k') | ui/aura_shell/show_state_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/show_state_controller.h
diff --git a/ui/aura_shell/show_state_controller.h b/ui/aura_shell/show_state_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd5fbea94ee866b16948cc9984ba849e39ecbd5f
--- /dev/null
+++ b/ui/aura_shell/show_state_controller.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2011 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_SHELL_SHOW_STATE_CONTROLLER_H_
+#define UI_AURA_SHELL_SHOW_STATE_CONTROLLER_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/aura/window_observer.h"
+
+namespace aura {
+class Window;
+}
+
+namespace aura_shell {
+namespace internal {
+
+class DefaultContainerLayoutManager;
+
+// ShowStateController controls the window's bounds when
+// the window's show state property has changed.
+class ShowStateController : public aura::WindowObserver {
+public:
+ explicit ShowStateController(DefaultContainerLayoutManager* layout_manager);
+ virtual ~ShowStateController();
+
+ // Invoked when window proparty has changed.
+ virtual void OnPropertyChanged(aura::Window* window,
+ const char* name,
+ void* old) OVERRIDE;
+
+ private:
+ // LayoutManager that downs this ShowStateController.
+ DefaultContainerLayoutManager* layout_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShowStateController);
+};
+
+} // namepsace aura_shell
+} // namepsace internal
+
+#endif // UI_AURA_SHELL_SHOW_STATE_CONTROLLER_H_
« no previous file with comments | « ui/aura_shell/property_util.cc ('k') | ui/aura_shell/show_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698