| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 // RenderViewHost overrides this method to report when in fullscreen mode. | 557 // RenderViewHost overrides this method to report when in fullscreen mode. |
| 558 virtual bool IsFullscreen() const; | 558 virtual bool IsFullscreen() const; |
| 559 | 559 |
| 560 // Indicates if the render widget host should track the render widget's size | 560 // Indicates if the render widget host should track the render widget's size |
| 561 // as opposed to visa versa. | 561 // as opposed to visa versa. |
| 562 void SetAutoResize(bool enable, | 562 void SetAutoResize(bool enable, |
| 563 const gfx::Size& min_size, | 563 const gfx::Size& min_size, |
| 564 const gfx::Size& max_size); | 564 const gfx::Size& max_size); |
| 565 | 565 |
| 566 // Fills in the |resize_params| struct. | 566 // Fills in the |resize_params| struct. |
| 567 void GetResizeParams(ViewMsg_Resize_Params* resize_params); | 567 // Returns |false| if the update is redundant, |true| otherwise. |
| 568 bool GetResizeParams(ViewMsg_Resize_Params* resize_params); |
| 568 | 569 |
| 569 // Sets the |resize_params| that were sent to the renderer bundled with the | 570 // Sets the |resize_params| that were sent to the renderer bundled with the |
| 570 // request to create a new RenderWidget. | 571 // request to create a new RenderWidget. |
| 571 void SetInitialRenderSizeParams(const ViewMsg_Resize_Params& resize_params); | 572 void SetInitialRenderSizeParams(const ViewMsg_Resize_Params& resize_params); |
| 572 | 573 |
| 573 // Expose increment/decrement of the in-flight event count, so | 574 // Expose increment/decrement of the in-flight event count, so |
| 574 // RenderViewHostImpl can account for in-flight beforeunload/unload events. | 575 // RenderViewHostImpl can account for in-flight beforeunload/unload events. |
| 575 int increment_in_flight_event_count() { return ++in_flight_event_count_; } | 576 int increment_in_flight_event_count() { return ++in_flight_event_count_; } |
| 576 int decrement_in_flight_event_count() { | 577 int decrement_in_flight_event_count() { |
| 577 DCHECK_GT(in_flight_event_count_, 0); | 578 DCHECK_GT(in_flight_event_count_, 0); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 bool is_focused_; | 861 bool is_focused_; |
| 861 | 862 |
| 862 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 863 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 863 | 864 |
| 864 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 865 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 865 }; | 866 }; |
| 866 | 867 |
| 867 } // namespace content | 868 } // namespace content |
| 868 | 869 |
| 869 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 870 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |