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

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

Issue 10092017: Mac: Prevent NTP mousewheel events from being suppressed on Lion. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix grammar & style. Created 8 years, 8 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
Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.h
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
index 08f95643cfee4df4fb9f6dce41380a9181604fb9..6fd3c8bdbabc02d8d7c162d467b5b40af48fd247 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -40,6 +40,11 @@ class NTPResourceCache : public content::NotificationObserver,
void CreateNewTabHTML();
scoped_refptr<RefCountedMemory> new_tab_html_;
+ // Helper to determine if the resource cache should be invalidated.
+ // This is called on every page load, and can be used to check values that
+ // don't generate a notification when changed (e.g., system preferences).
+ bool NewTabCacheNeedsRefresh();
+
#if !defined(OS_ANDROID)
// Returns a message describing any newly-added sync types, or an empty
// string if all types have already been acknowledged.
@@ -57,6 +62,8 @@ class NTPResourceCache : public content::NotificationObserver,
PrefChangeRegistrar pref_change_registrar_;
#endif
+ bool is_swipe_tracking_from_scroll_events_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
};
« no previous file with comments | « chrome/browser/resources/shared/js/cr/ui/card_slider.js ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698