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

Side by Side Diff: views/view.h

Issue 384021: Fixes regression in showing bookmark menus where the wrong menu would... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « chrome/browser/views/bookmark_bar_view.cc ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 VIEWS_VIEW_H_ 5 #ifndef VIEWS_VIEW_H_
6 #define VIEWS_VIEW_H_ 6 #define VIEWS_VIEW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // This is the function subclasses should use whenever they need to obtain 137 // This is the function subclasses should use whenever they need to obtain
138 // the bounds of one of their child views (for example, when implementing 138 // the bounds of one of their child views (for example, when implementing
139 // View::Layout()). 139 // View::Layout()).
140 const gfx::Rect& bounds() const { return bounds_; } 140 const gfx::Rect& bounds() const { return bounds_; }
141 141
142 // Get the size of the View. 142 // Get the size of the View.
143 const gfx::Size& size() const { return bounds_.size(); } 143 const gfx::Size& size() const { return bounds_.size(); }
144 144
145 // Return the bounds of the View, relative to the parent. If 145 // Return the bounds of the View, relative to the parent. If
146 // |settings| is IGNORE_MIRRORING_TRANSFORMATION, the function returns the 146 // |settings| is IGNORE_MIRRORING_TRANSFORMATION, the function returns the
147 // bounds_ rectangle. If |settings| is APPLY_MIRRORING_SETTINGS AND the 147 // bounds_ rectangle. If |settings| is APPLY_MIRRORING_TRANSFORMATION AND the
148 // parent View is using a right-to-left UI layout, then the function returns 148 // parent View is using a right-to-left UI layout, then the function returns
149 // a shifted version of the bounds_ rectangle that represents the mirrored 149 // a shifted version of the bounds_ rectangle that represents the mirrored
150 // View bounds. 150 // View bounds.
151 // 151 //
152 // NOTE: in the vast majority of the cases, the mirroring implementation is 152 // NOTE: in the vast majority of the cases, the mirroring implementation is
153 // transparent to the View subclasses and therefore you should use the 153 // transparent to the View subclasses and therefore you should use the
154 // version of GetBounds() which does not take a transformation settings 154 // version of GetBounds() which does not take a transformation settings
155 // parameter. 155 // parameter.
156 gfx::Rect GetBounds(PositionMirroringSettings settings) const; 156 gfx::Rect GetBounds(PositionMirroringSettings settings) const;
157 157
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 // is going to be flipped horizontally (using the appropriate transform) on 1235 // is going to be flipped horizontally (using the appropriate transform) on
1236 // right-to-left locales for this View. 1236 // right-to-left locales for this View.
1237 bool flip_canvas_on_paint_for_rtl_ui_; 1237 bool flip_canvas_on_paint_for_rtl_ui_;
1238 1238
1239 DISALLOW_COPY_AND_ASSIGN(View); 1239 DISALLOW_COPY_AND_ASSIGN(View);
1240 }; 1240 };
1241 1241
1242 } // namespace views 1242 } // namespace views
1243 1243
1244 #endif // VIEWS_VIEW_H_ 1244 #endif // VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_bar_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698