| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/surface/transport_dib.h" |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 12 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
| 13 #include "chrome/renderer/paint_aggregator.h" | 14 #include "chrome/renderer/paint_aggregator.h" |
| 14 #include "chrome/renderer/render_process.h" | 15 #include "chrome/renderer/render_process.h" |
| 15 #include "gfx/native_widget_types.h" | 16 #include "gfx/native_widget_types.h" |
| 16 #include "gfx/point.h" | 17 #include "gfx/point.h" |
| 17 #include "gfx/rect.h" | 18 #include "gfx/rect.h" |
| 18 #include "gfx/size.h" | 19 #include "gfx/size.h" |
| 19 #include "ipc/ipc_channel.h" | 20 #include "ipc/ipc_channel.h" |
| 20 #include "skia/ext/platform_canvas.h" | 21 #include "skia/ext/platform_canvas.h" |
| 21 #include "third_party/skia/include/core/SkBitmap.h" | |
| 22 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionCommand.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionCommand.h" |
| 23 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
| 24 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
| 25 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" |
| 26 #include "third_party/WebKit/WebKit/chromium/public/WebWidgetClient.h" | 26 #include "third_party/WebKit/WebKit/chromium/public/WebWidgetClient.h" |
| 27 #include "third_party/skia/include/core/SkBitmap.h" |
| 27 #include "webkit/glue/webcursor.h" | 28 #include "webkit/glue/webcursor.h" |
| 28 | 29 |
| 29 class RenderThreadBase; | 30 class RenderThreadBase; |
| 30 struct ViewHostMsg_ShowPopup_Params; | 31 struct ViewHostMsg_ShowPopup_Params; |
| 31 | 32 |
| 32 namespace WebKit { | 33 namespace WebKit { |
| 33 struct WebPopupMenuInfo; | 34 struct WebPopupMenuInfo; |
| 34 } | 35 } |
| 35 | 36 |
| 36 namespace webkit_glue { | 37 namespace webkit_glue { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 void OnUpdateVideoAck(int32 video_id); | 154 void OnUpdateVideoAck(int32 video_id); |
| 154 void OnRequestMoveAck(); | 155 void OnRequestMoveAck(); |
| 155 void OnHandleInputEvent(const IPC::Message& message); | 156 void OnHandleInputEvent(const IPC::Message& message); |
| 156 void OnMouseCaptureLost(); | 157 void OnMouseCaptureLost(); |
| 157 virtual void OnSetFocus(bool enable); | 158 virtual void OnSetFocus(bool enable); |
| 158 void OnImeSetInputMode(bool is_active); | 159 void OnImeSetInputMode(bool is_active); |
| 159 void OnImeSetComposition(WebKit::WebCompositionCommand command, | 160 void OnImeSetComposition(WebKit::WebCompositionCommand command, |
| 160 int cursor_position, | 161 int cursor_position, |
| 161 int target_start, int target_end, | 162 int target_start, int target_end, |
| 162 const string16& ime_string); | 163 const string16& ime_string); |
| 164 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, |
| 165 const gfx::Size& desired_size); |
| 163 void OnMsgRepaint(const gfx::Size& size_to_paint); | 166 void OnMsgRepaint(const gfx::Size& size_to_paint); |
| 164 void OnSetTextDirection(WebKit::WebTextDirection direction); | 167 void OnSetTextDirection(WebKit::WebTextDirection direction); |
| 165 | 168 |
| 166 // Override point to notify derived classes that a paint has happened. | 169 // Override point to notify derived classes that a paint has happened. |
| 167 // DidInitiatePaint happens when we've generated a new bitmap and sent it to | 170 // DidInitiatePaint happens when we've generated a new bitmap and sent it to |
| 168 // the browser. DidFlushPaint happens once we've received the ACK that the | 171 // the browser. DidFlushPaint happens once we've received the ACK that the |
| 169 // screen has actually been updated. | 172 // screen has actually been updated. |
| 170 virtual void DidInitiatePaint() {} | 173 virtual void DidInitiatePaint() {} |
| 171 virtual void DidFlushPaint() {} | 174 virtual void DidFlushPaint() {} |
| 172 | 175 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 322 |
| 320 scoped_ptr<IPC::Message> pending_input_event_ack_; | 323 scoped_ptr<IPC::Message> pending_input_event_ack_; |
| 321 | 324 |
| 322 // Indicates if the next sequence of Char events should be suppressed or not. | 325 // Indicates if the next sequence of Char events should be suppressed or not. |
| 323 bool suppress_next_char_events_; | 326 bool suppress_next_char_events_; |
| 324 | 327 |
| 325 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 328 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 326 }; | 329 }; |
| 327 | 330 |
| 328 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 331 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |