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

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

Issue 513053003: Made Blink aware of top controls offset (Blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
« no previous file with comments | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Called to inform the WebWidget of an input event. Returns true if 136 // Called to inform the WebWidget of an input event. Returns true if
137 // the event has been processed, false otherwise. 137 // the event has been processed, false otherwise.
138 virtual bool handleInputEvent(const WebInputEvent&) { return false; } 138 virtual bool handleInputEvent(const WebInputEvent&) { return false; }
139 139
140 // Called to inform the WebWidget of the mouse cursor's visibility. 140 // Called to inform the WebWidget of the mouse cursor's visibility.
141 virtual void setCursorVisibilityState(bool isVisible) { } 141 virtual void setCursorVisibilityState(bool isVisible) { }
142 142
143 // Check whether the given point hits any registered touch event handlers. 143 // Check whether the given point hits any registered touch event handlers.
144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
145 145
146 // Applies a scroll delta to the root layer, which is bundled with a page 146 // FIXME(bokan): Remove once Chromium-side patch lands
147 // scale factor that may apply a CSS transform on the whole document (used 147 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact or)
148 // for mobile-device pinch zooming). This is triggered by events sent to the 148 {
149 // compositor thread. 149 applyViewportDeltas(scrollDelta, scaleFactor, 0);
150 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact or) { } 150 }
151
152 // Applies viewport related properties during a commit from the compositor
153 // thread.
154 virtual void applyViewportDeltas(
155 const WebSize& scrollDelta,
156 float scaleFactor,
157 float topControlsDelta) { }
151 158
152 // Called to inform the WebWidget that mouse capture was lost. 159 // Called to inform the WebWidget that mouse capture was lost.
153 virtual void mouseCaptureLost() { } 160 virtual void mouseCaptureLost() { }
154 161
155 // Called to inform the WebWidget that it has gained or lost keyboard focus. 162 // Called to inform the WebWidget that it has gained or lost keyboard focus.
156 virtual void setFocus(bool) { } 163 virtual void setFocus(bool) { }
157 164
158 // Called to inform the WebWidget of a new composition text. 165 // Called to inform the WebWidget of a new composition text.
159 // If selectionStart and selectionEnd has the same value, then it indicates 166 // If selectionStart and selectionEnd has the same value, then it indicates
160 // the input caret position. If the text is empty, then the existing 167 // the input caret position. If the text is empty, then the existing
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // content. 261 // content.
255 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 262 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
256 263
257 protected: 264 protected:
258 ~WebWidget() { } 265 ~WebWidget() { }
259 }; 266 };
260 267
261 } // namespace blink 268 } // namespace blink
262 269
263 #endif 270 #endif
OLDNEW
« no previous file with comments | « public/platform/WebLayerTreeView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698