OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace IPC { | 38 namespace IPC { |
39 class SyncMessage; | 39 class SyncMessage; |
40 } | 40 } |
41 | 41 |
42 namespace WebKit { | 42 namespace WebKit { |
43 class WebMouseEvent; | 43 class WebMouseEvent; |
44 class WebTouchEvent; | 44 class WebTouchEvent; |
45 } | 45 } |
46 | 46 |
47 namespace skia { | |
48 class PlatformCanvas; | |
49 } | |
50 | |
51 namespace ui { | 47 namespace ui { |
52 class Range; | 48 class Range; |
53 } | 49 } |
54 | 50 |
55 namespace webkit { | 51 namespace webkit { |
56 namespace npapi { | 52 namespace npapi { |
57 struct WebPluginGeometry; | 53 struct WebPluginGeometry; |
58 } // namespace npapi | 54 } // namespace npapi |
59 | 55 |
60 namespace ppapi { | 56 namespace ppapi { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // Sets whether this RenderWidget has been swapped out to be displayed by | 213 // Sets whether this RenderWidget has been swapped out to be displayed by |
218 // a RenderWidget in a different process. If so, no new IPC messages will be | 214 // a RenderWidget in a different process. If so, no new IPC messages will be |
219 // sent (only ACKs) and the process is free to exit when there are no other | 215 // sent (only ACKs) and the process is free to exit when there are no other |
220 // active RenderWidgets. | 216 // active RenderWidgets. |
221 void SetSwappedOut(bool is_swapped_out); | 217 void SetSwappedOut(bool is_swapped_out); |
222 | 218 |
223 // Paints the given rectangular region of the WebWidget into canvas (a | 219 // Paints the given rectangular region of the WebWidget into canvas (a |
224 // shared memory segment returned by AllocPaintBuf on Windows). The caller | 220 // shared memory segment returned by AllocPaintBuf on Windows). The caller |
225 // must ensure that the given rect fits within the bounds of the WebWidget. | 221 // must ensure that the given rect fits within the bounds of the WebWidget. |
226 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, | 222 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, |
227 skia::PlatformCanvas* canvas); | 223 SkCanvas* canvas); |
228 | 224 |
229 // Paints a border at the given rect for debugging purposes. | 225 // Paints a border at the given rect for debugging purposes. |
230 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); | 226 void PaintDebugBorder(const gfx::Rect& rect, SkCanvas* canvas); |
231 | 227 |
232 bool IsRenderingVSynced(); | 228 bool IsRenderingVSynced(); |
233 void AnimationCallback(); | 229 void AnimationCallback(); |
234 void AnimateIfNeeded(); | 230 void AnimateIfNeeded(); |
235 void InvalidationCallback(); | 231 void InvalidationCallback(); |
236 void DoDeferredUpdateAndSendInputAck(); | 232 void DoDeferredUpdateAndSendInputAck(); |
237 void DoDeferredUpdate(); | 233 void DoDeferredUpdate(); |
238 void DoDeferredClose(); | 234 void DoDeferredClose(); |
239 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); | 235 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); |
240 | 236 |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 | 606 |
611 // Specified whether the compositor will run in its own thread. | 607 // Specified whether the compositor will run in its own thread. |
612 bool is_threaded_compositing_enabled_; | 608 bool is_threaded_compositing_enabled_; |
613 | 609 |
614 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 610 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
615 }; | 611 }; |
616 | 612 |
617 } // namespace content | 613 } // namespace content |
618 | 614 |
619 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 615 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |