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

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

Issue 7903018: More shell content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ui/aura/aura_export.h" 13 #include "ui/aura/aura_export.h"
14 #include "ui/gfx/compositor/layer_delegate.h" 14 #include "ui/gfx/compositor/layer_delegate.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 16
17 class SkCanvas; 17 class SkCanvas;
18 18
19 namespace ui { 19 namespace ui {
20 class Compositor; 20 class Compositor;
21 class Layer; 21 class Layer;
22 } 22 }
23 23
24 namespace aura { 24 namespace aura {
25 25
26 class Desktop; 26 class Desktop;
27 class KeyEvent; 27 class KeyEvent;
28 class LayoutManager;
28 class MouseEvent; 29 class MouseEvent;
29 class WindowDelegate; 30 class WindowDelegate;
30 class WindowManager; 31 class WindowManager;
31 32
32 namespace internal { 33 namespace internal {
33 class FocusManager; 34 class FocusManager;
34 } 35 }
35 36
36 // Aura window implementation. Interesting events are sent to the 37 // Aura window implementation. Interesting events are sent to the
37 // WindowDelegate. 38 // WindowDelegate.
(...skipping 20 matching lines...) Expand all
58 int id() const { return id_; } 59 int id() const { return id_; }
59 void set_id(int id) { id_ = id; } 60 void set_id(int id) { id_ = id; }
60 61
61 ui::Layer* layer() { return layer_.get(); } 62 ui::Layer* layer() { return layer_.get(); }
62 const ui::Layer* layer() const { return layer_.get(); } 63 const ui::Layer* layer() const { return layer_.get(); }
63 64
64 // Changes the visibility of the window. 65 // Changes the visibility of the window.
65 void SetVisibility(Visibility visibility); 66 void SetVisibility(Visibility visibility);
66 Visibility visibility() const { return visibility_; } 67 Visibility visibility() const { return visibility_; }
67 68
69 // Assigns a LayoutManager to size and place child windows.
70 // The Window takes ownership of the LayoutManager.
71 void SetLayoutManager(LayoutManager* layout_manager);
72
68 // Changes the bounds of the window. 73 // Changes the bounds of the window.
69 void SetBounds(const gfx::Rect& bounds, int anim_ms); 74 void SetBounds(const gfx::Rect& bounds, int anim_ms);
70 const gfx::Rect& bounds() const { return bounds_; } 75 const gfx::Rect& bounds() const { return bounds_; }
71 76
72 // Marks the a portion of window as needing to be painted. 77 // Marks the a portion of window as needing to be painted.
73 void SchedulePaintInRect(const gfx::Rect& rect); 78 void SchedulePaintInRect(const gfx::Rect& rect);
74 79
75 // Sets the contents of the window. 80 // Sets the contents of the window.
76 void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin); 81 void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin);
77 82
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // The Window's parent. 153 // The Window's parent.
149 // TODO(beng): Implement NULL-ness for toplevels. 154 // TODO(beng): Implement NULL-ness for toplevels.
150 Window* parent_; 155 Window* parent_;
151 156
152 // Child windows. Topmost is last. 157 // Child windows. Topmost is last.
153 Windows children_; 158 Windows children_;
154 159
155 int id_; 160 int id_;
156 161
157 scoped_ptr<WindowManager> window_manager_; 162 scoped_ptr<WindowManager> window_manager_;
163 scoped_ptr<LayoutManager> layout_manager_;
158 164
159 void* user_data_; 165 void* user_data_;
160 166
161 DISALLOW_COPY_AND_ASSIGN(Window); 167 DISALLOW_COPY_AND_ASSIGN(Window);
162 }; 168 };
163 169
164 } // namespace aura 170 } // namespace aura
165 171
166 #endif // UI_AURA_WINDOW_H_ 172 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/desktop.cc ('k') | ui/aura/window.cc » ('j') | ui/aura_shell/desktop_background_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698