| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 blink::WebRect rootWindowRect() override; | 189 blink::WebRect rootWindowRect() override; |
| 190 blink::WebScreenInfo screenInfo() override; | 190 blink::WebScreenInfo screenInfo() override; |
| 191 void resetInputMethod() override; | 191 void resetInputMethod() override; |
| 192 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 192 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
| 193 bool event_cancelled) override; | 193 bool event_cancelled) override; |
| 194 void didOverscroll(const blink::WebFloatSize& unusedDelta, | 194 void didOverscroll(const blink::WebFloatSize& unusedDelta, |
| 195 const blink::WebFloatSize& accumulatedRootOverScroll, | 195 const blink::WebFloatSize& accumulatedRootOverScroll, |
| 196 const blink::WebFloatPoint& position, | 196 const blink::WebFloatPoint& position, |
| 197 const blink::WebFloatSize& velocity) override; | 197 const blink::WebFloatSize& velocity) override; |
| 198 void showImeIfNeeded() override; | 198 void showImeIfNeeded() override; |
| 199 void convertViewportToScreen(blink::WebRect* rect) override; |
| 199 | 200 |
| 200 #if defined(OS_ANDROID) | 201 #if defined(OS_ANDROID) |
| 201 // Notifies that a tap was not consumed, so showing a UI for the unhandled | 202 // Notifies that a tap was not consumed, so showing a UI for the unhandled |
| 202 // tap may be needed. | 203 // tap may be needed. |
| 203 // Performs various checks on the given WebNode to apply heuristics to | 204 // Performs various checks on the given WebNode to apply heuristics to |
| 204 // determine if triggering is appropriate. | 205 // determine if triggering is appropriate. |
| 205 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, | 206 void showUnhandledTapUIIfNeeded(const blink::WebPoint& tapped_position, |
| 206 const blink::WebNode& tapped_node, | 207 const blink::WebNode& tapped_node, |
| 207 bool page_changed) override; | 208 bool page_changed) override; |
| 208 #endif | 209 #endif |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 void OnUpdateVideoAck(int32 video_id); | 433 void OnUpdateVideoAck(int32 video_id); |
| 433 void OnRequestMoveAck(); | 434 void OnRequestMoveAck(); |
| 434 virtual void OnImeSetComposition( | 435 virtual void OnImeSetComposition( |
| 435 const base::string16& text, | 436 const base::string16& text, |
| 436 const std::vector<blink::WebCompositionUnderline>& underlines, | 437 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 437 int selection_start, | 438 int selection_start, |
| 438 int selection_end); | 439 int selection_end); |
| 439 virtual void OnImeConfirmComposition(const base::string16& text, | 440 virtual void OnImeConfirmComposition(const base::string16& text, |
| 440 const gfx::Range& replacement_range, | 441 const gfx::Range& replacement_range, |
| 441 bool keep_selection); | 442 bool keep_selection); |
| 443 // Called when the device scale factor is changed, or the layer tree is |
| 444 // initialized. |
| 445 virtual void OnDeviceScaleFactorChanged(); |
| 446 |
| 442 void OnRepaint(gfx::Size size_to_paint); | 447 void OnRepaint(gfx::Size size_to_paint); |
| 443 void OnSyntheticGestureCompleted(); | 448 void OnSyntheticGestureCompleted(); |
| 444 void OnSetTextDirection(blink::WebTextDirection direction); | 449 void OnSetTextDirection(blink::WebTextDirection direction); |
| 445 void OnGetFPS(); | 450 void OnGetFPS(); |
| 446 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 451 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
| 447 const gfx::Rect& window_screen_rect); | 452 const gfx::Rect& window_screen_rect); |
| 448 void OnShowImeIfNeeded(); | 453 void OnShowImeIfNeeded(); |
| 449 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); | 454 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); |
| 450 | 455 |
| 451 #if defined(OS_ANDROID) | 456 #if defined(OS_ANDROID) |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 | 803 |
| 799 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 804 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
| 800 render_widget_scheduling_state_; | 805 render_widget_scheduling_state_; |
| 801 | 806 |
| 802 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 807 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 803 }; | 808 }; |
| 804 | 809 |
| 805 } // namespace content | 810 } // namespace content |
| 806 | 811 |
| 807 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 812 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |