diff options
Diffstat (limited to 'chrome/browser/ui/gtk/extensions')
3 files changed, 5 insertions, 18 deletions
diff --git a/chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc b/chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc index 0211c5e..792642b 100644 --- a/chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc +++ b/chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc @@ -91,15 +91,12 @@ void BundleInstalledBubbleGtk::ShowInternal(const BundleInstaller* bundle) { gtk_box_pack_start(GTK_BOX(close_column), close_button_->widget(), FALSE, FALSE, 0); - BubbleGtk::ArrowLocationGtk arrow_location = - !base::i18n::IsRTL() ? BubbleGtk::ARROW_LOCATION_TOP_RIGHT : - BubbleGtk::ARROW_LOCATION_TOP_LEFT; gfx::Rect bounds = gtk_util::WidgetBounds(reference_widget); bubble_ = BubbleGtk::Show(reference_widget, &bounds, bubble_content, - arrow_location, + BubbleGtk::ANCHOR_TOP_RIGHT, BubbleGtk::MATCH_SYSTEM_THEME | BubbleGtk::POPUP_WINDOW | BubbleGtk::GRAB_INPUT, diff --git a/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc b/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc index 08f3f39..724f1a1 100644 --- a/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc +++ b/chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc @@ -327,20 +327,14 @@ void ExtensionInstalledBubbleGtk::ShowInternal() { gtk_box_pack_start(GTK_BOX(close_column), close_button_->widget(), FALSE, FALSE, 0); - BubbleGtk::ArrowLocationGtk arrow_location = - !base::i18n::IsRTL() ? - BubbleGtk::ARROW_LOCATION_TOP_RIGHT : - BubbleGtk::ARROW_LOCATION_TOP_LEFT; + BubbleGtk::FrameStyle frame_style = BubbleGtk::ANCHOR_TOP_RIGHT; gfx::Rect bounds = gtk_util::WidgetBounds(reference_widget); if (type_ == OMNIBOX_KEYWORD) { // Reverse the arrow for omnibox keywords, since the bubble will be on the // other side of the window. We also clear the width to avoid centering // the popup on the URL bar. - arrow_location = - !base::i18n::IsRTL() ? - BubbleGtk::ARROW_LOCATION_TOP_LEFT : - BubbleGtk::ARROW_LOCATION_TOP_RIGHT; + frame_style = BubbleGtk::ANCHOR_TOP_LEFT; if (base::i18n::IsRTL()) bounds.Offset(bounds.width(), 0); bounds.set_width(0); @@ -349,7 +343,7 @@ void ExtensionInstalledBubbleGtk::ShowInternal() { bubble_ = BubbleGtk::Show(reference_widget, &bounds, bubble_content, - arrow_location, + frame_style, BubbleGtk::MATCH_SYSTEM_THEME | BubbleGtk::POPUP_WINDOW | BubbleGtk::GRAB_INPUT, diff --git a/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc b/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc index e0b0605..42c95da 100644 --- a/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc +++ b/chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc @@ -185,14 +185,10 @@ void ExtensionPopupGtk::ShowPopup() { // We'll be in the upper-right corner of the window for LTR languages, so we // want to put the arrow at the upper-right corner of the bubble to match the // page and app menus. - BubbleGtk::ArrowLocationGtk arrow_location = - !base::i18n::IsRTL() ? - BubbleGtk::ARROW_LOCATION_TOP_RIGHT : - BubbleGtk::ARROW_LOCATION_TOP_LEFT; bubble_ = BubbleGtk::Show(anchor_, NULL, border_box, - arrow_location, + BubbleGtk::ANCHOR_TOP_RIGHT, being_inspected_ ? 0 : BubbleGtk::POPUP_WINDOW | BubbleGtk::GRAB_INPUT, GtkThemeService::GetFrom(browser_->profile()), |