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

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

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « third_party/WebKit/public/web/WebView.h ('k') | ui/compositor/compositor.h » ('j') | 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 /* 2 /*
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 19 matching lines...) Expand all
30 */ 30 */
31 31
32 #ifndef WebWidget_h 32 #ifndef WebWidget_h
33 #define WebWidget_h 33 #define WebWidget_h
34 34
35 #include "../platform/WebCanvas.h" 35 #include "../platform/WebCanvas.h"
36 #include "../platform/WebCommon.h" 36 #include "../platform/WebCommon.h"
37 #include "../platform/WebFloatSize.h" 37 #include "../platform/WebFloatSize.h"
38 #include "../platform/WebFrameTimingEvent.h" 38 #include "../platform/WebFrameTimingEvent.h"
39 #include "../platform/WebInputEventResult.h" 39 #include "../platform/WebInputEventResult.h"
40 #include "../platform/WebMutation.h"
40 #include "../platform/WebPoint.h" 41 #include "../platform/WebPoint.h"
41 #include "../platform/WebRect.h" 42 #include "../platform/WebRect.h"
42 #include "../platform/WebSize.h" 43 #include "../platform/WebSize.h"
43 #include "../platform/WebTopControlsState.h" 44 #include "../platform/WebTopControlsState.h"
44 #include "WebCompositionUnderline.h" 45 #include "WebCompositionUnderline.h"
45 #include "WebTextDirection.h" 46 #include "WebTextDirection.h"
46 #include "WebTextInputInfo.h" 47 #include "WebTextInputInfo.h"
47 48
49 #include <map>
50
48 namespace blink { 51 namespace blink {
49 52
50 class WebCompositeAndReadbackAsyncCallback; 53 class WebCompositeAndReadbackAsyncCallback;
51 class WebInputEvent; 54 class WebInputEvent;
52 class WebLayoutAndPaintAsyncCallback; 55 class WebLayoutAndPaintAsyncCallback;
53 class WebPagePopup; 56 class WebPagePopup;
54 class WebString; 57 class WebString;
55 struct WebPoint; 58 struct WebPoint;
56 template <typename T> class WebVector; 59 template <typename T> class WebVector;
57 60
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 float topControlsShownRatioDelta) { } 144 float topControlsShownRatioDelta) { }
142 145
143 // Records composite or render events for the Performance Timeline. 146 // Records composite or render events for the Performance Timeline.
144 // See http://w3c.github.io/frame-timing/ for definition of terms. 147 // See http://w3c.github.io/frame-timing/ for definition of terms.
145 enum FrameTimingEventType { 148 enum FrameTimingEventType {
146 CompositeEvent, 149 CompositeEvent,
147 RenderEvent, 150 RenderEvent,
148 }; 151 };
149 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t RectId, const WebVector<WebFrameTimingEvent>& events) { } 152 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t RectId, const WebVector<WebFrameTimingEvent>& events) { }
150 153
154 // Called to notify the WebWidget about the mutations made to the elements f rom a compositor worker.
155 virtual void applyMutations(const WebMutationMap& mutations) {}
156
157 // Called to notify the WebWidget that a commit has completed so that post
158 // commit work can be initiated.
159 virtual void didCommit() { }
160
151 // Called to inform the WebWidget that mouse capture was lost. 161 // Called to inform the WebWidget that mouse capture was lost.
152 virtual void mouseCaptureLost() { } 162 virtual void mouseCaptureLost() { }
153 163
154 // Called to inform the WebWidget that it has gained or lost keyboard focus. 164 // Called to inform the WebWidget that it has gained or lost keyboard focus.
155 virtual void setFocus(bool) { } 165 virtual void setFocus(bool) { }
156 166
157 // Called to inform the WebWidget of a new composition text. 167 // Called to inform the WebWidget of a new composition text.
158 // If selectionStart and selectionEnd has the same value, then it indicates 168 // If selectionStart and selectionEnd has the same value, then it indicates
159 // the input caret position. If the text is empty, then the existing 169 // the input caret position. If the text is empty, then the existing
160 // composition text will be cancelled. 170 // composition text will be cancelled.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // control what are valid states for top controls and if it should animate. 274 // control what are valid states for top controls and if it should animate.
265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 275 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
266 276
267 protected: 277 protected:
268 ~WebWidget() { } 278 ~WebWidget() { }
269 }; 279 };
270 280
271 } // namespace blink 281 } // namespace blink
272 282
273 #endif 283 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebView.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698