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

Side by Side Diff: chrome/browser/gtk/first_run_bubble.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
« no previous file with comments | « chrome/browser/gtk/extension_popup_gtk.cc ('k') | chrome/browser/gtk/info_bubble_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/first_run_bubble.h" 5 #include "chrome/browser/gtk/first_run_bubble.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/gtk_util.h" 9 #include "app/gtk_util.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 gtk_widget_grab_focus(keep_button); 149 gtk_widget_grab_focus(keep_button);
150 150
151 InfoBubbleGtk::ArrowLocationGtk arrow_location = 151 InfoBubbleGtk::ArrowLocationGtk arrow_location =
152 !base::i18n::IsRTL() ? 152 !base::i18n::IsRTL() ?
153 InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT : 153 InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT :
154 InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT; 154 InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT;
155 bubble_ = InfoBubbleGtk::Show(parent_, 155 bubble_ = InfoBubbleGtk::Show(parent_,
156 rect, 156 rect,
157 content_, 157 content_,
158 arrow_location, 158 arrow_location,
159 true, 159 true, // match_system_theme
160 true, // grab_input
160 theme_provider_, 161 theme_provider_,
161 this); // delegate 162 this); // delegate
162 if (!bubble_) { 163 if (!bubble_) {
163 NOTREACHED(); 164 NOTREACHED();
164 return; 165 return;
165 } 166 }
166 167
167 g_signal_connect(content_, "destroy", 168 g_signal_connect(content_, "destroy",
168 G_CALLBACK(&HandleDestroyThunk), this); 169 G_CALLBACK(&HandleDestroyThunk), this);
169 g_signal_connect(keep_button, "clicked", 170 g_signal_connect(keep_button, "clicked",
(...skipping 13 matching lines...) Expand all
183 } 184 }
184 185
185 void FirstRunBubble::HandleDestroy() { 186 void FirstRunBubble::HandleDestroy() {
186 content_ = NULL; 187 content_ = NULL;
187 delete this; 188 delete this;
188 } 189 }
189 190
190 void FirstRunBubble::HandleKeepButton() { 191 void FirstRunBubble::HandleKeepButton() {
191 bubble_->Close(); 192 bubble_->Close();
192 } 193 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/extension_popup_gtk.cc ('k') | chrome/browser/gtk/info_bubble_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698