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

Unified Diff: chrome/browser/dom_ui/shown_sections_handler.h

Issue 3455007: Make it possible to hide "most visited" on nnnnnnntp (Closed)
Patch Set: fix revert reasons Created 10 years, 3 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 | « no previous file | chrome/browser/dom_ui/shown_sections_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/shown_sections_handler.h
diff --git a/chrome/browser/dom_ui/shown_sections_handler.h b/chrome/browser/dom_ui/shown_sections_handler.h
index a281346104c8b28b5117d8e0eeac5d0b5f5f596f..be077354a34ee5a09cfb62b597338710c8729a8d 100644
--- a/chrome/browser/dom_ui/shown_sections_handler.h
+++ b/chrome/browser/dom_ui/shown_sections_handler.h
@@ -18,8 +18,16 @@ class PrefService;
// Currently, only the THUMB and APPS sections can be toggled by the user. Other
// sections are shown automatically if they have data, and hidden otherwise.
enum Section {
- THUMB = 1,
- APPS = 64
+ // If one of these is set, the corresponding section shows large thumbnails,
+ // else it shows only a small overview list.
+ THUMB = 1 << 0,
+ APPS = 1 << 6,
+
+ // If one of these is set, then the corresponding section is shown minimized
+ // at the bottom of the NTP and no data is directly visible on the NTP.
+ MINIMIZED_THUMB = 1 << (0 + 16),
+ MINIMIZED_RECENT = 1 << (2 + 16),
+ MINIMIZED_APPS = 1 << (6 + 16),
};
class ShownSectionsHandler : public DOMMessageHandler,
« no previous file with comments | « no previous file | chrome/browser/dom_ui/shown_sections_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698