OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 void Paste(); | 435 void Paste(); |
436 void PasteAndMatchStyle(); | 436 void PasteAndMatchStyle(); |
437 void Delete(); | 437 void Delete(); |
438 void SelectAll(); | 438 void SelectAll(); |
439 | 439 |
440 // Called when the reponse to a pending mouse lock request has arrived. | 440 // Called when the reponse to a pending mouse lock request has arrived. |
441 // Returns true if |allowed| is true and the mouse has been successfully | 441 // Returns true if |allowed| is true and the mouse has been successfully |
442 // locked. | 442 // locked. |
443 bool GotResponseToLockMouseRequest(bool allowed); | 443 bool GotResponseToLockMouseRequest(bool allowed); |
444 | 444 |
445 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | |
446 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. | 445 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. |
447 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); | 446 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); |
448 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); | 447 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); |
449 #endif | |
450 | 448 |
451 protected: | 449 protected: |
452 // Internal implementation of the public Forward*Event() methods. | 450 // Internal implementation of the public Forward*Event() methods. |
453 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, | 451 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, |
454 int event_size); | 452 int event_size); |
455 | 453 |
456 // Called when we receive a notification indicating that the renderer | 454 // Called when we receive a notification indicating that the renderer |
457 // process has gone. This will reset our state so that our state will be | 455 // process has gone. This will reset our state so that our state will be |
458 // consistent if a new renderer is created. | 456 // consistent if a new renderer is created. |
459 void RendererExited(base::TerminationStatus status, int exit_code); | 457 void RendererExited(base::TerminationStatus status, int exit_code); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 | 534 |
537 // IPC message handlers | 535 // IPC message handlers |
538 void OnMsgRenderViewReady(); | 536 void OnMsgRenderViewReady(); |
539 void OnMsgRenderViewGone(int status, int error_code); | 537 void OnMsgRenderViewGone(int status, int error_code); |
540 void OnMsgClose(); | 538 void OnMsgClose(); |
541 void OnMsgRequestMove(const gfx::Rect& pos); | 539 void OnMsgRequestMove(const gfx::Rect& pos); |
542 void OnMsgSetTooltipText(const string16& tooltip_text, | 540 void OnMsgSetTooltipText(const string16& tooltip_text, |
543 WebKit::WebTextDirection text_direction_hint); | 541 WebKit::WebTextDirection text_direction_hint); |
544 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); | 542 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
545 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 543 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 544 void OnMsgUpdateIsDelayed(); |
546 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, | 545 void OnMsgInputEventAck(WebKit::WebInputEvent::Type event_type, |
547 bool processed); | 546 bool processed); |
548 virtual void OnMsgFocus(); | 547 virtual void OnMsgFocus(); |
549 virtual void OnMsgBlur(); | 548 virtual void OnMsgBlur(); |
550 | 549 |
551 void OnMsgSetCursor(const WebCursor& cursor); | 550 void OnMsgSetCursor(const WebCursor& cursor); |
552 void OnMsgTextInputStateChanged(ui::TextInputType type, | 551 void OnMsgTextInputStateChanged(ui::TextInputType type, |
553 bool can_compose_inline); | 552 bool can_compose_inline); |
554 void OnMsgImeCompositionRangeChanged(const ui::Range& range); | 553 void OnMsgImeCompositionRangeChanged(const ui::Range& range); |
555 void OnMsgImeCancelComposition(); | 554 void OnMsgImeCancelComposition(); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 gfx::Point last_scroll_offset_; | 795 gfx::Point last_scroll_offset_; |
797 | 796 |
798 bool pending_mouse_lock_request_; | 797 bool pending_mouse_lock_request_; |
799 | 798 |
800 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 799 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
801 | 800 |
802 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 801 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
803 }; | 802 }; |
804 | 803 |
805 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 804 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |