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

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

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Address Vollick comments Created 4 years, 11 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
2 /* 1 /*
3 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 3 *
5 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
7 * met: 6 * met:
8 * 7 *
9 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "WebTextDirection.h" 44 #include "WebTextDirection.h"
46 #include "WebTextInputInfo.h" 45 #include "WebTextInputInfo.h"
47 46
48 namespace blink { 47 namespace blink {
49 48
50 class WebCompositeAndReadbackAsyncCallback; 49 class WebCompositeAndReadbackAsyncCallback;
51 class WebInputEvent; 50 class WebInputEvent;
52 class WebLayoutAndPaintAsyncCallback; 51 class WebLayoutAndPaintAsyncCallback;
53 class WebPagePopup; 52 class WebPagePopup;
54 class WebString; 53 class WebString;
54 struct WebCompositorMutations;
55 struct WebPoint; 55 struct WebPoint;
56 template <typename T> class WebVector; 56 template <typename T> class WebVector;
57 57
58 class WebWidget { 58 class WebWidget {
59 public: 59 public:
60 // This method closes and deletes the WebWidget. 60 // This method closes and deletes the WebWidget.
61 virtual void close() { } 61 virtual void close() { }
62 62
63 // Returns the current size of the WebWidget. 63 // Returns the current size of the WebWidget.
64 virtual WebSize size() { return WebSize(); } 64 virtual WebSize size() { return WebSize(); }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 float topControlsShownRatioDelta) { } 141 float topControlsShownRatioDelta) { }
142 142
143 // Records composite or render events for the Performance Timeline. 143 // Records composite or render events for the Performance Timeline.
144 // See http://w3c.github.io/frame-timing/ for definition of terms. 144 // See http://w3c.github.io/frame-timing/ for definition of terms.
145 enum FrameTimingEventType { 145 enum FrameTimingEventType {
146 CompositeEvent, 146 CompositeEvent,
147 RenderEvent, 147 RenderEvent,
148 }; 148 };
149 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t RectId, const WebVector<WebFrameTimingEvent>& events) { } 149 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t RectId, const WebVector<WebFrameTimingEvent>& events) { }
150 150
151 // Called to notify the WebWidget about the mutations made to the elements f rom a compositor worker.
152 virtual void applyMutations(const WebCompositorMutations&) {}
jbroman 2016/01/23 23:55:10 nit: Would you mind including "compositor" or simi
majidvp 2016/01/25 20:40:11 Done.
153
151 // Called to inform the WebWidget that mouse capture was lost. 154 // Called to inform the WebWidget that mouse capture was lost.
152 virtual void mouseCaptureLost() { } 155 virtual void mouseCaptureLost() { }
153 156
154 // Called to inform the WebWidget that it has gained or lost keyboard focus. 157 // Called to inform the WebWidget that it has gained or lost keyboard focus.
155 virtual void setFocus(bool) { } 158 virtual void setFocus(bool) { }
156 159
157 // Called to inform the WebWidget of a new composition text. 160 // Called to inform the WebWidget of a new composition text.
158 // If selectionStart and selectionEnd has the same value, then it indicates 161 // If selectionStart and selectionEnd has the same value, then it indicates
159 // the input caret position. If the text is empty, then the existing 162 // the input caret position. If the text is empty, then the existing
160 // composition text will be cancelled. 163 // 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. 267 // control what are valid states for top controls and if it should animate.
265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 268 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
266 269
267 protected: 270 protected:
268 ~WebWidget() { } 271 ~WebWidget() { }
269 }; 272 };
270 273
271 } // namespace blink 274 } // namespace blink
272 275
273 #endif 276 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698