| 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 20 matching lines...) Expand all Loading... |
| 31 #include "ui/base/ime/text_input_type.h" | 31 #include "ui/base/ime/text_input_type.h" |
| 32 #include "ui/base/range/range.h" | 32 #include "ui/base/range/range.h" |
| 33 #include "ui/gfx/native_widget_types.h" | 33 #include "ui/gfx/native_widget_types.h" |
| 34 #include "ui/gfx/rect.h" | 34 #include "ui/gfx/rect.h" |
| 35 #include "ui/gfx/vector2d.h" | 35 #include "ui/gfx/vector2d.h" |
| 36 #include "ui/gfx/vector2d_f.h" | 36 #include "ui/gfx/vector2d_f.h" |
| 37 #include "ui/surface/transport_dib.h" | 37 #include "ui/surface/transport_dib.h" |
| 38 #include "webkit/glue/webcursor.h" | 38 #include "webkit/glue/webcursor.h" |
| 39 | 39 |
| 40 struct ViewHostMsg_UpdateRect_Params; | 40 struct ViewHostMsg_UpdateRect_Params; |
| 41 struct ViewMsg_Resize_Params; |
| 41 class ViewHostMsg_UpdateRect; | 42 class ViewHostMsg_UpdateRect; |
| 42 | 43 |
| 43 namespace IPC { | 44 namespace IPC { |
| 44 class SyncMessage; | 45 class SyncMessage; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace WebKit { | 48 namespace WebKit { |
| 48 class WebGestureEvent; | 49 class WebGestureEvent; |
| 49 class WebInputEvent; | 50 class WebInputEvent; |
| 50 class WebMouseEvent; | 51 class WebMouseEvent; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 288 |
| 288 // RenderWidget IPC message handlers | 289 // RenderWidget IPC message handlers |
| 289 void OnHandleInputEvent(const WebKit::WebInputEvent* event, | 290 void OnHandleInputEvent(const WebKit::WebInputEvent* event, |
| 290 const cc::LatencyInfo& latency_info, | 291 const cc::LatencyInfo& latency_info, |
| 291 bool keyboard_shortcut); | 292 bool keyboard_shortcut); |
| 292 void OnCursorVisibilityChange(bool is_visible); | 293 void OnCursorVisibilityChange(bool is_visible); |
| 293 void OnMouseCaptureLost(); | 294 void OnMouseCaptureLost(); |
| 294 virtual void OnSetFocus(bool enable); | 295 virtual void OnSetFocus(bool enable); |
| 295 void OnClose(); | 296 void OnClose(); |
| 296 void OnCreatingNewAck(); | 297 void OnCreatingNewAck(); |
| 297 virtual void OnResize(const gfx::Size& new_size, | 298 virtual void OnResize(const ViewMsg_Resize_Params& params); |
| 298 const gfx::Size& physical_backing_size, | |
| 299 float overdraw_bottom_height, | |
| 300 const gfx::Rect& resizer_rect, | |
| 301 bool is_fullscreen); | |
| 302 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | 299 void OnChangeResizeRect(const gfx::Rect& resizer_rect); |
| 303 virtual void OnWasHidden(); | 300 virtual void OnWasHidden(); |
| 304 virtual void OnWasShown(bool needs_repainting); | 301 virtual void OnWasShown(bool needs_repainting); |
| 305 virtual void OnWasSwappedOut(); | 302 virtual void OnWasSwappedOut(); |
| 306 void OnUpdateRectAck(); | 303 void OnUpdateRectAck(); |
| 307 void OnCreateVideoAck(int32 video_id); | 304 void OnCreateVideoAck(int32 video_id); |
| 308 void OnUpdateVideoAck(int32 video_id); | 305 void OnUpdateVideoAck(int32 video_id); |
| 309 void OnRequestMoveAck(); | 306 void OnRequestMoveAck(); |
| 310 void OnSetInputMethodActive(bool is_active); | 307 void OnSetInputMethodActive(bool is_active); |
| 311 virtual void OnImeSetComposition( | 308 virtual void OnImeSetComposition( |
| 312 const string16& text, | 309 const string16& text, |
| 313 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 310 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 314 int selection_start, | 311 int selection_start, |
| 315 int selection_end); | 312 int selection_end); |
| 316 virtual void OnImeConfirmComposition( | 313 virtual void OnImeConfirmComposition( |
| 317 const string16& text, const ui::Range& replacement_range); | 314 const string16& text, const ui::Range& replacement_range); |
| 318 void OnPaintAtSize(const TransportDIB::Handle& dib_id, | 315 void OnPaintAtSize(const TransportDIB::Handle& dib_id, |
| 319 int tag, | 316 int tag, |
| 320 const gfx::Size& page_size, | 317 const gfx::Size& page_size, |
| 321 const gfx::Size& desired_size); | 318 const gfx::Size& desired_size); |
| 322 void OnRepaint(gfx::Size size_to_paint); | 319 void OnRepaint(gfx::Size size_to_paint); |
| 323 void OnSmoothScrollCompleted(); | 320 void OnSmoothScrollCompleted(); |
| 324 void OnSetTextDirection(WebKit::WebTextDirection direction); | 321 void OnSetTextDirection(WebKit::WebTextDirection direction); |
| 325 void OnGetFPS(); | 322 void OnGetFPS(); |
| 326 void OnScreenInfoChanged(const WebKit::WebScreenInfo& screen_info); | |
| 327 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 323 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
| 328 const gfx::Rect& window_screen_rect); | 324 const gfx::Rect& window_screen_rect); |
| 329 #if defined(OS_ANDROID) | 325 #if defined(OS_ANDROID) |
| 330 void OnImeBatchStateChanged(bool is_begin); | 326 void OnImeBatchStateChanged(bool is_begin); |
| 331 void OnShowImeIfNeeded(); | 327 void OnShowImeIfNeeded(); |
| 332 #endif | 328 #endif |
| 333 void OnSnapshot(const gfx::Rect& src_subrect); | 329 void OnSnapshot(const gfx::Rect& src_subrect); |
| 334 | 330 |
| 335 // Notify the compositor about a change in viewport size. This should be | 331 // Notify the compositor about a change in viewport size. This should be |
| 336 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 332 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 bool overscroll_notifications_enabled_; | 705 bool overscroll_notifications_enabled_; |
| 710 | 706 |
| 711 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 707 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 712 | 708 |
| 713 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 709 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 714 }; | 710 }; |
| 715 | 711 |
| 716 } // namespace content | 712 } // namespace content |
| 717 | 713 |
| 718 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 714 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |