| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 virtual void ForwardWheelEvent( | 153 virtual void ForwardWheelEvent( |
| 154 const blink::WebMouseWheelEvent& wheel_event) OVERRIDE; | 154 const blink::WebMouseWheelEvent& wheel_event) OVERRIDE; |
| 155 virtual void ForwardKeyboardEvent( | 155 virtual void ForwardKeyboardEvent( |
| 156 const NativeWebKeyboardEvent& key_event) OVERRIDE; | 156 const NativeWebKeyboardEvent& key_event) OVERRIDE; |
| 157 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; | 157 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; |
| 158 virtual RenderProcessHost* GetProcess() const OVERRIDE; | 158 virtual RenderProcessHost* GetProcess() const OVERRIDE; |
| 159 virtual int GetRoutingID() const OVERRIDE; | 159 virtual int GetRoutingID() const OVERRIDE; |
| 160 virtual RenderWidgetHostView* GetView() const OVERRIDE; | 160 virtual RenderWidgetHostView* GetView() const OVERRIDE; |
| 161 virtual bool IsLoading() const OVERRIDE; | 161 virtual bool IsLoading() const OVERRIDE; |
| 162 virtual bool IsRenderView() const OVERRIDE; | 162 virtual bool IsRenderView() const OVERRIDE; |
| 163 virtual void PaintAtSize(TransportDIB::Handle dib_handle, | |
| 164 int tag, | |
| 165 const gfx::Size& page_size, | |
| 166 const gfx::Size& desired_size) OVERRIDE; | |
| 167 virtual void Replace(const base::string16& word) OVERRIDE; | 163 virtual void Replace(const base::string16& word) OVERRIDE; |
| 168 virtual void ReplaceMisspelling(const base::string16& word) OVERRIDE; | 164 virtual void ReplaceMisspelling(const base::string16& word) OVERRIDE; |
| 169 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; | 165 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; |
| 170 virtual void RestartHangMonitorTimeout() OVERRIDE; | 166 virtual void RestartHangMonitorTimeout() OVERRIDE; |
| 171 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; | 167 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; |
| 172 virtual void Stop() OVERRIDE; | 168 virtual void Stop() OVERRIDE; |
| 173 virtual void WasResized() OVERRIDE; | 169 virtual void WasResized() OVERRIDE; |
| 174 virtual void AddKeyPressEventCallback( | 170 virtual void AddKeyPressEventCallback( |
| 175 const KeyPressEventCallback& callback) OVERRIDE; | 171 const KeyPressEventCallback& callback) OVERRIDE; |
| 176 virtual void RemoveKeyPressEventCallback( | 172 virtual void RemoveKeyPressEventCallback( |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 void RendererIsResponsive(); | 645 void RendererIsResponsive(); |
| 650 | 646 |
| 651 // IPC message handlers | 647 // IPC message handlers |
| 652 void OnRenderViewReady(); | 648 void OnRenderViewReady(); |
| 653 void OnRenderProcessGone(int status, int error_code); | 649 void OnRenderProcessGone(int status, int error_code); |
| 654 void OnClose(); | 650 void OnClose(); |
| 655 void OnUpdateScreenRectsAck(); | 651 void OnUpdateScreenRectsAck(); |
| 656 void OnRequestMove(const gfx::Rect& pos); | 652 void OnRequestMove(const gfx::Rect& pos); |
| 657 void OnSetTooltipText(const base::string16& tooltip_text, | 653 void OnSetTooltipText(const base::string16& tooltip_text, |
| 658 blink::WebTextDirection text_direction_hint); | 654 blink::WebTextDirection text_direction_hint); |
| 659 void OnPaintAtSizeAck(int tag, const gfx::Size& size); | |
| 660 #if defined(OS_MACOSX) | 655 #if defined(OS_MACOSX) |
| 661 void OnCompositorSurfaceBuffersSwapped( | 656 void OnCompositorSurfaceBuffersSwapped( |
| 662 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); | 657 const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params); |
| 663 #endif | 658 #endif |
| 664 bool OnSwapCompositorFrame(const IPC::Message& message); | 659 bool OnSwapCompositorFrame(const IPC::Message& message); |
| 665 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 660 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
| 666 gfx::Vector2dF current_fling_velocity); | 661 gfx::Vector2dF current_fling_velocity); |
| 667 void OnFlingingStopped(); | 662 void OnFlingingStopped(); |
| 668 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 663 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 669 void OnUpdateIsDelayed(); | 664 void OnUpdateIsDelayed(); |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 919 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
| 925 | 920 |
| 926 int64 last_input_number_; | 921 int64 last_input_number_; |
| 927 | 922 |
| 928 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 923 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 929 }; | 924 }; |
| 930 | 925 |
| 931 } // namespace content | 926 } // namespace content |
| 932 | 927 |
| 933 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 928 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |