| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/gtk/first_run_dialog.h" | 5 #include "chrome/browser/ui/gtk/first_run_dialog.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
| 23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
| 24 #include "grit/locale_settings.h" | 24 #include "grit/locale_settings.h" |
| 25 #include "grit/theme_resources.h" | 25 #include "grit/theme_resources.h" |
| 26 #include "ui/base/gtk/gtk_floating_container.h" | 26 #include "ui/base/gtk/gtk_floating_container.h" |
| 27 #include "ui/base/gtk/gtk_hig_constants.h" | 27 #include "ui/base/gtk/gtk_hig_constants.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/resource/resource_bundle.h" | 29 #include "ui/base/resource/resource_bundle.h" |
| 30 | 30 |
| 31 #if defined(USE_LINUX_BREAKPAD) | 31 #if defined(USE_LINUX_BREAKPAD) |
| 32 #include "chrome/app/breakpad_linuxish.h" | 32 #include "chrome/app/breakpad_linux.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if defined(GOOGLE_CHROME_BUILD) | 35 #if defined(GOOGLE_CHROME_BUILD) |
| 36 #include "chrome/browser/browser_process.h" | 36 #include "chrome/browser/browser_process.h" |
| 37 #include "chrome/browser/prefs/pref_service.h" | 37 #include "chrome/browser/prefs/pref_service.h" |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 // Set the (x, y) coordinates of the welcome message (which floats on top of | 42 // Set the (x, y) coordinates of the welcome message (which floats on top of |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 } | 207 } |
| 208 | 208 |
| 209 void FirstRunDialog::FirstRunDone() { | 209 void FirstRunDialog::FirstRunDone() { |
| 210 first_run::SetShowWelcomePagePref(); | 210 first_run::SetShowWelcomePagePref(); |
| 211 | 211 |
| 212 if (dialog_) | 212 if (dialog_) |
| 213 gtk_widget_destroy(dialog_); | 213 gtk_widget_destroy(dialog_); |
| 214 MessageLoop::current()->Quit(); | 214 MessageLoop::current()->Quit(); |
| 215 delete this; | 215 delete this; |
| 216 } | 216 } |
| OLD | NEW |