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

Side by Side Diff: ui/aura/root_window.h

Issue 10825191: Allow closing root window, or pressing the power button to shutdown ash_shell, and chrome /w chrome… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed removing this somehow Created 8 years, 4 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 | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | ui/aura/root_window.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 UI_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Invoked when |window|'s tranfrom has changed. |contained_mouse| 160 // Invoked when |window|'s tranfrom has changed. |contained_mouse|
161 // indicates if the bounds before change contained the 161 // indicates if the bounds before change contained the
162 // |last_moust_location()|. 162 // |last_moust_location()|.
163 void OnWindowTransformed(Window* window, bool contained_mouse); 163 void OnWindowTransformed(Window* window, bool contained_mouse);
164 164
165 // Invoked when the keyboard mapping (in X11 terms: the mapping between 165 // Invoked when the keyboard mapping (in X11 terms: the mapping between
166 // keycodes and keysyms) has changed. 166 // keycodes and keysyms) has changed.
167 void OnKeyboardMappingChanged(); 167 void OnKeyboardMappingChanged();
168 168
169 // The system windowing system has sent a request that we close our window. 169 // The system windowing system has sent a request that we close our window.
170 void OnRootWindowHostClosed(); 170 void OnRootWindowHostCloseRequested();
171 171
172 // Add/remove observer. There is no need to remove the observer if 172 // Add/remove observer. There is no need to remove the observer if
173 // the root window is being deleted. In particular, you SHOULD NOT remove 173 // the root window is being deleted. In particular, you SHOULD NOT remove
174 // in |WindowObserver::OnWindowDestroying| of the observer observing 174 // in |WindowObserver::OnWindowDestroying| of the observer observing
175 // the root window because it is too late to remove it. 175 // the root window because it is too late to remove it.
176 void AddRootWindowObserver(RootWindowObserver* observer); 176 void AddRootWindowObserver(RootWindowObserver* observer);
177 void RemoveRootWindowObserver(RootWindowObserver* observer); 177 void RemoveRootWindowObserver(RootWindowObserver* observer);
178 178
179 // Posts |native_event| to the platform's event queue. 179 // Posts |native_event| to the platform's event queue.
180 void PostNativeEvent(const base::NativeEvent& native_event); 180 void PostNativeEvent(const base::NativeEvent& native_event);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 CompositorLock* compositor_lock_; 399 CompositorLock* compositor_lock_;
400 bool draw_on_compositor_unlock_; 400 bool draw_on_compositor_unlock_;
401 401
402 DISALLOW_COPY_AND_ASSIGN(RootWindow); 402 DISALLOW_COPY_AND_ASSIGN(RootWindow);
403 }; 403 };
404 404
405 } // namespace aura 405 } // namespace aura
406 406
407 #endif // UI_AURA_ROOT_WINDOW_H_ 407 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698