| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // Called by the compositor in single-threaded mode when a swap is posted, | 295 // Called by the compositor in single-threaded mode when a swap is posted, |
| 296 // completes or is aborted. | 296 // completes or is aborted. |
| 297 void OnSwapBuffersPosted(); | 297 void OnSwapBuffersPosted(); |
| 298 void OnSwapBuffersComplete(); | 298 void OnSwapBuffersComplete(); |
| 299 void OnSwapBuffersAborted(); | 299 void OnSwapBuffersAborted(); |
| 300 | 300 |
| 301 // Checks if the selection bounds have been changed. If they are changed, | 301 // Checks if the selection bounds have been changed. If they are changed, |
| 302 // the new value will be sent to the browser process. | 302 // the new value will be sent to the browser process. |
| 303 void UpdateSelectionBounds(); | 303 void UpdateSelectionBounds(); |
| 304 | 304 |
| 305 // Called by the compositor to forward a proto that represents serialized |
| 306 // compositor state. |
| 307 void ForwardCompositorProto(const std::vector<char>& proto); |
| 308 |
| 305 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end); | 309 virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end); |
| 306 | 310 |
| 307 void OnShowHostContextMenu(ContextMenuParams* params); | 311 void OnShowHostContextMenu(ContextMenuParams* params); |
| 308 | 312 |
| 309 enum ShowIme { | 313 enum ShowIme { |
| 310 SHOW_IME_IF_NEEDED, | 314 SHOW_IME_IF_NEEDED, |
| 311 NO_SHOW_IME, | 315 NO_SHOW_IME, |
| 312 }; | 316 }; |
| 313 | 317 |
| 314 enum ChangeSource { | 318 enum ChangeSource { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 const gfx::Range& replacement_range, | 444 const gfx::Range& replacement_range, |
| 441 bool keep_selection); | 445 bool keep_selection); |
| 442 void OnRepaint(gfx::Size size_to_paint); | 446 void OnRepaint(gfx::Size size_to_paint); |
| 443 void OnSyntheticGestureCompleted(); | 447 void OnSyntheticGestureCompleted(); |
| 444 void OnSetTextDirection(blink::WebTextDirection direction); | 448 void OnSetTextDirection(blink::WebTextDirection direction); |
| 445 void OnGetFPS(); | 449 void OnGetFPS(); |
| 446 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 450 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
| 447 const gfx::Rect& window_screen_rect); | 451 const gfx::Rect& window_screen_rect); |
| 448 void OnShowImeIfNeeded(); | 452 void OnShowImeIfNeeded(); |
| 449 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); | 453 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); |
| 454 void OnHandleCompositorProto(const std::vector<char>& proto); |
| 450 | 455 |
| 451 #if defined(OS_ANDROID) | 456 #if defined(OS_ANDROID) |
| 452 // Called when we send IME event that expects an ACK. | 457 // Called when we send IME event that expects an ACK. |
| 453 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); | 458 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); |
| 454 | 459 |
| 455 // Called by the browser process for every required IME acknowledgement. | 460 // Called by the browser process for every required IME acknowledgement. |
| 456 void OnImeEventAck(); | 461 void OnImeEventAck(); |
| 457 #endif | 462 #endif |
| 458 | 463 |
| 459 // Notify the compositor about a change in viewport size. This should be | 464 // Notify the compositor about a change in viewport size. This should be |
| (...skipping 338 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 |