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

Side by Side Diff: chrome/browser/views/options/content_page_view.h

Issue 270081: Facelifts to sync UI (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_OPTIONS_CONTENT_PAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_CONTENT_PAGE_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_OPTIONS_CONTENT_PAGE_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_OPTIONS_CONTENT_PAGE_VIEW_H_
7 7
8 #include "chrome/browser/sync/profile_sync_service.h" 8 #include "chrome/browser/sync/profile_sync_service.h"
9 #include "chrome/browser/views/options/options_page_view.h" 9 #include "chrome/browser/views/options/options_page_view.h"
10 #include "chrome/browser/views/confirm_message_box_dialog.h"
10 #include "chrome/common/pref_member.h" 11 #include "chrome/common/pref_member.h"
11 #include "views/controls/button/button.h" 12 #include "views/controls/button/button.h"
12 #include "views/controls/link.h" 13 #include "views/controls/link.h"
13 #include "views/view.h" 14 #include "views/view.h"
14 15
15 namespace views { 16 namespace views {
16 class Checkbox; 17 class Checkbox;
17 class Label; 18 class Label;
18 class NativeButton; 19 class NativeButton;
19 class RadioButton; 20 class RadioButton;
20 } 21 }
21 class FileDisplayArea; 22 class FileDisplayArea;
22 class OptionsGroupView; 23 class OptionsGroupView;
23 class PrefService; 24 class PrefService;
24 25
25 //////////////////////////////////////////////////////////////////////////////// 26 ////////////////////////////////////////////////////////////////////////////////
26 // ContentPageView 27 // ContentPageView
27 28
28 class ContentPageView : public OptionsPageView, 29 class ContentPageView : public OptionsPageView,
29 #ifdef CHROME_PERSONALIZATION 30 #ifdef CHROME_PERSONALIZATION
30 public views::LinkController, 31 public views::LinkController,
31 public ProfileSyncServiceObserver, 32 public ProfileSyncServiceObserver,
32 #endif 33 #endif
33 public views::ButtonListener { 34 public views::ButtonListener,
35 public ConfirmMessageBoxObserver {
34 public: 36 public:
35 explicit ContentPageView(Profile* profile); 37 explicit ContentPageView(Profile* profile);
36 virtual ~ContentPageView(); 38 virtual ~ContentPageView();
37 39
38 // views::ButtonListener implementation: 40 // views::ButtonListener implementation:
39 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 41 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
40 42
41 // views::LinkController method. 43 // views::LinkController method.
42 virtual void LinkActivated(views::Link* source, int event_flags); 44 virtual void LinkActivated(views::Link* source, int event_flags);
43 45
46 // ConfirmMessageBoxObserver implementation.
47 virtual void OnConfirmMessageAccept();
48
44 #ifdef CHROME_PERSONALIZATION 49 #ifdef CHROME_PERSONALIZATION
45 // ProfileSyncServiceObserver method. 50 // ProfileSyncServiceObserver method.
46 virtual void OnStateChanged(); 51 virtual void OnStateChanged();
47 #endif 52 #endif
48 53
49 protected: 54 protected:
50 // OptionsPageView implementation: 55 // OptionsPageView implementation:
51 virtual void InitControlLayout(); 56 virtual void InitControlLayout();
52 virtual void NotifyPrefChanged(const std::wstring* pref_name); 57 virtual void NotifyPrefChanged(const std::wstring* pref_name);
53 58
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 #ifdef CHROME_PERSONALIZATION 119 #ifdef CHROME_PERSONALIZATION
115 // Cached pointer to ProfileSyncService, if it exists. Kept up to date 120 // Cached pointer to ProfileSyncService, if it exists. Kept up to date
116 // and NULL-ed out on destruction. 121 // and NULL-ed out on destruction.
117 ProfileSyncService* sync_service_; 122 ProfileSyncService* sync_service_;
118 #endif 123 #endif
119 124
120 DISALLOW_COPY_AND_ASSIGN(ContentPageView); 125 DISALLOW_COPY_AND_ASSIGN(ContentPageView);
121 }; 126 };
122 127
123 #endif // CHROME_BROWSER_VIEWS_OPTIONS_CONTENT_PAGE_VIEW_H_ 128 #endif // CHROME_BROWSER_VIEWS_OPTIONS_CONTENT_PAGE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/confirm_message_box_dialog.cc ('k') | chrome/browser/views/options/content_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698