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

Side by Side Diff: ui/aura_shell/shell.h

Issue 8774029: Delete desktop/shell instance correctly when chrome is shutting down (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: close windows before observers are destroyed. Created 9 years 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 | « ui/aura_shell/shelf_layout_controller.cc ('k') | ui/aura_shell/shell.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) 2011 The Chromium Authors. All rights reserved. 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 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 UI_AURA_SHELL_SHELL_H_ 5 #ifndef UI_AURA_SHELL_SHELL_H_
6 #define UI_AURA_SHELL_SHELL_H_ 6 #define UI_AURA_SHELL_SHELL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes 47 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes
48 // ownership of the Shell. 48 // ownership of the Shell.
49 49
50 // A shell must be explicitly created so that it can call |Init()| with the 50 // A shell must be explicitly created so that it can call |Init()| with the
51 // delegate set. |delegate| can be NULL (if not required for initialization). 51 // delegate set. |delegate| can be NULL (if not required for initialization).
52 static Shell* CreateInstance(ShellDelegate* delegate); 52 static Shell* CreateInstance(ShellDelegate* delegate);
53 53
54 // Should never be called before |CreateInstance()|. 54 // Should never be called before |CreateInstance()|.
55 static Shell* GetInstance(); 55 static Shell* GetInstance();
56 56
57 static void DeleteInstanceForTesting(); 57 static void DeleteInstance();
58 58
59 aura::Window* GetContainer(int container_id); 59 aura::Window* GetContainer(int container_id);
60 const aura::Window* GetContainer(int container_id) const; 60 const aura::Window* GetContainer(int container_id) const;
61 61
62 // Adds or removes |filter| from the DesktopEventFilter. 62 // Adds or removes |filter| from the DesktopEventFilter.
63 void AddDesktopEventFilter(aura::EventFilter* filter); 63 void AddDesktopEventFilter(aura::EventFilter* filter);
64 void RemoveDesktopEventFilter(aura::EventFilter* filter); 64 void RemoveDesktopEventFilter(aura::EventFilter* filter);
65 65
66 // Toggles between overview mode and normal mode. 66 // Toggles between overview mode and normal mode.
67 void ToggleOverview(); 67 void ToggleOverview();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_; 119 scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_;
120 120
121 scoped_ptr<ShellTooltipManager> tooltip_manager_; 121 scoped_ptr<ShellTooltipManager> tooltip_manager_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(Shell); 123 DISALLOW_COPY_AND_ASSIGN(Shell);
124 }; 124 };
125 125
126 } // namespace aura_shell 126 } // namespace aura_shell
127 127
128 #endif // UI_AURA_SHELL_SHELL_H_ 128 #endif // UI_AURA_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/shelf_layout_controller.cc ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698