OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 namespace gfx { | 44 namespace gfx { |
45 class Point; | 45 class Point; |
46 } | 46 } |
47 | 47 |
48 namespace skia { | 48 namespace skia { |
49 class PlatformCanvas; | 49 class PlatformCanvas; |
50 } | 50 } |
51 | 51 |
| 52 namespace ui { |
| 53 class Range; |
| 54 } |
| 55 |
52 namespace webkit { | 56 namespace webkit { |
53 namespace npapi { | 57 namespace npapi { |
54 struct WebPluginGeometry; | 58 struct WebPluginGeometry; |
55 } // namespace npapi | 59 } // namespace npapi |
56 | 60 |
57 namespace ppapi { | 61 namespace ppapi { |
58 class PluginInstance; | 62 class PluginInstance; |
59 } // namespace ppapi | 63 } // namespace ppapi |
60 } // namespace webkit | 64 } // namespace webkit |
61 | 65 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void OnRequestMoveAck(); | 203 void OnRequestMoveAck(); |
200 void OnHandleInputEvent(const IPC::Message& message); | 204 void OnHandleInputEvent(const IPC::Message& message); |
201 void OnMouseCaptureLost(); | 205 void OnMouseCaptureLost(); |
202 virtual void OnSetFocus(bool enable); | 206 virtual void OnSetFocus(bool enable); |
203 void OnSetInputMethodActive(bool is_active); | 207 void OnSetInputMethodActive(bool is_active); |
204 virtual void OnImeSetComposition( | 208 virtual void OnImeSetComposition( |
205 const string16& text, | 209 const string16& text, |
206 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 210 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
207 int selection_start, | 211 int selection_start, |
208 int selection_end); | 212 int selection_end); |
209 virtual void OnImeConfirmComposition(const string16& text); | 213 virtual void OnImeConfirmComposition( |
| 214 const string16& text, const ui::Range& replacement_range); |
210 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, | 215 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, |
211 int tag, | 216 int tag, |
212 const gfx::Size& page_size, | 217 const gfx::Size& page_size, |
213 const gfx::Size& desired_size); | 218 const gfx::Size& desired_size); |
214 void OnMsgRepaint(const gfx::Size& size_to_paint); | 219 void OnMsgRepaint(const gfx::Size& size_to_paint); |
215 void OnSetTextDirection(WebKit::WebTextDirection direction); | 220 void OnSetTextDirection(WebKit::WebTextDirection direction); |
216 void OnGetFPS(); | 221 void OnGetFPS(); |
217 | 222 |
218 // Override point to notify derived classes that a paint has happened. | 223 // Override point to notify derived classes that a paint has happened. |
219 // DidInitiatePaint happens when we've generated a new bitmap and sent it to | 224 // DidInitiatePaint happens when we've generated a new bitmap and sent it to |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 bool animation_task_posted_; | 455 bool animation_task_posted_; |
451 bool invalidation_task_posted_; | 456 bool invalidation_task_posted_; |
452 | 457 |
453 bool has_disable_gpu_vsync_switch_; | 458 bool has_disable_gpu_vsync_switch_; |
454 base::TimeTicks last_do_deferred_update_time_; | 459 base::TimeTicks last_do_deferred_update_time_; |
455 | 460 |
456 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 461 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
457 }; | 462 }; |
458 | 463 |
459 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 464 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |