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

Side by Side Diff: ash/root_window_controller.h

Issue 10909043: Cancel drag if display configuration changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/display/multi_display_manager_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/display/multi_display_manager_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698