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

Unified Diff: chrome/browser/gtk/first_run_dialog.h

Issue 6099014: Move chrome/browser/gtk to chrome/browser/ui/gtk (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move browser/gtk/ to browser/ui/gtk/, leave header stubs, update new header guards Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/first_run_bubble.h ('k') | chrome/browser/gtk/focus_store_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/first_run_dialog.h
diff --git a/chrome/browser/gtk/first_run_dialog.h b/chrome/browser/gtk/first_run_dialog.h
index 234a64b804cd707721c99bcc3921e1557fe1503e..ae19ba13ed70cb1328218bd7cbaca5138d16c641 100644
--- a/chrome/browser/gtk/first_run_dialog.h
+++ b/chrome/browser/gtk/first_run_dialog.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,77 +6,7 @@
#define CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
#pragma once
-typedef struct _GtkButton GtkButton;
-typedef struct _GtkWidget GtkWidget;
-
-#include "app/gtk_signal.h"
-#include "chrome/browser/first_run/first_run.h"
-#include "chrome/browser/search_engines/template_url_model_observer.h"
-
-class TemplateURL;
-class TemplateURLModel;
-
-class FirstRunDialog : public TemplateURLModelObserver {
- public:
- // Displays the first run UI for reporting opt-in, import data etc.
- static bool Show(Profile* profile, bool randomize_search_engine_order);
-
- virtual void OnTemplateURLModelChanged();
-
- private:
- FirstRunDialog(Profile* profile,
- bool show_reporting_dialog,
- bool show_search_engines_dialog,
- int* response);
- virtual ~FirstRunDialog();
-
- CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int);
- CHROMEGTK_CALLBACK_0(FirstRunDialog, void, OnSearchEngineButtonClicked);
- CHROMEGTK_CALLBACK_0(FirstRunDialog, void, OnSearchEngineWindowDestroy);
- CHROMEG_CALLBACK_0(FirstRunDialog, void, OnLearnMoreLinkClicked, GtkButton*);
-
- void ShowSearchEngineWindow();
- void ShowReportingDialog();
-
- // This method closes the first run window and quits the message loop so that
- // the Chrome startup can continue. This should be called when all the
- // first run tasks are done.
- void FirstRunDone();
-
- // The search engine choice window. This is created and shown before
- // |dialog_|.
- GtkWidget* search_engine_window_;
-
- // Dialog that holds the bug reporting and default browser checkboxes.
- GtkWidget* dialog_;
-
- // Container for the search engine choices.
- GtkWidget* search_engine_hbox_;
-
- // Crash reporting checkbox
- GtkWidget* report_crashes_;
-
- // Make browser default checkbox
- GtkWidget* make_default_;
-
- // Our current profile
- Profile* profile_;
-
- // Owned by the profile_.
- TemplateURLModel* search_engines_model_;
-
- // The search engine the user chose, or NULL if the user has not chosen a
- // search engine.
- TemplateURL* chosen_search_engine_;
-
- // Whether we should show the dialog asking the user whether to report
- // crashes and usage stats.
- bool show_reporting_dialog_;
-
- // User response (accept or cancel) is returned through this.
- int* response_;
-
- DISALLOW_COPY_AND_ASSIGN(FirstRunDialog);
-};
+#include "chrome/browser/ui/gtk/first_run_dialog.h"
+// TODO(msw): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_GTK_FIRST_RUN_DIALOG_H_
« no previous file with comments | « chrome/browser/gtk/first_run_bubble.h ('k') | chrome/browser/gtk/focus_store_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698