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

Side by Side Diff: ui/views/view.h

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/view.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_VIEWS_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Returns the visible bounds of the receiver in the receivers coordinate 197 // Returns the visible bounds of the receiver in the receivers coordinate
198 // system. 198 // system.
199 // 199 //
200 // When traversing the View hierarchy in order to compute the bounds, the 200 // When traversing the View hierarchy in order to compute the bounds, the
201 // function takes into account the mirroring setting and transformation for 201 // function takes into account the mirroring setting and transformation for
202 // each View and therefore it will return the mirrored and transformed version 202 // each View and therefore it will return the mirrored and transformed version
203 // of the visible bounds if need be. 203 // of the visible bounds if need be.
204 gfx::Rect GetVisibleBounds() const; 204 gfx::Rect GetVisibleBounds() const;
205 205
206 // Return the bounds of the View in screen coordinate system. 206 // Return the bounds of the View in screen coordinate system.
207 gfx::Rect GetScreenBounds() const; 207 gfx::Rect GetBoundsInScreen() const;
208 208
209 // Returns the baseline of this view, or -1 if this view has no baseline. The 209 // Returns the baseline of this view, or -1 if this view has no baseline. The
210 // return value is relative to the preferred height. 210 // return value is relative to the preferred height.
211 virtual int GetBaseline() const; 211 virtual int GetBaseline() const;
212 212
213 // Get the size the View would like to be, if enough space were available. 213 // Get the size the View would like to be, if enough space were available.
214 virtual gfx::Size GetPreferredSize(); 214 virtual gfx::Size GetPreferredSize();
215 215
216 // Convenience method that sizes this view to its preferred size. 216 // Convenience method that sizes this view to its preferred size.
217 void SizeToPreferredSize(); 217 void SizeToPreferredSize();
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 base::win::ScopedComPtr<NativeViewAccessibilityWin> 1478 base::win::ScopedComPtr<NativeViewAccessibilityWin>
1479 native_view_accessibility_win_; 1479 native_view_accessibility_win_;
1480 #endif 1480 #endif
1481 1481
1482 DISALLOW_COPY_AND_ASSIGN(View); 1482 DISALLOW_COPY_AND_ASSIGN(View);
1483 }; 1483 };
1484 1484
1485 } // namespace views 1485 } // namespace views
1486 1486
1487 #endif // UI_VIEWS_VIEW_H_ 1487 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698