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

Unified Diff: content/renderer/render_view.h

Issue 7635011: Pipe "is pinned to left/right", "has horizontal/vertical scrollbar", (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 4 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 | « content/common/view_messages.h ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.h
diff --git a/content/renderer/render_view.h b/content/renderer/render_view.h
index b34322c0c68432d6a3025b2dfbdb49cf4d4e3267..f0835284e395ff44355838b3898516f5be3cb345 100644
--- a/content/renderer/render_view.h
+++ b/content/renderer/render_view.h
@@ -559,6 +559,8 @@ class RenderView : public RenderWidget,
unsigned long long event_id);
virtual void didUpdateLayout(WebKit::WebFrame* frame);
virtual void didChangeScrollOffset(WebKit::WebFrame* frame);
+ virtual void numberOfWheelEventHandlersChanged(unsigned numHandlers);
jam 2011/08/12 17:32:26 nit: num_handlers
Nico 2011/08/12 17:37:50 Done.
+ virtual void didChangeContentsSize(WebKit::WebFrame*, const WebKit::WebSize&);
jam 2011/08/12 17:32:26 chrome style is to always name the parameters in t
Nico 2011/08/12 17:37:50 Done.
virtual void reportFindInPageMatchCount(int request_id,
int count,
bool final_update);
@@ -732,6 +734,9 @@ class RenderView : public RenderWidget,
// Send queued accessibility notifications from the renderer to the browser.
void SendPendingAccessibilityNotifications();
+ // Called when the "pinned to left/right edge" state needs to be updated.
+ void updateScrollState(WebKit::WebFrame* frame);
jam 2011/08/12 17:32:26 chrome style is UpdateScrollState
Nico 2011/08/12 17:37:50 Done.
+
// IPC message handlers ------------------------------------------------------
//
// The documentation for these functions should be in
@@ -1084,6 +1089,15 @@ class RenderView : public RenderWidget,
// states for the sizes).
base::OneShotTimer<RenderView> check_preferred_size_timer_;
+ // These store the "is main frame is scrolled all the way to the left
+ // or right" state that was last sent to the browser.
+ bool cached_is_main_frame_pinned_to_left_;
+ bool cached_is_main_frame_pinned_to_right_;
+
+ // These store the "has scrollbars" state last sent to the browser.
+ bool cached_has_main_frame_horizontal_scrollbar_;
+ bool cached_has_main_frame_vertical_scrollbar_;
+
#if defined(OS_MACOSX)
// Track the fake plugin window handles allocated on the browser side for
// the accelerated compositor and (currently) accelerated plugins so that
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698