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

Side by Side Diff: chrome/browser/gtk/content_blocked_bubble_gtk.cc

Issue 1170001: GTK: allow inspecting of extension popups. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/gtk/extension_installed_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698