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

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

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebViewClient.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class WebCompositeAndReadbackAsyncCallback; 46 class WebCompositeAndReadbackAsyncCallback;
47 class WebInputEvent; 47 class WebInputEvent;
48 class WebLayerTreeView; 48 class WebLayerTreeView;
49 class WebMouseEvent; 49 class WebMouseEvent;
50 class WebPagePopup; 50 class WebPagePopup;
51 class WebString; 51 class WebString;
52 class WebWidgetClient; 52 class WebWidgetClient;
53 struct WebPoint; 53 struct WebPoint;
54 struct WebRenderingStats; 54 struct WebRenderingStats;
55 struct WebTeleportValue;
55 template <typename T> class WebVector; 56 template <typename T> class WebVector;
56 57
57 class WebWidget { 58 class WebWidget {
58 public: 59 public:
59 // This method closes and deletes the WebWidget. 60 // This method closes and deletes the WebWidget.
60 virtual void close() { } 61 virtual void close() { }
61 62
62 // Returns the current size of the WebWidget. 63 // Returns the current size of the WebWidget.
63 virtual WebSize size() { return WebSize(); } 64 virtual WebSize size() { return WebSize(); }
64 65
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 float topControlsDelta) { } 155 float topControlsDelta) { }
155 156
156 // Applies viewport related properties during a commit from the compositor 157 // Applies viewport related properties during a commit from the compositor
157 // thread. 158 // thread.
158 virtual void applyViewportDeltas( 159 virtual void applyViewportDeltas(
159 const WebSize& pinchViewportDelta, 160 const WebSize& pinchViewportDelta,
160 const WebSize& mainFrameDelta, 161 const WebSize& mainFrameDelta,
161 float scaleFactor, 162 float scaleFactor,
162 float topControlsDelta) { } 163 float topControlsDelta) { }
163 164
165 // Applies values that were updated via compositor driven effects to their
166 // correspending main thread counterparts.
167 virtual void applyTeleportValues(const WebVector<WebTeleportValue>& values) { }
168
164 // Called to inform the WebWidget that mouse capture was lost. 169 // Called to inform the WebWidget that mouse capture was lost.
165 virtual void mouseCaptureLost() { } 170 virtual void mouseCaptureLost() { }
166 171
167 // Called to inform the WebWidget that it has gained or lost keyboard focus. 172 // Called to inform the WebWidget that it has gained or lost keyboard focus.
168 virtual void setFocus(bool) { } 173 virtual void setFocus(bool) { }
169 174
170 // Called to inform the WebWidget of a new composition text. 175 // Called to inform the WebWidget of a new composition text.
171 // If selectionStart and selectionEnd has the same value, then it indicates 176 // If selectionStart and selectionEnd has the same value, then it indicates
172 // the input caret position. If the text is empty, then the existing 177 // the input caret position. If the text is empty, then the existing
173 // composition text will be cancelled. 178 // composition text will be cancelled.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Sets the height subtracted from the Widget to accomodate the top controls . 278 // Sets the height subtracted from the Widget to accomodate the top controls .
274 virtual void setTopControlsLayoutHeight(float) { } 279 virtual void setTopControlsLayoutHeight(float) { }
275 280
276 protected: 281 protected:
277 ~WebWidget() { } 282 ~WebWidget() { }
278 }; 283 };
279 284
280 } // namespace blink 285 } // namespace blink
281 286
282 #endif 287 #endif
OLDNEW
« no previous file with comments | « public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698