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

Side by Side Diff: chrome/browser/gtk/extension_installed_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/extension_installed_bubble_gtk.h" 5 #include "chrome/browser/gtk/extension_installed_bubble_gtk.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 FALSE, FALSE, 0); 203 FALSE, FALSE, 0);
204 204
205 InfoBubbleGtk::ArrowLocationGtk arrow_location = 205 InfoBubbleGtk::ArrowLocationGtk arrow_location =
206 !base::i18n::IsRTL() ? 206 !base::i18n::IsRTL() ?
207 InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT : 207 InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT :
208 InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT; 208 InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT;
209 info_bubble_ = InfoBubbleGtk::Show(browser_window->window(), 209 info_bubble_ = InfoBubbleGtk::Show(browser_window->window(),
210 bounds, 210 bounds,
211 bubble_content, 211 bubble_content,
212 arrow_location, 212 arrow_location,
213 true, 213 true, // match_system_theme
214 true, // grab_input
214 theme_provider, 215 theme_provider,
215 this); 216 this);
216 } 217 }
217 218
218 // static 219 // static
219 void ExtensionInstalledBubbleGtk::OnButtonClick(GtkWidget* button, 220 void ExtensionInstalledBubbleGtk::OnButtonClick(GtkWidget* button,
220 ExtensionInstalledBubbleGtk* bubble) { 221 ExtensionInstalledBubbleGtk* bubble) {
221 if (button == bubble->close_button_->widget()) { 222 if (button == bubble->close_button_->widget()) {
222 bubble->info_bubble_->Close(); 223 bubble->info_bubble_->Close();
223 } else { 224 } else {
(...skipping 18 matching lines...) Expand all
242 // the window before we call Release() because close_button_ depends 243 // the window before we call Release() because close_button_ depends
243 // on all references being cleared before it is destroyed. 244 // on all references being cleared before it is destroyed.
244 MessageLoopForUI::current()->PostTask(FROM_HERE, NewRunnableMethod(this, 245 MessageLoopForUI::current()->PostTask(FROM_HERE, NewRunnableMethod(this,
245 &ExtensionInstalledBubbleGtk::Close)); 246 &ExtensionInstalledBubbleGtk::Close));
246 } 247 }
247 248
248 void ExtensionInstalledBubbleGtk::Close() { 249 void ExtensionInstalledBubbleGtk::Close() {
249 Release(); // Balanced in ctor. 250 Release(); // Balanced in ctor.
250 info_bubble_ = NULL; 251 info_bubble_ = NULL;
251 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/content_blocked_bubble_gtk.cc ('k') | chrome/browser/gtk/extension_popup_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698