| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 const gfx::Size& page_size, | 136 const gfx::Size& page_size, |
| 137 const gfx::Size& desired_size) OVERRIDE; | 137 const gfx::Size& desired_size) OVERRIDE; |
| 138 virtual void Replace(const string16& word) OVERRIDE; | 138 virtual void Replace(const string16& word) OVERRIDE; |
| 139 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; | 139 virtual void ResizeRectChanged(const gfx::Rect& new_rect) OVERRIDE; |
| 140 virtual void RestartHangMonitorTimeout() OVERRIDE; | 140 virtual void RestartHangMonitorTimeout() OVERRIDE; |
| 141 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; | 141 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; |
| 142 virtual void Stop() OVERRIDE; | 142 virtual void Stop() OVERRIDE; |
| 143 virtual void WasResized() OVERRIDE; | 143 virtual void WasResized() OVERRIDE; |
| 144 virtual void AddKeyboardListener(KeyboardListener* listener) OVERRIDE; | 144 virtual void AddKeyboardListener(KeyboardListener* listener) OVERRIDE; |
| 145 virtual void RemoveKeyboardListener(KeyboardListener* listener) OVERRIDE; | 145 virtual void RemoveKeyboardListener(KeyboardListener* listener) OVERRIDE; |
| 146 virtual void GetWebScreenInfo(WebKit::WebScreenInfo* result) OVERRIDE; |
| 146 | 147 |
| 147 // Notification that the screen info has changed. | 148 // Notification that the screen info has changed. |
| 148 void NotifyScreenInfoChanged(); | 149 void NotifyScreenInfoChanged(); |
| 149 | 150 |
| 150 // Sets the View of this RenderWidgetHost. | 151 // Sets the View of this RenderWidgetHost. |
| 151 void SetView(RenderWidgetHostView* view); | 152 void SetView(RenderWidgetHostView* view); |
| 152 | 153 |
| 153 int surface_id() const { return surface_id_; } | 154 int surface_id() const { return surface_id_; } |
| 154 | 155 |
| 155 bool empty() const { return current_size_.IsEmpty(); } | 156 bool empty() const { return current_size_.IsEmpty(); } |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // RenderViewHostImpl can account for in-flight beforeunload/unload events. | 500 // RenderViewHostImpl can account for in-flight beforeunload/unload events. |
| 500 int increment_in_flight_event_count() { return ++in_flight_event_count_; } | 501 int increment_in_flight_event_count() { return ++in_flight_event_count_; } |
| 501 int decrement_in_flight_event_count() { return --in_flight_event_count_; } | 502 int decrement_in_flight_event_count() { return --in_flight_event_count_; } |
| 502 | 503 |
| 503 // Creates and initializes the overscroll controller. | 504 // Creates and initializes the overscroll controller. |
| 504 void InitializeOverscrollController(); | 505 void InitializeOverscrollController(); |
| 505 | 506 |
| 506 // Returns whether an overscroll gesture is in progress. | 507 // Returns whether an overscroll gesture is in progress. |
| 507 bool IsInOverscrollGesture() const; | 508 bool IsInOverscrollGesture() const; |
| 508 | 509 |
| 509 void GetWebScreenInfo(WebKit::WebScreenInfo* result); | |
| 510 | |
| 511 // The View associated with the RenderViewHost. The lifetime of this object | 510 // The View associated with the RenderViewHost. The lifetime of this object |
| 512 // is associated with the lifetime of the Render process. If the Renderer | 511 // is associated with the lifetime of the Render process. If the Renderer |
| 513 // crashes, its View is destroyed and this pointer becomes NULL, even though | 512 // crashes, its View is destroyed and this pointer becomes NULL, even though |
| 514 // render_view_host_ lives on to load another URL (creating a new View while | 513 // render_view_host_ lives on to load another URL (creating a new View while |
| 515 // doing so). | 514 // doing so). |
| 516 RenderWidgetHostViewPort* view_; | 515 RenderWidgetHostViewPort* view_; |
| 517 | 516 |
| 518 // true if a renderer has once been valid. We use this flag to display a sad | 517 // true if a renderer has once been valid. We use this flag to display a sad |
| 519 // tab only when we lose our renderer and not if a paint occurs during | 518 // tab only when we lose our renderer and not if a paint occurs during |
| 520 // initialization. | 519 // initialization. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 #if defined(OS_WIN) | 877 #if defined(OS_WIN) |
| 879 std::list<HWND> dummy_windows_for_activation_; | 878 std::list<HWND> dummy_windows_for_activation_; |
| 880 #endif | 879 #endif |
| 881 | 880 |
| 882 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 881 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 883 }; | 882 }; |
| 884 | 883 |
| 885 } // namespace content | 884 } // namespace content |
| 886 | 885 |
| 887 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 886 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |