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

Unified Diff: ui/views/bubble/bubble_delegate.h

Issue 10823025: Adding new maximize menu according to spec (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Found some edge cases for menu destruction Created 8 years, 5 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: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index ad2b5ac235902b29197dd32fa7ed555f9898ba4a..3fd4db03897ddfefa9c12d6ff7857a5517721f5d 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -81,6 +81,11 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
use_focusless_ = use_focusless;
}
+ bool try_mirroring_arrow() { return try_mirroring_arrow_; }
sky 2012/07/31 16:11:06 const
Mr4D (OOO till 08-26) 2012/08/01 20:48:22 Done.
+ void set_try_mirroring_arrow(bool try_mirroring_arrow) {
+ try_mirroring_arrow_ = try_mirroring_arrow;
+ }
+
// Get the arrow's anchor rect in screen space.
virtual gfx::Rect GetAnchorRect();
@@ -168,6 +173,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// These bubbles are not interactive and should not gain focus.
bool use_focusless_;
+ // If true, the arrow may be mirrored to fit the bubble on screen better.
+ bool try_mirroring_arrow_;
+
// Parent native window of the bubble.
gfx::NativeView parent_window_;

Powered by Google App Engine
This is Rietveld 408576698