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

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: 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
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 127 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') | ui/gfx/transform.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698