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 29 matching lines...) Expand all Loading... |
40 namespace IPC { | 40 namespace IPC { |
41 class SyncMessage; | 41 class SyncMessage; |
42 } | 42 } |
43 | 43 |
44 namespace WebKit { | 44 namespace WebKit { |
45 class WebGestureEvent; | 45 class WebGestureEvent; |
46 class WebMouseEvent; | 46 class WebMouseEvent; |
47 class WebTouchEvent; | 47 class WebTouchEvent; |
48 } | 48 } |
49 | 49 |
50 namespace skia { | |
51 class PlatformCanvas; | |
52 } | |
53 | |
54 namespace ui { | 50 namespace ui { |
55 class Range; | 51 class Range; |
56 } | 52 } |
57 | 53 |
58 namespace webkit { | 54 namespace webkit { |
59 namespace npapi { | 55 namespace npapi { |
60 struct WebPluginGeometry; | 56 struct WebPluginGeometry; |
61 } // namespace npapi | 57 } // namespace npapi |
62 | 58 |
63 namespace ppapi { | 59 namespace ppapi { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // Sets whether this RenderWidget has been swapped out to be displayed by | 216 // Sets whether this RenderWidget has been swapped out to be displayed by |
221 // a RenderWidget in a different process. If so, no new IPC messages will be | 217 // a RenderWidget in a different process. If so, no new IPC messages will be |
222 // sent (only ACKs) and the process is free to exit when there are no other | 218 // sent (only ACKs) and the process is free to exit when there are no other |
223 // active RenderWidgets. | 219 // active RenderWidgets. |
224 void SetSwappedOut(bool is_swapped_out); | 220 void SetSwappedOut(bool is_swapped_out); |
225 | 221 |
226 // Paints the given rectangular region of the WebWidget into canvas (a | 222 // Paints the given rectangular region of the WebWidget into canvas (a |
227 // shared memory segment returned by AllocPaintBuf on Windows). The caller | 223 // shared memory segment returned by AllocPaintBuf on Windows). The caller |
228 // must ensure that the given rect fits within the bounds of the WebWidget. | 224 // must ensure that the given rect fits within the bounds of the WebWidget. |
229 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, | 225 void PaintRect(const gfx::Rect& rect, const gfx::Point& canvas_origin, |
230 skia::PlatformCanvas* canvas); | 226 SkCanvas* canvas); |
231 | 227 |
232 // Paints a border at the given rect for debugging purposes. | 228 // Paints a border at the given rect for debugging purposes. |
233 void PaintDebugBorder(const gfx::Rect& rect, skia::PlatformCanvas* canvas); | 229 void PaintDebugBorder(const gfx::Rect& rect, SkCanvas* canvas); |
234 | 230 |
235 bool IsRenderingVSynced(); | 231 bool IsRenderingVSynced(); |
236 void AnimationCallback(); | 232 void AnimationCallback(); |
237 void AnimateIfNeeded(); | 233 void AnimateIfNeeded(); |
238 void InvalidationCallback(); | 234 void InvalidationCallback(); |
239 void DoDeferredUpdateAndSendInputAck(); | 235 void DoDeferredUpdateAndSendInputAck(); |
240 void DoDeferredUpdate(); | 236 void DoDeferredUpdate(); |
241 void DoDeferredClose(); | 237 void DoDeferredClose(); |
242 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); | 238 void DoDeferredSetWindowRect(const WebKit::WebRect& pos); |
243 | 239 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 619 |
624 // Specified whether the compositor will run in its own thread. | 620 // Specified whether the compositor will run in its own thread. |
625 bool is_threaded_compositing_enabled_; | 621 bool is_threaded_compositing_enabled_; |
626 | 622 |
627 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 623 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
628 }; | 624 }; |
629 | 625 |
630 } // namespace content | 626 } // namespace content |
631 | 627 |
632 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 628 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |