OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/gtk/content_blocked_bubble_gtk.h" | 5 #include "chrome/browser/gtk/content_blocked_bubble_gtk.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "chrome/browser/blocked_popup_container.h" | 9 #include "chrome/browser/blocked_popup_container.h" |
10 #include "chrome/browser/content_setting_bubble_model.h" | 10 #include "chrome/browser/content_setting_bubble_model.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 InfoBubbleGtk::ArrowLocationGtk arrow_location = | 168 InfoBubbleGtk::ArrowLocationGtk arrow_location = |
169 !base::i18n::IsRTL() ? | 169 !base::i18n::IsRTL() ? |
170 InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT : | 170 InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT : |
171 InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT; | 171 InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT; |
172 info_bubble_ = InfoBubbleGtk::Show( | 172 info_bubble_ = InfoBubbleGtk::Show( |
173 toplevel_window_, | 173 toplevel_window_, |
174 bounds_, | 174 bounds_, |
175 bubble_content, | 175 bubble_content, |
176 arrow_location, | 176 arrow_location, |
177 true, | 177 true, // match_system_theme |
| 178 true, // grab_input |
178 theme_provider, | 179 theme_provider, |
179 this); | 180 this); |
180 } | 181 } |
181 | 182 |
182 // static | 183 // static |
183 void ContentSettingBubbleGtk::OnPopupIconButtonPress( | 184 void ContentSettingBubbleGtk::OnPopupIconButtonPress( |
184 GtkWidget* icon_event_box, | 185 GtkWidget* icon_event_box, |
185 GdkEventButton* event, | 186 GdkEventButton* event, |
186 ContentSettingBubbleGtk* bubble) { | 187 ContentSettingBubbleGtk* bubble) { |
187 PopupMap::iterator i(bubble->popup_icons_.find(icon_event_box)); | 188 PopupMap::iterator i(bubble->popup_icons_.find(icon_event_box)); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 bubble->Close(); | 232 bubble->Close(); |
232 } | 233 } |
233 | 234 |
234 // static | 235 // static |
235 void ContentSettingBubbleGtk::OnManageLinkClicked( | 236 void ContentSettingBubbleGtk::OnManageLinkClicked( |
236 GtkButton* button, | 237 GtkButton* button, |
237 ContentSettingBubbleGtk* bubble) { | 238 ContentSettingBubbleGtk* bubble) { |
238 bubble->content_setting_bubble_model_->OnManageLinkClicked(); | 239 bubble->content_setting_bubble_model_->OnManageLinkClicked(); |
239 bubble->Close(); | 240 bubble->Close(); |
240 } | 241 } |
OLD | NEW |