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

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

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestDesktopDelegate Created 9 years, 2 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
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_WINDOW_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Marks the a portion of window as needing to be painted. 112 // Marks the a portion of window as needing to be painted.
113 void SchedulePaintInRect(const gfx::Rect& rect); 113 void SchedulePaintInRect(const gfx::Rect& rect);
114 114
115 // Sets the contents of the window. 115 // Sets the contents of the window.
116 void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin); 116 void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin);
117 117
118 // Sets the parent window of the window. If NULL, the window is parented to 118 // Sets the parent window of the window. If NULL, the window is parented to
119 // the desktop's window. 119 // the desktop's window.
120 void SetParent(Window* parent); 120 void SetParent(Window* parent);
121 Window* parent() { return parent_; } 121 Window* parent() { return parent_; }
122 const Window* parent() const { return parent_; }
122 123
123 // Move the specified child of this Window to the front of the z-order. 124 // Move the specified child of this Window to the front of the z-order.
124 // TODO(beng): this is (obviously) feeble. 125 // TODO(beng): this is (obviously) feeble.
125 void MoveChildToFront(Window* child); 126 void MoveChildToFront(Window* child);
126 127
127 // Returns true if this window can be activated. 128 // Returns true if this window can be activated.
128 bool CanActivate() const; 129 bool CanActivate() const;
129 130
130 // Tree operations. 131 // Tree operations.
131 // TODO(beng): Child windows are currently not owned by the hierarchy. We 132 // TODO(beng): Child windows are currently not owned by the hierarchy. We
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool HasCapture(); 205 bool HasCapture();
205 206
206 // Returns the first ancestor whose parent window returns true from 207 // Returns the first ancestor whose parent window returns true from
207 // IsToplevelWindowContainer. 208 // IsToplevelWindowContainer.
208 Window* GetToplevelWindow(); 209 Window* GetToplevelWindow();
209 210
210 // Returns an animation configured with the default duration. All animations 211 // Returns an animation configured with the default duration. All animations
211 // should use this. Caller owns returned value. 212 // should use this. Caller owns returned value.
212 static ui::Animation* CreateDefaultAnimation(); 213 static ui::Animation* CreateDefaultAnimation();
213 214
214 protected: 215 protected:
Ben Goodger (Google) 2011/10/13 03:03:39 don't change this
215 // Returns the RootWindow or NULL if we don't yet have a RootWindow. 216 // Returns the RootWindow or NULL if we don't yet have a RootWindow.
216 virtual internal::RootWindow* GetRoot(); 217 virtual internal::RootWindow* GetRoot();
217 218
218 private: 219 private:
219 // Updates the visible state of the layer, but does not make visible-state 220 // Updates the visible state of the layer, but does not make visible-state
220 // specific changes. Called from Show()/Hide(). 221 // specific changes. Called from Show()/Hide().
221 void SetVisible(bool visible); 222 void SetVisible(bool visible);
222 223
223 // Schedules a paint for the Window's entire bounds. 224 // Schedules a paint for the Window's entire bounds.
224 void SchedulePaint(); 225 void SchedulePaint();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // When true, events are not sent to windows behind this one in the z-order, 263 // When true, events are not sent to windows behind this one in the z-order,
263 // provided this window has children. See set_stops_event_propagation(). 264 // provided this window has children. See set_stops_event_propagation().
264 bool stops_event_propagation_; 265 bool stops_event_propagation_;
265 266
266 DISALLOW_COPY_AND_ASSIGN(Window); 267 DISALLOW_COPY_AND_ASSIGN(Window);
267 }; 268 };
268 269
269 } // namespace aura 270 } // namespace aura
270 271
271 #endif // UI_AURA_WINDOW_H_ 272 #endif // UI_AURA_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698