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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 8135001: Fixed behavior of the bookmark bar visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK_EQ instead of DCHECK Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/new_tab_ui.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.h b/chrome/browser/ui/webui/ntp/new_tab_ui.h
index 6c204f972bd87a68f87300c2de48ccfe7732a641..ee0b0de52eecc90f1029114ea5324dbd5e2f2ec6 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.h
@@ -9,7 +9,9 @@
#include <string>
#include "base/gtest_prod_util.h"
+#include "base/time.h"
#include "base/timer.h"
+#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/chrome_web_ui.h"
@@ -17,7 +19,6 @@
#include "content/common/notification_registrar.h"
class GURL;
-class MessageLoop;
class PrefService;
class Profile;
@@ -92,8 +93,14 @@ class NewTabUI : public ChromeWebUI,
// Returns true if the version was updated.
static bool UpdateUserPrefsVersion(PrefService* prefs);
+ // Overridden from ChromeWebUI. Determines if the bookmarks bar can be shown
+ // detached from the location bar.
+ virtual bool CanShowBookmarkBar() const OVERRIDE;
+
NotificationRegistrar registrar_;
+ // Tracks updates of the kShowBookmarkBar preference.
+ PrefChangeRegistrar pref_change_registrar_;
// The time when we started benchmarking.
base::TimeTicks start_;
// The last time we got a paint notification.
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698