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

Side by Side Diff: public/web/WebWidget.h

Issue 197213011: Selectively disable rubber banding on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual void setCompositorSurfaceReady() { } 126 virtual void setCompositorSurfaceReady() { }
127 127
128 // Called to inform the WebWidget of a change in theme. 128 // Called to inform the WebWidget of a change in theme.
129 // Implementors that cache rendered copies of widgets need to re-render 129 // Implementors that cache rendered copies of widgets need to re-render
130 // on receiving this message 130 // on receiving this message
131 virtual void themeChanged() { } 131 virtual void themeChanged() { }
132 132
133 // Called to inform the WebWidget of an input event. Returns true if 133 // Called to inform the WebWidget of an input event. Returns true if
134 // the event has been processed, false otherwise. 134 // the event has been processed, false otherwise.
135 virtual bool handleInputEvent(const WebInputEvent&) { return false; } 135 virtual bool handleInputEvent(const WebInputEvent&) { return false; }
136 virtual bool handleInputEvent(const WebInputEvent&, bool can_rubberband_left , bool can_rubberband_right) { return false; }
136 137
137 // Called to inform the WebWidget of the mouse cursor's visibility. 138 // Called to inform the WebWidget of the mouse cursor's visibility.
138 virtual void setCursorVisibilityState(bool isVisible) { } 139 virtual void setCursorVisibilityState(bool isVisible) { }
139 140
140 // Check whether the given point hits any registered touch event handlers. 141 // Check whether the given point hits any registered touch event handlers.
141 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 142 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
142 143
143 // Applies a scroll delta to the root layer, which is bundled with a page 144 // Applies a scroll delta to the root layer, which is bundled with a page
144 // scale factor that may apply a CSS transform on the whole document (used 145 // scale factor that may apply a CSS transform on the whole document (used
145 // for mobile-device pinch zooming). This is triggered by events sent to the 146 // for mobile-device pinch zooming). This is triggered by events sent to the
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // content. 252 // content.
252 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 253 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
253 254
254 protected: 255 protected:
255 ~WebWidget() { } 256 ~WebWidget() { }
256 }; 257 };
257 258
258 } // namespace blink 259 } // namespace blink
259 260
260 #endif 261 #endif
OLDNEW
« Source/platform/mac/ScrollElasticityController.mm ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698