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

Side by Side Diff: chrome/browser/views/first_run_view.h

Issue 4244: Make Chrome default browser an opt-out instead of an opt-in on first run. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_FIRST_RUN_VIEW_H__ 5 #ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_H__ 6 #define CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_H_
7 7
8 #include "chrome/browser/views/first_run_view_base.h" 8 #include "chrome/browser/views/first_run_view_base.h"
9 #include "chrome/browser/views/first_run_customize_view.h" 9 #include "chrome/browser/views/first_run_customize_view.h"
10 #include "chrome/views/dialog_delegate.h" 10 #include "chrome/views/dialog_delegate.h"
11 #include "chrome/views/link.h" 11 #include "chrome/views/link.h"
12 #include "chrome/views/view.h" 12 #include "chrome/views/view.h"
13 13
14 namespace ChromeViews { 14 namespace ChromeViews {
15
16 class Label; 15 class Label;
17 class Window; 16 class Window;
18
19 } 17 }
20 18
21 class Profile; 19 class Profile;
22 class ImporterHost; 20 class ImporterHost;
23 21
24 // FirstRunView implements the dialog that welcomes to user to Chrome after 22 // FirstRunView implements the dialog that welcomes to user to Chrome after
25 // a fresh install. 23 // a fresh install.
26 class FirstRunView : public FirstRunViewBase, 24 class FirstRunView : public FirstRunViewBase,
27 public ChromeViews::LinkController, 25 public ChromeViews::LinkController,
28 public FirstRunCustomizeView::CustomizeViewObserver { 26 public FirstRunCustomizeView::CustomizeViewObserver {
29 public: 27 public:
30 explicit FirstRunView(Profile* profile); 28 explicit FirstRunView(Profile* profile);
31 virtual ~FirstRunView(); 29 virtual ~FirstRunView();
32 30
33 // Overridden from ChromeViews::View: 31 // Overridden from ChromeViews::View:
34 virtual void GetPreferredSize(CSize *out); 32 virtual void GetPreferredSize(CSize *out);
35 virtual void Layout(); 33 virtual void Layout();
36 34
37 // Overridden from ChromeViews::DialogDelegate: 35 // Overridden from ChromeViews::DialogDelegate:
38 virtual std::wstring GetDialogButtonLabel(DialogButton button) const;
39 virtual bool Accept(); 36 virtual bool Accept();
40 virtual bool Cancel(); 37 virtual bool Cancel();
41 38
42 // Overridden from ChromeViews::WindowDelegate: 39 // Overridden from ChromeViews::WindowDelegate:
43 virtual std::wstring GetWindowTitle() const; 40 virtual std::wstring GetWindowTitle() const;
44 virtual ChromeViews::View* GetContentsView(); 41 virtual ChromeViews::View* GetContentsView();
45 42
46 // Overridden from ChromeViews::LinkActivated: 43 // Overridden from ChromeViews::LinkActivated:
47 virtual void LinkActivated(ChromeViews::Link* source, int event_flags); 44 virtual void LinkActivated(ChromeViews::Link* source, int event_flags);
48 45
49 // Overridden from FirstRunCustomizeView: 46 // Overridden from FirstRunCustomizeView:
50 virtual void CustomizeAccepted(); 47 virtual void CustomizeAccepted();
51 virtual void CustomizeCanceled(); 48 virtual void CustomizeCanceled();
52 49
53 private: 50 private:
54 // Initializes the controls on the dialog. 51 // Initializes the controls on the dialog.
55 void SetupControls(); 52 void SetupControls();
56 53
57 // Creates the dialog that allows the user to customize work items. 54 // Creates the dialog that allows the user to customize work items.
58 void OpenCustomizeDialog(); 55 void OpenCustomizeDialog();
59 56
60 ChromeViews::Label* welcome_label_; 57 ChromeViews::Label* welcome_label_;
61 ChromeViews::Label* actions_label_; 58 ChromeViews::Label* actions_label_;
62 ChromeViews::Label* actions_import_; 59 ChromeViews::Label* actions_import_;
63 ChromeViews::Label* actions_shorcuts_; 60 ChromeViews::Label* actions_shorcuts_;
64 ChromeViews::Link* customize_link_; 61 ChromeViews::Link* customize_link_;
65 bool customize_selected_; 62 bool customize_selected_;
66 63
67 DISALLOW_EVIL_CONSTRUCTORS(FirstRunView); 64 DISALLOW_COPY_AND_ASSIGN(FirstRunView);
68 }; 65 };
69 66
70 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_H__ 67 #endif // CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_H_
71
OLDNEW
« no previous file with comments | « chrome/browser/views/first_run_customize_view.cc ('k') | chrome/browser/views/first_run_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698