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

Unified Diff: chrome/browser/ui/views/autofill/info_bubble.h

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/info_bubble.h
diff --git a/chrome/browser/ui/views/autofill/info_bubble.h b/chrome/browser/ui/views/autofill/info_bubble.h
index f74019129448b366c8a79ae11e931bc697b63f3a..d02820573ba1eeffe3ea66e6a06411979f107ae4 100644
--- a/chrome/browser/ui/views/autofill/info_bubble.h
+++ b/chrome/browser/ui/views/autofill/info_bubble.h
@@ -33,12 +33,13 @@ class InfoBubble : public views::BubbleDelegateView {
// views::BubbleDelegateView:
virtual views::NonClientFrameView* CreateNonClientFrameView(
views::Widget* widget) OVERRIDE;
- virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual gfx::Size GetPreferredSize() const OVERRIDE;
virtual void OnWidgetDestroyed(views::Widget* widget) OVERRIDE;
virtual void OnWidgetBoundsChanged(views::Widget* widget,
const gfx::Rect& new_bounds) OVERRIDE;
views::View* anchor() { return anchor_; }
+ const views::View* anchor() const { return anchor_; }
void set_align_to_anchor_edge(bool align_to_anchor_edge) {
align_to_anchor_edge_ = align_to_anchor_edge;

Powered by Google App Engine
This is Rietveld 408576698