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

Unified Diff: chrome/browser/ui/views/autofill/tooltip_icon.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/autofill/tooltip_icon.cc
diff --git a/chrome/browser/ui/views/autofill/tooltip_icon.cc b/chrome/browser/ui/views/autofill/tooltip_icon.cc
index ff243b7ca21c4769765eea3b7fabc08854fc3c7f..92f8e435c36a26dd819907db6bc417227dbc9449 100644
--- a/chrome/browser/ui/views/autofill/tooltip_icon.cc
+++ b/chrome/browser/ui/views/autofill/tooltip_icon.cc
@@ -18,7 +18,7 @@ namespace autofill {
namespace {
-gfx::Insets GetPreferredInsets(views::View* view) {
+gfx::Insets GetPreferredInsets(const views::View* view) {
gfx::Size pref_size = view->GetPreferredSize();
gfx::Rect local_bounds = view->GetLocalBounds();
gfx::Point origin = local_bounds.CenterPoint();
@@ -38,7 +38,7 @@ class TooltipBubble : public InfoBubble {
protected:
// InfoBubble:
- virtual gfx::Rect GetAnchorRect() OVERRIDE {
+ virtual gfx::Rect GetAnchorRect() const OVERRIDE {
gfx::Rect bounds = views::BubbleDelegateView::GetAnchorRect();
bounds.Inset(GetPreferredInsets(anchor()));
return bounds;

Powered by Google App Engine
This is Rietveld 408576698