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

Unified Diff: ui/views/bubble/bubble_delegate.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
« no previous file with comments | « ui/message_center/views/toast_contents_view.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index 5cbda570e09d6a3ded2cfe4d430d73cf4668450b..b3d299997f0808da40685a283483443a5701c674 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -95,7 +95,7 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
void set_adjust_if_offscreen(bool adjust) { adjust_if_offscreen_ = adjust; }
// Get the arrow's anchor rect in screen space.
- virtual gfx::Rect GetAnchorRect();
+ virtual gfx::Rect GetAnchorRect() const;
// Allows delegates to provide custom parameters before widget initialization.
virtual void OnBeforeBubbleWidgetInit(Widget::InitParams* params,
@@ -160,7 +160,7 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
Widget* anchor_widget_;
// The anchor rect used in the absence of an anchor view.
- gfx::Rect anchor_rect_;
+ mutable gfx::Rect anchor_rect_;
// The arrow's location on the bubble.
BubbleBorder::Arrow arrow_;
« no previous file with comments | « ui/message_center/views/toast_contents_view.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698