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

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: git try Created 8 years, 4 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/resources/ui_resources.grd ('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 a76a7274995654efbb39a7d6f378772a665c5069..53828c0ad493e03a66c45d6d589e0eb90785d854 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -80,6 +80,11 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
use_focusless_ = use_focusless;
}
+ bool try_mirroring_arrow() const { 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.
virtual gfx::Rect GetAnchorRect();
@@ -167,6 +172,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// These bubbles are not interactive and should not gain focus.
bool use_focusless_;
+ // If true (defaults to 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_;
« no previous file with comments | « ui/resources/ui_resources.grd ('k') | ui/views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698