| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // are no other active RenderWidgets. | 345 // are no other active RenderWidgets. |
| 346 void WasSwappedOut(); | 346 void WasSwappedOut(); |
| 347 | 347 |
| 348 void FlushPendingInputEventAck(); | 348 void FlushPendingInputEventAck(); |
| 349 void DoDeferredClose(); | 349 void DoDeferredClose(); |
| 350 void DoDeferredSetWindowRect(const blink::WebRect& pos); | 350 void DoDeferredSetWindowRect(const blink::WebRect& pos); |
| 351 | 351 |
| 352 // Resizes the render widget. | 352 // Resizes the render widget. |
| 353 void Resize(const gfx::Size& new_size, | 353 void Resize(const gfx::Size& new_size, |
| 354 const gfx::Size& physical_backing_size, | 354 const gfx::Size& physical_backing_size, |
| 355 float top_controls_layout_height, | 355 bool top_controls_shrink_blink_size, |
| 356 float top_controls_height, |
| 356 const gfx::Size& visible_viewport_size, | 357 const gfx::Size& visible_viewport_size, |
| 357 const gfx::Rect& resizer_rect, | 358 const gfx::Rect& resizer_rect, |
| 358 bool is_fullscreen, | 359 bool is_fullscreen, |
| 359 ResizeAck resize_ack); | 360 ResizeAck resize_ack); |
| 360 // Used to force the size of a window when running layout tests. | 361 // Used to force the size of a window when running layout tests. |
| 361 void ResizeSynchronously( | 362 void ResizeSynchronously( |
| 362 const gfx::Rect& new_position, | 363 const gfx::Rect& new_position, |
| 363 const gfx::Size& visible_viewport_size); | 364 const gfx::Size& visible_viewport_size); |
| 364 virtual void SetScreenMetricsEmulationParameters( | 365 virtual void SetScreenMetricsEmulationParameters( |
| 365 float device_scale_factor, | 366 float device_scale_factor, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // We store the current cursor object so we can avoid spamming SetCursor | 580 // We store the current cursor object so we can avoid spamming SetCursor |
| 580 // messages. | 581 // messages. |
| 581 WebCursor current_cursor_; | 582 WebCursor current_cursor_; |
| 582 | 583 |
| 583 // The size of the RenderWidget. | 584 // The size of the RenderWidget. |
| 584 gfx::Size size_; | 585 gfx::Size size_; |
| 585 | 586 |
| 586 // The size of the view's backing surface in non-DPI-adjusted pixels. | 587 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 587 gfx::Size physical_backing_size_; | 588 gfx::Size physical_backing_size_; |
| 588 | 589 |
| 589 // The amount that the viewport size given to Blink was shrunk by the URL-bar | 590 // Whether or not Blink's viewport size should be shrunk by the height of the |
| 590 // (always 0 on platforms where URL-bar hiding isn't supported). | 591 // URL-bar (always false on platforms where URL-bar hiding isn't supported). |
| 591 float top_controls_layout_height_; | 592 bool top_controls_shrink_blink_size_; |
| 593 |
| 594 // The height of the top controls (always 0 on platforms where URL-bar hiding |
| 595 // isn't supported). |
| 596 float top_controls_height_; |
| 592 | 597 |
| 593 // The size of the visible viewport in DPI-adjusted pixels. | 598 // The size of the visible viewport in DPI-adjusted pixels. |
| 594 gfx::Size visible_viewport_size_; | 599 gfx::Size visible_viewport_size_; |
| 595 | 600 |
| 596 // The area that must be reserved for drawing the resize corner. | 601 // The area that must be reserved for drawing the resize corner. |
| 597 gfx::Rect resizer_rect_; | 602 gfx::Rect resizer_rect_; |
| 598 | 603 |
| 599 // Flags for the next ViewHostMsg_UpdateRect message. | 604 // Flags for the next ViewHostMsg_UpdateRect message. |
| 600 int next_paint_flags_; | 605 int next_paint_flags_; |
| 601 | 606 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 ui::MenuSourceType context_menu_source_type_; | 765 ui::MenuSourceType context_menu_source_type_; |
| 761 bool has_host_context_menu_location_; | 766 bool has_host_context_menu_location_; |
| 762 gfx::Point host_context_menu_location_; | 767 gfx::Point host_context_menu_location_; |
| 763 | 768 |
| 764 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 769 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 765 }; | 770 }; |
| 766 | 771 |
| 767 } // namespace content | 772 } // namespace content |
| 768 | 773 |
| 769 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 774 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |