diff options
author | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-26 22:00:25 +0000 |
---|---|---|
committer | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-26 22:00:25 +0000 |
commit | 4b88ddac62bec4c723f3d844cf1b577d0d795453 (patch) | |
tree | f0ec7f65e2612a04fa7c986a8b8ec1456096136d /chrome/browser/ui/gtk/browser_titlebar.cc | |
parent | d4d245fc2988177f622d043592e349a0c603a950 (diff) | |
download | chromium_src-4b88ddac62bec4c723f3d844cf1b577d0d795453.zip chromium_src-4b88ddac62bec4c723f3d844cf1b577d0d795453.tar.gz chromium_src-4b88ddac62bec4c723f3d844cf1b577d0d795453.tar.bz2 |
[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
Diffstat (limited to 'chrome/browser/ui/gtk/browser_titlebar.cc')
-rw-r--r-- | chrome/browser/ui/gtk/browser_titlebar.cc | 8 |
1 files changed, 2 insertions, 6 deletions
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() { |