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

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: Fixed merging issues 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
« no previous file with comments | « ui/base/ui_base_switches.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 ad2b5ac235902b29197dd32fa7ed555f9898ba4a..7a91e22a12f34c232ef7d34ca7a171d826d4dfeb 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -81,6 +81,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
use_focusless_ = use_focusless;
}
+ bool try_mirroring_arrow() { return try_mirroring_arrow_; }
+ void set_try_mirroring_arrow(bool try_mirroring_arrow) {
+ try_mirroring_arrow_ = try_mirroring_arrow;
+ }
// Get the arrow's anchor rect in screen space.
msw 2012/07/25 23:11:56 nit: add a blank line above.
Mr4D (OOO till 08-26) 2012/07/26 01:17:20 Done.
virtual gfx::Rect GetAnchorRect();
@@ -168,6 +172,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// These bubbles are not interactive and should not gain focus.
bool use_focusless_;
+ // If set (default) the arrow will be mirrored if it helps to fit the menu
msw 2012/07/25 23:11:56 nit: remove "(default)" or explicitly state "(defa
Mr4D (OOO till 08-26) 2012/07/26 01:17:20 Done.
+ // on the screen.
+ bool try_mirroring_arrow_;
+
// Parent native window of the bubble.
gfx::NativeView parent_window_;
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698