| 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_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 25 matching lines...) Expand all Loading... |
| 36 class TransportDIB; | 36 class TransportDIB; |
| 37 struct ViewHostMsg_UpdateRect_Params; | 37 struct ViewHostMsg_UpdateRect_Params; |
| 38 class WebCursor; | 38 class WebCursor; |
| 39 | 39 |
| 40 namespace base { | 40 namespace base { |
| 41 class TimeTicks; | 41 class TimeTicks; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace content { | 44 namespace content { |
| 45 class RenderProcessHost; | 45 class RenderProcessHost; |
| 46 class RenderWidgetHostViewPort; |
| 46 } | 47 } |
| 47 | 48 |
| 48 namespace gfx { | 49 namespace gfx { |
| 49 class Rect; | 50 class Rect; |
| 50 } | 51 } |
| 51 | 52 |
| 52 namespace ui { | 53 namespace ui { |
| 53 class Range; | 54 class Range; |
| 54 } | 55 } |
| 55 | 56 |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 // Indicates if the render widget host should track the render widget's size | 542 // Indicates if the render widget host should track the render widget's size |
| 542 // as opposed to visa versa. | 543 // as opposed to visa versa. |
| 543 void SetShouldAutoResize(bool enable); | 544 void SetShouldAutoResize(bool enable); |
| 544 | 545 |
| 545 protected: | 546 protected: |
| 546 // The View associated with the RenderViewHost. The lifetime of this object | 547 // The View associated with the RenderViewHost. The lifetime of this object |
| 547 // is associated with the lifetime of the Render process. If the Renderer | 548 // is associated with the lifetime of the Render process. If the Renderer |
| 548 // crashes, its View is destroyed and this pointer becomes NULL, even though | 549 // crashes, its View is destroyed and this pointer becomes NULL, even though |
| 549 // render_view_host_ lives on to load another URL (creating a new View while | 550 // render_view_host_ lives on to load another URL (creating a new View while |
| 550 // doing so). | 551 // doing so). |
| 551 RenderWidgetHostViewBase* view_; | 552 content::RenderWidgetHostViewPort* view_; |
| 552 | 553 |
| 553 // true if a renderer has once been valid. We use this flag to display a sad | 554 // true if a renderer has once been valid. We use this flag to display a sad |
| 554 // tab only when we lose our renderer and not if a paint occurs during | 555 // tab only when we lose our renderer and not if a paint occurs during |
| 555 // initialization. | 556 // initialization. |
| 556 bool renderer_initialized_; | 557 bool renderer_initialized_; |
| 557 | 558 |
| 558 // This value indicates how long to wait before we consider a renderer hung. | 559 // This value indicates how long to wait before we consider a renderer hung. |
| 559 int hung_renderer_delay_ms_; | 560 int hung_renderer_delay_ms_; |
| 560 | 561 |
| 561 private: | 562 private: |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 // then touch events are sent to the renderer. Otherwise, the touch events are | 818 // then touch events are sent to the renderer. Otherwise, the touch events are |
| 818 // not sent to the renderer. | 819 // not sent to the renderer. |
| 819 bool has_touch_handler_; | 820 bool has_touch_handler_; |
| 820 | 821 |
| 821 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 822 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
| 822 | 823 |
| 823 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 824 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 824 }; | 825 }; |
| 825 | 826 |
| 826 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |