From 4b88ddac62bec4c723f3d844cf1b577d0d795453 Mon Sep 17 00:00:00 2001 From: "dbeam@chromium.org" Date: Wed, 26 Dec 2012 22:00:25 +0000 Subject: [zoom bubble] Handle entering/leaving/being in fullscreen on GTK. This patch should: - hide the zoom bubble when toggling fullscreen - show a bubble without an arrow while in fullscreen This patch also: - changes ArrowLocationGtk to FrameStyle as it's a more appropriate name - renames all of the arrow locations to the equivalent frame styles - adds FIXED_TOP_LEFT, FIXED_TOP_RIGHT to the available frame styles - automatically flips bubbles in RTL to avoid making callers do this - fixes about ~3 callers that weren't flipping BUG=167365 Review URL: https://codereview.chromium.org/11553046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174636 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/gtk/browser_titlebar.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chrome/browser/ui/gtk/browser_titlebar.cc') diff --git a/chrome/browser/ui/gtk/browser_titlebar.cc b/chrome/browser/ui/gtk/browser_titlebar.cc index a3a49a1..186977e 100644 --- a/chrome/browser/ui/gtk/browser_titlebar.cc +++ b/chrome/browser/ui/gtk/browser_titlebar.cc @@ -815,12 +815,8 @@ void BrowserTitlebar::UpdateAvatar() { avatar = cache.GetAvatarIconOfProfileAtIndex(index); } avatar_button_->SetIcon(avatar, is_gaia_picture); - - BubbleGtk::ArrowLocationGtk arrow_location = - display_avatar_on_left_ ^ base::i18n::IsRTL() ? - BubbleGtk::ARROW_LOCATION_TOP_LEFT : - BubbleGtk::ARROW_LOCATION_TOP_RIGHT; - avatar_button_->set_menu_arrow_location(arrow_location); + avatar_button_->set_menu_frame_style(display_avatar_on_left_ ? + BubbleGtk::ANCHOR_TOP_LEFT : BubbleGtk::ANCHOR_TOP_RIGHT); } void BrowserTitlebar::MaximizeButtonClicked() { -- cgit v1.1