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

Side by Side 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: addressed comments, property_util Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_SHELL_SHOW_STATE_CONTROLLER_H_
6 #define UI_AURA_SHELL_SHOW_STATE_CONTROLLER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/aura/window_observer.h"
12
13 namespace aura {
14 class Window;
15 }
16
17 namespace aura_shell {
18 namespace internal {
19
20 class DefaultContainerLayoutManager;
21
22 // ShowStateController controls the window's bounds when
23 // the window's show state property has changed.
24 class ShowStateController : public aura::WindowObserver {
25 public:
26 explicit ShowStateController(DefaultContainerLayoutManager* layout_manager);
27 virtual ~ShowStateController();
28
29 // Invoked when window proparty has changed.
30 virtual void OnPropertyChanged(aura::Window* window,
31 const char* name,
32 void* old) OVERRIDE;
33
34 private:
35 // LayoutManager that downs this ShowStateController.
36 DefaultContainerLayoutManager* layout_manager_;
37
38 DISALLOW_COPY_AND_ASSIGN(ShowStateController);
39 };
40
41 } // namepsace aura_shell
42 } // namepsace internal
43
44 #endif // UI_AURA_SHELL_SHOW_STATE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698