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/gfx/gtk_util.h" | 9 #include "app/gfx/gtk_util.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "chrome/browser/gtk/gtk_theme_provider.h" | 11 #include "chrome/browser/gtk/gtk_theme_provider.h" |
12 #include "chrome/browser/options_window.h" | 12 #include "chrome/browser/options_window.h" |
13 #include "chrome/browser/search_engines/template_url_model.h" | 13 #include "chrome/browser/search_engines/template_url_model.h" |
14 #include "chrome/common/gtk_util.h" | 14 #include "chrome/common/gtk_util.h" |
15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
16 #include "grit/chromium_strings.h" | 16 #include "grit/chromium_strings.h" |
| 17 #include "grit/generated_resources.h" |
17 #include "grit/locale_settings.h" | 18 #include "grit/locale_settings.h" |
18 #include "grit/generated_resources.h" | |
19 #include "grit/google_chrome_strings.h" | |
20 | 19 |
21 namespace { | 20 namespace { |
22 // Markup for the text of the Omnibox search label | 21 // Markup for the text of the Omnibox search label |
23 const char kSearchLabelMarkup[] = "<big><b>%s</b></big>"; | 22 const char kSearchLabelMarkup[] = "<big><b>%s</b></big>"; |
24 | 23 |
25 // Padding for the buttons on first run bubble. | 24 // Padding for the buttons on first run bubble. |
26 const int kButtonPadding = 4; | 25 const int kButtonPadding = 4; |
27 | 26 |
28 string16 GetDefaultSearchEngineName(Profile* profile) { | 27 string16 GetDefaultSearchEngineName(Profile* profile) { |
29 if (!profile) { | 28 if (!profile) { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 176 } |
178 | 177 |
179 void FirstRunBubble::HandleDestroy() { | 178 void FirstRunBubble::HandleDestroy() { |
180 content_ = NULL; | 179 content_ = NULL; |
181 delete this; | 180 delete this; |
182 } | 181 } |
183 | 182 |
184 void FirstRunBubble::HandleKeepButton() { | 183 void FirstRunBubble::HandleKeepButton() { |
185 bubble_->Close(); | 184 bubble_->Close(); |
186 } | 185 } |
OLD | NEW |