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

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

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 1 month 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 | « third_party/WebKit/public/web/WebView.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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebWidget_h 31 #ifndef WebWidget_h
32 #define WebWidget_h 32 #define WebWidget_h
33 33
34 #include "../platform/WebBrowserControlsState.h"
34 #include "../platform/WebCanvas.h" 35 #include "../platform/WebCanvas.h"
35 #include "../platform/WebCommon.h" 36 #include "../platform/WebCommon.h"
36 #include "../platform/WebFloatSize.h" 37 #include "../platform/WebFloatSize.h"
37 #include "../platform/WebInputEventResult.h" 38 #include "../platform/WebInputEventResult.h"
38 #include "../platform/WebPoint.h" 39 #include "../platform/WebPoint.h"
39 #include "../platform/WebRect.h" 40 #include "../platform/WebRect.h"
40 #include "../platform/WebSize.h" 41 #include "../platform/WebSize.h"
41 #include "../platform/WebTextInputInfo.h" 42 #include "../platform/WebTextInputInfo.h"
42 #include "../platform/WebTopControlsState.h"
43 #include "WebCompositionUnderline.h" 43 #include "WebCompositionUnderline.h"
44 #include "WebRange.h" 44 #include "WebRange.h"
45 #include "WebTextDirection.h" 45 #include "WebTextDirection.h"
46 46
47 namespace blink { 47 namespace blink {
48 48
49 class WebCompositeAndReadbackAsyncCallback; 49 class WebCompositeAndReadbackAsyncCallback;
50 class WebInputEvent; 50 class WebInputEvent;
51 class WebLayoutAndPaintAsyncCallback; 51 class WebLayoutAndPaintAsyncCallback;
52 class WebPagePopup; 52 class WebPagePopup;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Check whether the given point hits any registered touch event handlers. 127 // Check whether the given point hits any registered touch event handlers.
128 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 128 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
129 129
130 // Applies viewport related properties during a commit from the compositor 130 // Applies viewport related properties during a commit from the compositor
131 // thread. 131 // thread.
132 virtual void applyViewportDeltas(const WebFloatSize& visualViewportDelta, 132 virtual void applyViewportDeltas(const WebFloatSize& visualViewportDelta,
133 const WebFloatSize& layoutViewportDelta, 133 const WebFloatSize& layoutViewportDelta,
134 const WebFloatSize& elasticOverscrollDelta, 134 const WebFloatSize& elasticOverscrollDelta,
135 float scaleFactor, 135 float scaleFactor,
136 float topControlsShownRatioDelta) {} 136 float browserControlsShownRatioDelta) {}
137 137
138 // Called to inform the WebWidget that mouse capture was lost. 138 // Called to inform the WebWidget that mouse capture was lost.
139 virtual void mouseCaptureLost() {} 139 virtual void mouseCaptureLost() {}
140 140
141 // Called to inform the WebWidget that it has gained or lost keyboard focus. 141 // Called to inform the WebWidget that it has gained or lost keyboard focus.
142 virtual void setFocus(bool) {} 142 virtual void setFocus(bool) {}
143 143
144 // Called to inform the WebWidget of a new composition text. 144 // Called to inform the WebWidget of a new composition text.
145 // If selectionStart and selectionEnd has the same value, then it indicates 145 // If selectionStart and selectionEnd has the same value, then it indicates
146 // the input caret position. If the text is empty, then the existing 146 // the input caret position. If the text is empty, then the existing
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // The page background color. Can be used for filling in areas without 238 // The page background color. Can be used for filling in areas without
239 // content. 239 // content.
240 virtual WebColor backgroundColor() const { 240 virtual WebColor backgroundColor() const {
241 return 0xFFFFFFFF; /* SK_ColorWHITE */ 241 return 0xFFFFFFFF; /* SK_ColorWHITE */
242 } 242 }
243 243
244 // The currently open page popup, which are calendar and datalist pickers 244 // The currently open page popup, which are calendar and datalist pickers
245 // but not the select popup. 245 // but not the select popup.
246 virtual WebPagePopup* pagePopup() const { return 0; } 246 virtual WebPagePopup* pagePopup() const { return 0; }
247 247
248 // Updates top controls constraints and current state. Allows embedder to 248 // Updates browser controls constraints and current state. Allows embedder to
249 // control what are valid states for top controls and if it should animate. 249 // control what are valid states for browser controls and if it should
250 virtual void updateTopControlsState(WebTopControlsState constraints, 250 // animate.
251 WebTopControlsState current, 251 virtual void updateBrowserControlsState(WebBrowserControlsState constraints,
252 bool animate) {} 252 WebBrowserControlsState current,
253 bool animate) {}
253 254
254 // Populate |bounds| with the composition character bounds for the ongoing 255 // Populate |bounds| with the composition character bounds for the ongoing
255 // composition. Returns false if there is no focused input or any ongoing 256 // composition. Returns false if there is no focused input or any ongoing
256 // composition. 257 // composition.
257 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) { 258 virtual bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) {
258 return false; 259 return false;
259 } 260 }
260 261
261 // Applies the range on the focused frame so that the text will later be 262 // Applies the range on the focused frame so that the text will later be
262 // replaced. 263 // replaced.
263 virtual void applyReplacementRange(const WebRange&) {} 264 virtual void applyReplacementRange(const WebRange&) {}
264 265
265 protected: 266 protected:
266 ~WebWidget() {} 267 ~WebWidget() {}
267 }; 268 };
268 269
269 } // namespace blink 270 } // namespace blink
270 271
271 #endif 272 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698