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

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

Issue 11087093: Migrate ui::Transform to gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Should pass trybots this time Created 8 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
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/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_WINDOW_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 #include "ui/compositor/layer_animator.h" 22 #include "ui/compositor/layer_animator.h"
23 #include "ui/compositor/layer_delegate.h" 23 #include "ui/compositor/layer_delegate.h"
24 #include "ui/compositor/layer_owner.h" 24 #include "ui/compositor/layer_owner.h"
25 #include "ui/compositor/layer_type.h" 25 #include "ui/compositor/layer_type.h"
26 #include "ui/gfx/insets.h" 26 #include "ui/gfx/insets.h"
27 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
28 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
29 29
30 namespace gfx { 30 namespace gfx {
31 class Display; 31 class Display;
32 class Transform;
32 } 33 }
33 34
34 namespace ui { 35 namespace ui {
35 class Layer; 36 class Layer;
36 class Texture; 37 class Texture;
37 class Transform;
38 } 38 }
39 39
40 namespace aura { 40 namespace aura {
41 41
42 class EventFilter; 42 class EventFilter;
43 class FocusManager; 43 class FocusManager;
44 class LayoutManager; 44 class LayoutManager;
45 class RootWindow; 45 class RootWindow;
46 class WindowDelegate; 46 class WindowDelegate;
47 class WindowObserver; 47 class WindowObserver;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Returns the window's bounds in root window's coordinates. 139 // Returns the window's bounds in root window's coordinates.
140 gfx::Rect GetBoundsInRootWindow() const; 140 gfx::Rect GetBoundsInRootWindow() const;
141 141
142 // Returns the window's bounds in screen coordinates. 142 // Returns the window's bounds in screen coordinates.
143 // How the root window's coordinates is mapped to screen's coordinates 143 // How the root window's coordinates is mapped to screen's coordinates
144 // is platform dependent and defined in the implementation of the 144 // is platform dependent and defined in the implementation of the
145 // |aura::client::ScreenPositionClient| interface. 145 // |aura::client::ScreenPositionClient| interface.
146 gfx::Rect GetBoundsInScreen() const; 146 gfx::Rect GetBoundsInScreen() const;
147 147
148 virtual void SetTransform(const ui::Transform& transform); 148 virtual void SetTransform(const gfx::Transform& transform);
149 149
150 // Assigns a LayoutManager to size and place child windows. 150 // Assigns a LayoutManager to size and place child windows.
151 // The Window takes ownership of the LayoutManager. 151 // The Window takes ownership of the LayoutManager.
152 void SetLayoutManager(LayoutManager* layout_manager); 152 void SetLayoutManager(LayoutManager* layout_manager);
153 LayoutManager* layout_manager() { return layout_manager_.get(); } 153 LayoutManager* layout_manager() { return layout_manager_.get(); }
154 154
155 // Changes the bounds of the window. If present, the window's parent's 155 // Changes the bounds of the window. If present, the window's parent's
156 // LayoutManager may adjust the bounds. 156 // LayoutManager may adjust the bounds.
157 void SetBounds(const gfx::Rect& new_bounds); 157 void SetBounds(const gfx::Rect& new_bounds);
158 158
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 }; 498 };
499 499
500 std::map<const void*, Value> prop_map_; 500 std::map<const void*, Value> prop_map_;
501 501
502 DISALLOW_COPY_AND_ASSIGN(Window); 502 DISALLOW_COPY_AND_ASSIGN(Window);
503 }; 503 };
504 504
505 } // namespace aura 505 } // namespace aura
506 506
507 #endif // UI_AURA_WINDOW_H_ 507 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698