| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 blink::WebLayerTreeView* layerTreeView() override; | 262 blink::WebLayerTreeView* layerTreeView() override; |
| 263 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; | 263 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; |
| 264 void didChangeCursor(const blink::WebCursorInfo&) override; | 264 void didChangeCursor(const blink::WebCursorInfo&) override; |
| 265 void closeWidgetSoon() override; | 265 void closeWidgetSoon() override; |
| 266 void show(blink::WebNavigationPolicy) override; | 266 void show(blink::WebNavigationPolicy) override; |
| 267 blink::WebRect windowRect() override; | 267 blink::WebRect windowRect() override; |
| 268 blink::WebRect viewRect() override; | 268 blink::WebRect viewRect() override; |
| 269 void setToolTipText(const blink::WebString& text, | 269 void setToolTipText(const blink::WebString& text, |
| 270 blink::WebTextDirection hint) override; | 270 blink::WebTextDirection hint) override; |
| 271 void setWindowRect(const blink::WebRect&) override; | 271 void setWindowRect(const blink::WebRect&) override; |
| 272 blink::WebRect windowResizerRect() override; | |
| 273 blink::WebScreenInfo screenInfo() override; | 272 blink::WebScreenInfo screenInfo() override; |
| 274 void resetInputMethod() override; | 273 void resetInputMethod() override; |
| 275 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 274 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
| 276 bool event_cancelled) override; | 275 bool event_cancelled) override; |
| 277 void didOverscroll(const blink::WebFloatSize& overscrollDelta, | 276 void didOverscroll(const blink::WebFloatSize& overscrollDelta, |
| 278 const blink::WebFloatSize& accumulatedOverscroll, | 277 const blink::WebFloatSize& accumulatedOverscroll, |
| 279 const blink::WebFloatPoint& position, | 278 const blink::WebFloatPoint& position, |
| 280 const blink::WebFloatSize& velocity) override; | 279 const blink::WebFloatSize& velocity) override; |
| 281 void showImeIfNeeded() override; | 280 void showImeIfNeeded() override; |
| 282 void convertViewportToWindow(blink::WebRect* rect) override; | 281 void convertViewportToWindow(blink::WebRect* rect) override; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 InputEventDispatchType dispatch_type); | 472 InputEventDispatchType dispatch_type); |
| 474 void OnCursorVisibilityChange(bool is_visible); | 473 void OnCursorVisibilityChange(bool is_visible); |
| 475 void OnMouseCaptureLost(); | 474 void OnMouseCaptureLost(); |
| 476 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 475 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
| 477 virtual void OnSetFocus(bool enable); | 476 virtual void OnSetFocus(bool enable); |
| 478 void OnClose(); | 477 void OnClose(); |
| 479 void OnCreatingNewAck(); | 478 void OnCreatingNewAck(); |
| 480 virtual void OnResize(const ResizeParams& params); | 479 virtual void OnResize(const ResizeParams& params); |
| 481 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); | 480 void OnEnableDeviceEmulation(const blink::WebDeviceEmulationParams& params); |
| 482 void OnDisableDeviceEmulation(); | 481 void OnDisableDeviceEmulation(); |
| 483 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | |
| 484 virtual void OnWasHidden(); | 482 virtual void OnWasHidden(); |
| 485 virtual void OnWasShown(bool needs_repainting, | 483 virtual void OnWasShown(bool needs_repainting, |
| 486 const ui::LatencyInfo& latency_info); | 484 const ui::LatencyInfo& latency_info); |
| 487 void OnCreateVideoAck(int32_t video_id); | 485 void OnCreateVideoAck(int32_t video_id); |
| 488 void OnUpdateVideoAck(int32_t video_id); | 486 void OnUpdateVideoAck(int32_t video_id); |
| 489 void OnRequestMoveAck(); | 487 void OnRequestMoveAck(); |
| 490 virtual void OnImeSetComposition( | 488 virtual void OnImeSetComposition( |
| 491 const base::string16& text, | 489 const base::string16& text, |
| 492 const std::vector<blink::WebCompositionUnderline>& underlines, | 490 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 493 const gfx::Range& replacement_range, | 491 const gfx::Range& replacement_range, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 | 650 |
| 653 // The size of the RenderWidget. | 651 // The size of the RenderWidget. |
| 654 gfx::Size size_; | 652 gfx::Size size_; |
| 655 | 653 |
| 656 // The size of the view's backing surface in non-DPI-adjusted pixels. | 654 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 657 gfx::Size physical_backing_size_; | 655 gfx::Size physical_backing_size_; |
| 658 | 656 |
| 659 // The size of the visible viewport in DPI-adjusted pixels. | 657 // The size of the visible viewport in DPI-adjusted pixels. |
| 660 gfx::Size visible_viewport_size_; | 658 gfx::Size visible_viewport_size_; |
| 661 | 659 |
| 662 // The area that must be reserved for drawing the resize corner. | |
| 663 gfx::Rect resizer_rect_; | |
| 664 | |
| 665 // Flags for the next ViewHostMsg_UpdateRect message. | 660 // Flags for the next ViewHostMsg_UpdateRect message. |
| 666 int next_paint_flags_; | 661 int next_paint_flags_; |
| 667 | 662 |
| 668 // Whether the WebWidget is in auto resize mode, which is used for example | 663 // Whether the WebWidget is in auto resize mode, which is used for example |
| 669 // by extension popups. | 664 // by extension popups. |
| 670 bool auto_resize_mode_; | 665 bool auto_resize_mode_; |
| 671 | 666 |
| 672 // True if we need to send an UpdateRect message to notify the browser about | 667 // True if we need to send an UpdateRect message to notify the browser about |
| 673 // an already-completed auto-resize. | 668 // an already-completed auto-resize. |
| 674 bool need_update_rect_for_auto_resize_; | 669 bool need_update_rect_for_auto_resize_; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 // Stores edit commands associated to the next key event. | 830 // Stores edit commands associated to the next key event. |
| 836 // Will be cleared as soon as the next key event is processed. | 831 // Will be cleared as soon as the next key event is processed. |
| 837 EditCommands edit_commands_; | 832 EditCommands edit_commands_; |
| 838 | 833 |
| 839 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 834 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 840 }; | 835 }; |
| 841 | 836 |
| 842 } // namespace content | 837 } // namespace content |
| 843 | 838 |
| 844 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 839 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |