| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 internal::ScreenDimmer* screen_dimmer() { | 53 internal::ScreenDimmer* screen_dimmer() { |
| 54 return screen_dimmer_.get(); | 54 return screen_dimmer_.get(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 aura::Window* GetContainer(int container_id); | 57 aura::Window* GetContainer(int container_id); |
| 58 | 58 |
| 59 void CreateContainers(); | 59 void CreateContainers(); |
| 60 void InitLayoutManagers(); | 60 void InitLayoutManagers(); |
| 61 | 61 |
| 62 // Deletes associated objects and clears the state, but doesn't delete |
| 63 // the root window yet. This is used to delete a secondary displays' |
| 64 // root window safely when the display disconnect signal is received, |
| 65 // which may come while we're in the nested message loop. |
| 66 void Shutdown(); |
| 67 |
| 62 // Deletes all child windows and performs necessary cleanup. | 68 // Deletes all child windows and performs necessary cleanup. |
| 63 void CloseChildWindows(); | 69 void CloseChildWindows(); |
| 64 | 70 |
| 65 // Returns true if the workspace has a maximized or fullscreen window. | 71 // Returns true if the workspace has a maximized or fullscreen window. |
| 66 bool IsInMaximizedMode() const; | 72 bool IsInMaximizedMode() const; |
| 67 | 73 |
| 68 // Moves child windows to |dest|. | 74 // Moves child windows to |dest|. |
| 69 void MoveWindowsTo(aura::RootWindow* dest); | 75 void MoveWindowsTo(aura::RootWindow* dest); |
| 70 | 76 |
| 71 private: | 77 private: |
| 72 scoped_ptr<aura::RootWindow> root_window_; | 78 scoped_ptr<aura::RootWindow> root_window_; |
| 73 internal::RootWindowLayoutManager* root_window_layout_; | 79 internal::RootWindowLayoutManager* root_window_layout_; |
| 74 | 80 |
| 75 // An event filter that pre-handles all key events to send them to an IME. | 81 // An event filter that pre-handles all key events to send them to an IME. |
| 76 scoped_ptr<internal::EventClientImpl> event_client_; | 82 scoped_ptr<internal::EventClientImpl> event_client_; |
| 77 scoped_ptr<internal::ScreenDimmer> screen_dimmer_; | 83 scoped_ptr<internal::ScreenDimmer> screen_dimmer_; |
| 78 scoped_ptr<internal::WorkspaceController> workspace_controller_; | 84 scoped_ptr<internal::WorkspaceController> workspace_controller_; |
| 79 | 85 |
| 80 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 86 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 81 }; | 87 }; |
| 82 | 88 |
| 83 } // namespace internal | 89 } // namespace internal |
| 84 } // ash | 90 } // ash |
| 85 | 91 |
| 86 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 92 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |