Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / ui / views / first_run_dialog.h
blob2eb9d5d1a89cc8571b45ff98c40c7b087119e318
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FIRST_RUN_DIALOG_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_DIALOG_H_
8 #include "ui/views/controls/link_listener.h"
9 #include "ui/views/window/dialog_delegate.h"
11 class Profile;
13 namespace views {
14 class Checkbox;
15 class Link;
18 class FirstRunDialog : public views::DialogDelegateView,
19 public views::LinkListener {
20 public:
21 // Displays the first run UI for reporting opt-in, import data etc.
22 // Returns true if the dialog was shown.
23 static bool Show(Profile* profile);
25 private:
26 explicit FirstRunDialog(Profile* profile);
27 virtual ~FirstRunDialog();
29 // This terminates the nested message-loop.
30 void Done();
32 // views::DialogDelegate:
33 virtual views::View* CreateExtraView() OVERRIDE;
34 virtual void OnClosed() OVERRIDE;
35 virtual bool Accept() OVERRIDE;
36 virtual int GetDialogButtons() const OVERRIDE;
38 // views::LinkListener:
39 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
41 Profile* profile_;
42 views::Checkbox* make_default_;
43 views::Checkbox* report_crashes_;
45 DISALLOW_COPY_AND_ASSIGN(FirstRunDialog);
48 #endif // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_DIALOG_H_