OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |