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

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: 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..7693a68b7a44443891328ed58dbd8ec2421d3a3b 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -26,6 +26,11 @@ class NTPResourceCache : public content::NotificationObserver,
explicit NTPResourceCache(Profile* profile);
virtual ~NTPResourceCache();
+ // 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 InvalidateNewTabCache();
+
RefCountedMemory* GetNewTabHTML(bool is_incognito);
RefCountedMemory* GetNewTabCSS(bool is_incognito);
@@ -57,6 +62,8 @@ class NTPResourceCache : public content::NotificationObserver,
PrefChangeRegistrar pref_change_registrar_;
#endif
+ bool isSwipeTrackingFromScrollEventsEnabled_;
+
DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
};

Powered by Google App Engine
This is Rietveld 408576698