OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/first_run_bubble.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/gtk/gtk_theme_provider.h" | |
15 #include "chrome/browser/gtk/gtk_util.h" | |
16 #include "chrome/browser/search_engines/util.h" | 14 #include "chrome/browser/search_engines/util.h" |
17 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 17 #include "chrome/browser/ui/gtk/gtk_util.h" |
18 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "grit/locale_settings.h" | 21 #include "grit/locale_settings.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 // Markup for the text of the Omnibox search label | 24 // Markup for the text of the Omnibox search label |
25 const char kSearchLabelMarkup[] = "<big><b>%s</b></big>"; | 25 const char kSearchLabelMarkup[] = "<big><b>%s</b></big>"; |
26 | 26 |
27 // Padding for the buttons on first run bubble. | 27 // Padding for the buttons on first run bubble. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 void FirstRunBubble::HandleKeepButton(GtkWidget* sender) { | 217 void FirstRunBubble::HandleKeepButton(GtkWidget* sender) { |
218 bubble_->Close(); | 218 bubble_->Close(); |
219 } | 219 } |
220 | 220 |
221 void FirstRunBubble::HandleChangeButton(GtkWidget* sender) { | 221 void FirstRunBubble::HandleChangeButton(GtkWidget* sender) { |
222 bubble_->Close(); | 222 bubble_->Close(); |
223 Browser* browser = BrowserList::GetLastActive(); | 223 Browser* browser = BrowserList::GetLastActive(); |
224 DCHECK(browser); | 224 DCHECK(browser); |
225 browser->OpenSearchEngineOptionsDialog(); | 225 browser->OpenSearchEngineOptionsDialog(); |
226 } | 226 } |
OLD | NEW |