| 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 14 matching lines...) Expand all Loading... |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 27 #include "ui/base/ime/text_input_type.h" | 27 #include "ui/base/ime/text_input_type.h" |
| 28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
| 29 #include "ui/gfx/size.h" | 29 #include "ui/gfx/size.h" |
| 30 #include "ui/gfx/surface/transport_dib.h" | 30 #include "ui/gfx/surface/transport_dib.h" |
| 31 | 31 |
| 32 class BackingStore; | 32 class BackingStore; |
| 33 struct EditCommand; | 33 struct EditCommand; |
| 34 class RenderWidgetHostView; | 34 class RenderWidgetHostView; |
| 35 class RenderWidgetHostViewBase; | |
| 36 class TransportDIB; | 35 class TransportDIB; |
| 37 struct ViewHostMsg_UpdateRect_Params; | 36 struct ViewHostMsg_UpdateRect_Params; |
| 38 class WebCursor; | 37 class WebCursor; |
| 39 | 38 |
| 40 namespace base { | 39 namespace base { |
| 41 class TimeTicks; | 40 class TimeTicks; |
| 42 } | 41 } |
| 43 | 42 |
| 44 namespace content { | 43 namespace content { |
| 45 class RenderProcessHost; | 44 class RenderProcessHost; |
| 45 class RenderWidgetHostViewPort; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace gfx { | 48 namespace gfx { |
| 49 class Rect; | 49 class Rect; |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace ui { | 52 namespace ui { |
| 53 class Range; | 53 class Range; |
| 54 } | 54 } |
| 55 | 55 |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 // Indicates if the render widget host should track the render widget's size | 539 // Indicates if the render widget host should track the render widget's size |
| 540 // as opposed to visa versa. | 540 // as opposed to visa versa. |
| 541 void SetShouldAutoResize(bool enable); | 541 void SetShouldAutoResize(bool enable); |
| 542 | 542 |
| 543 protected: | 543 protected: |
| 544 // The View associated with the RenderViewHost. The lifetime of this object | 544 // The View associated with the RenderViewHost. The lifetime of this object |
| 545 // is associated with the lifetime of the Render process. If the Renderer | 545 // is associated with the lifetime of the Render process. If the Renderer |
| 546 // crashes, its View is destroyed and this pointer becomes NULL, even though | 546 // crashes, its View is destroyed and this pointer becomes NULL, even though |
| 547 // render_view_host_ lives on to load another URL (creating a new View while | 547 // render_view_host_ lives on to load another URL (creating a new View while |
| 548 // doing so). | 548 // doing so). |
| 549 RenderWidgetHostViewBase* view_; | 549 content::RenderWidgetHostViewPort* view_; |
| 550 | 550 |
| 551 // true if a renderer has once been valid. We use this flag to display a sad | 551 // true if a renderer has once been valid. We use this flag to display a sad |
| 552 // tab only when we lose our renderer and not if a paint occurs during | 552 // tab only when we lose our renderer and not if a paint occurs during |
| 553 // initialization. | 553 // initialization. |
| 554 bool renderer_initialized_; | 554 bool renderer_initialized_; |
| 555 | 555 |
| 556 // This value indicates how long to wait before we consider a renderer hung. | 556 // This value indicates how long to wait before we consider a renderer hung. |
| 557 int hung_renderer_delay_ms_; | 557 int hung_renderer_delay_ms_; |
| 558 | 558 |
| 559 private: | 559 private: |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 gfx::Point last_scroll_offset_; | 809 gfx::Point last_scroll_offset_; |
| 810 | 810 |
| 811 bool pending_mouse_lock_request_; | 811 bool pending_mouse_lock_request_; |
| 812 | 812 |
| 813 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; | 813 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; |
| 814 | 814 |
| 815 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 815 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
| 816 }; | 816 }; |
| 817 | 817 |
| 818 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 818 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |