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

Side by Side Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 9477018: retry r123804 - ntp theme fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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) 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_WEBUI_NTP_NEW_TAB_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/timer.h" 13 #include "base/timer.h"
14 #include "chrome/browser/prefs/pref_change_registrar.h"
14 #include "chrome/browser/sessions/tab_restore_service.h" 15 #include "chrome/browser/sessions/tab_restore_service.h"
15 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 16 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
16 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 18 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/browser/web_ui_controller.h" 19 #include "content/public/browser/web_ui_controller.h"
19 20
20 class GURL; 21 class GURL;
21 class PrefService; 22 class PrefService;
22 class Profile; 23 class Profile;
23 24
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // The last time we got a paint notification. 110 // The last time we got a paint notification.
110 base::TimeTicks last_paint_; 111 base::TimeTicks last_paint_;
111 // Scoping so we can be sure our timeouts don't outlive us. 112 // Scoping so we can be sure our timeouts don't outlive us.
112 base::OneShotTimer<NewTabUI> timer_; 113 base::OneShotTimer<NewTabUI> timer_;
113 // The preference version. This used for migrating prefs of the NTP. 114 // The preference version. This used for migrating prefs of the NTP.
114 static const int current_pref_version_ = 3; 115 static const int current_pref_version_ = 3;
115 116
116 // If the sync promo NTP bubble is being shown. 117 // If the sync promo NTP bubble is being shown.
117 bool showing_sync_bubble_; 118 bool showing_sync_bubble_;
118 119
120 PrefChangeRegistrar pref_change_registrar_;
121
119 DISALLOW_COPY_AND_ASSIGN(NewTabUI); 122 DISALLOW_COPY_AND_ASSIGN(NewTabUI);
120 }; 123 };
121 124
122 extern const char kWebStoreLinkExperiment[]; 125 extern const char kWebStoreLinkExperiment[];
123 126
124 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_ 127 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698