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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // Called if we know the renderer is responsive. When we currently think the | 437 // Called if we know the renderer is responsive. When we currently think the |
438 // renderer is unresponsive, this will clear that state and call | 438 // renderer is unresponsive, this will clear that state and call |
439 // NotifyRendererResponsive. | 439 // NotifyRendererResponsive. |
440 void RendererIsResponsive(); | 440 void RendererIsResponsive(); |
441 | 441 |
442 // IPC message handlers | 442 // IPC message handlers |
443 void OnMsgRenderViewReady(); | 443 void OnMsgRenderViewReady(); |
444 void OnMsgRenderViewGone(int status, int error_code); | 444 void OnMsgRenderViewGone(int status, int error_code); |
445 void OnMsgClose(); | 445 void OnMsgClose(); |
446 void OnMsgRequestMove(const gfx::Rect& pos); | 446 void OnMsgRequestMove(const gfx::Rect& pos); |
447 void OnMsgSetTooltipText(const std::wstring& tooltip_text, | 447 void OnMsgSetTooltipText(const string16& tooltip_text, |
448 WebKit::WebTextDirection text_direction_hint); | 448 WebKit::WebTextDirection text_direction_hint); |
449 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); | 449 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
450 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 450 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
451 void OnMsgInputEventAck(const IPC::Message& message); | 451 void OnMsgInputEventAck(const IPC::Message& message); |
452 virtual void OnMsgFocus(); | 452 virtual void OnMsgFocus(); |
453 virtual void OnMsgBlur(); | 453 virtual void OnMsgBlur(); |
454 | 454 |
455 void OnMsgSetCursor(const WebCursor& cursor); | 455 void OnMsgSetCursor(const WebCursor& cursor); |
456 void OnMsgImeUpdateTextInputState(ui::TextInputType type, | 456 void OnMsgImeUpdateTextInputState(ui::TextInputType type, |
457 bool can_compose_inline, | 457 bool can_compose_inline, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 668 |
669 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 669 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
670 | 670 |
671 // The last scroll offset of the render widget. | 671 // The last scroll offset of the render widget. |
672 gfx::Point last_scroll_offset_; | 672 gfx::Point last_scroll_offset_; |
673 | 673 |
674 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 674 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
675 }; | 675 }; |
676 | 676 |
677 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 677 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |