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

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

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: rebase Created 4 years 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/test/aura_test_helper.cc ('k') | ui/aura/window_tree_host.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_TREE_HOST_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_
6 #define UI_AURA_WINDOW_TREE_HOST_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Returns the accelerated widget. 166 // Returns the accelerated widget.
167 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; 167 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
168 168
169 // Shows the WindowTreeHost. 169 // Shows the WindowTreeHost.
170 void Show(); 170 void Show();
171 171
172 // Hides the WindowTreeHost. 172 // Hides the WindowTreeHost.
173 void Hide(); 173 void Hide();
174 174
175 // Gets/Sets the size of the WindowTreeHost (in pixels). 175 // Gets/Sets the size of the WindowTreeHost (in pixels).
176 virtual gfx::Rect GetBounds() const = 0; 176 virtual gfx::Rect GetBoundsInPixels() const = 0;
177 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0; 177 virtual void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels) = 0;
178 178
179 // Sets the OS capture to the root window. 179 // Sets the OS capture to the root window.
180 virtual void SetCapture() = 0; 180 virtual void SetCapture() = 0;
181 181
182 // Releases OS capture of the root window. 182 // Releases OS capture of the root window.
183 virtual void ReleaseCapture() = 0; 183 virtual void ReleaseCapture() = 0;
184 184
185 protected: 185 protected:
186 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. 186 friend class TestScreen; // TODO(beng): see if we can remove/consolidate.
187 187
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 bool owned_input_method_; 259 bool owned_input_method_;
260 260
261 gfx::Insets output_surface_padding_; 261 gfx::Insets output_surface_padding_;
262 262
263 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 263 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
264 }; 264 };
265 265
266 } // namespace aura 266 } // namespace aura
267 267
268 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 268 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698