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

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

Issue 1800373002: [MD] replace infobar bottom solid line separator with a shadow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 9 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/gfx/skia_util.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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 const gfx::Size& size() const { return bounds_.size(); } 226 const gfx::Size& size() const { return bounds_.size(); }
227 227
228 // Returns the bounds of the content area of the view, i.e. the rectangle 228 // Returns the bounds of the content area of the view, i.e. the rectangle
229 // enclosed by the view's border. 229 // enclosed by the view's border.
230 gfx::Rect GetContentsBounds() const; 230 gfx::Rect GetContentsBounds() const;
231 231
232 // Returns the bounds of the view in its own coordinates (i.e. position is 232 // Returns the bounds of the view in its own coordinates (i.e. position is
233 // 0, 0). 233 // 0, 0).
234 gfx::Rect GetLocalBounds() const; 234 gfx::Rect GetLocalBounds() const;
235 235
236 // Returns the bounds of the layer in its own pixel coordinates.
237 gfx::Rect GetLayerBoundsInPixel() const;
238
239 // Returns the insets of the current border. If there is no border an empty 236 // Returns the insets of the current border. If there is no border an empty
240 // insets is returned. 237 // insets is returned.
241 virtual gfx::Insets GetInsets() const; 238 virtual gfx::Insets GetInsets() const;
242 239
243 // Returns the visible bounds of the receiver in the receivers coordinate 240 // Returns the visible bounds of the receiver in the receivers coordinate
244 // system. 241 // system.
245 // 242 //
246 // When traversing the View hierarchy in order to compute the bounds, the 243 // When traversing the View hierarchy in order to compute the bounds, the
247 // function takes into account the mirroring setting and transformation for 244 // function takes into account the mirroring setting and transformation for
248 // each View and therefore it will return the mirrored and transformed version 245 // each View and therefore it will return the mirrored and transformed version
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 // Belongs to this view, but it's reference-counted on some platforms 1567 // Belongs to this view, but it's reference-counted on some platforms
1571 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1568 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1572 NativeViewAccessibility* native_view_accessibility_; 1569 NativeViewAccessibility* native_view_accessibility_;
1573 1570
1574 DISALLOW_COPY_AND_ASSIGN(View); 1571 DISALLOW_COPY_AND_ASSIGN(View);
1575 }; 1572 };
1576 1573
1577 } // namespace views 1574 } // namespace views
1578 1575
1579 #endif // UI_VIEWS_VIEW_H_ 1576 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/gfx/skia_util.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698