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

Side by Side Diff: chrome/browser/ui/gtk/first_run_dialog.h

Issue 14946003: Record first run startup metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Startup.FirstRun.BrowserMessageLoopStartTimeFromMainEntry --> Startup.BrowserMessageLoopStartTimeFr… Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/first_run_dialog.mm ('k') | chrome/browser/ui/gtk/first_run_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_
6 #define CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ 6 #define CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_
7 7
8 typedef struct _GtkButton GtkButton; 8 typedef struct _GtkButton GtkButton;
9 typedef struct _GtkWidget GtkWidget; 9 typedef struct _GtkWidget GtkWidget;
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/first_run/first_run.h" 12 #include "chrome/browser/first_run/first_run.h"
13 #include "ui/base/gtk/gtk_signal.h" 13 #include "ui/base/gtk/gtk_signal.h"
14 14
15 class FirstRunDialog { 15 class FirstRunDialog {
16 public: 16 public:
17 // Displays the first run UI for reporting opt-in, import data etc. 17 // Displays the first run UI for reporting opt-in, import data etc.
18 // Returns true if the dialog was shown.
18 static bool Show(); 19 static bool Show();
19 20
20 private: 21 private:
21 FirstRunDialog(bool show_reporting_dialog, int* response); 22 FirstRunDialog();
22 virtual ~FirstRunDialog(); 23 virtual ~FirstRunDialog();
23 24
24 CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int); 25 CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int);
25 CHROMEG_CALLBACK_0(FirstRunDialog, void, OnLearnMoreLinkClicked, GtkButton*); 26 CHROMEG_CALLBACK_0(FirstRunDialog, void, OnLearnMoreLinkClicked, GtkButton*);
26 27
27 void ShowReportingDialog(); 28 void ShowReportingDialog();
28 29
29 // This method closes the first run window and quits the message loop so that 30 // This method closes the first run window and quits the message loop so that
30 // the Chrome startup can continue. This should be called when all the 31 // the Chrome startup can continue. This should be called when all the
31 // first run tasks are done. 32 // first run tasks are done.
(...skipping 12 matching lines...) Expand all
44 // crashes and usage stats. 45 // crashes and usage stats.
45 bool show_reporting_dialog_; 46 bool show_reporting_dialog_;
46 47
47 // User response (accept or cancel) is returned through this. 48 // User response (accept or cancel) is returned through this.
48 int* response_; 49 int* response_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog); 51 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog);
51 }; 52 };
52 53
53 #endif // CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_ 54 #endif // CHROME_BROWSER_UI_GTK_FIRST_RUN_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/first_run_dialog.mm ('k') | chrome/browser/ui/gtk/first_run_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698