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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // are no other active RenderWidgets. | 338 // are no other active RenderWidgets. |
339 void WasSwappedOut(); | 339 void WasSwappedOut(); |
340 | 340 |
341 void FlushPendingInputEventAck(); | 341 void FlushPendingInputEventAck(); |
342 void DoDeferredClose(); | 342 void DoDeferredClose(); |
343 void DoDeferredSetWindowRect(const blink::WebRect& pos); | 343 void DoDeferredSetWindowRect(const blink::WebRect& pos); |
344 | 344 |
345 // Resizes the render widget. | 345 // Resizes the render widget. |
346 void Resize(const gfx::Size& new_size, | 346 void Resize(const gfx::Size& new_size, |
347 const gfx::Size& physical_backing_size, | 347 const gfx::Size& physical_backing_size, |
348 float overdraw_bottom_height, | 348 float top_controls_layout_height, |
349 const gfx::Size& visible_viewport_size, | 349 const gfx::Size& visible_viewport_size, |
350 const gfx::Rect& resizer_rect, | 350 const gfx::Rect& resizer_rect, |
351 bool is_fullscreen, | 351 bool is_fullscreen, |
352 ResizeAck resize_ack); | 352 ResizeAck resize_ack); |
353 // Used to force the size of a window when running layout tests. | 353 // Used to force the size of a window when running layout tests. |
354 void ResizeSynchronously(const gfx::Rect& new_position); | 354 void ResizeSynchronously(const gfx::Rect& new_position); |
355 virtual void SetScreenMetricsEmulationParameters( | 355 virtual void SetScreenMetricsEmulationParameters( |
356 float device_scale_factor, | 356 float device_scale_factor, |
357 const gfx::Point& root_layer_offset, | 357 const gfx::Point& root_layer_offset, |
358 float root_layer_scale); | 358 float root_layer_scale); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 // We store the current cursor object so we can avoid spamming SetCursor | 568 // We store the current cursor object so we can avoid spamming SetCursor |
569 // messages. | 569 // messages. |
570 WebCursor current_cursor_; | 570 WebCursor current_cursor_; |
571 | 571 |
572 // The size of the RenderWidget. | 572 // The size of the RenderWidget. |
573 gfx::Size size_; | 573 gfx::Size size_; |
574 | 574 |
575 // The size of the view's backing surface in non-DPI-adjusted pixels. | 575 // The size of the view's backing surface in non-DPI-adjusted pixels. |
576 gfx::Size physical_backing_size_; | 576 gfx::Size physical_backing_size_; |
577 | 577 |
578 // The height of the physical backing surface that is overdrawn opaquely in | 578 // The amount that the viewport size given to Blink was shrunk by the URL-bar |
579 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 579 // (always 0 on platforms where URL-bar hiding isn't supported). |
580 float overdraw_bottom_height_; | 580 float top_controls_layout_height_; |
581 | 581 |
582 // The size of the visible viewport in DPI-adjusted pixels. | 582 // The size of the visible viewport in DPI-adjusted pixels. |
583 gfx::Size visible_viewport_size_; | 583 gfx::Size visible_viewport_size_; |
584 | 584 |
585 // The area that must be reserved for drawing the resize corner. | 585 // The area that must be reserved for drawing the resize corner. |
586 gfx::Rect resizer_rect_; | 586 gfx::Rect resizer_rect_; |
587 | 587 |
588 // Flags for the next ViewHostMsg_UpdateRect message. | 588 // Flags for the next ViewHostMsg_UpdateRect message. |
589 int next_paint_flags_; | 589 int next_paint_flags_; |
590 | 590 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 ui::MenuSourceType context_menu_source_type_; | 743 ui::MenuSourceType context_menu_source_type_; |
744 bool has_host_context_menu_location_; | 744 bool has_host_context_menu_location_; |
745 gfx::Point host_context_menu_location_; | 745 gfx::Point host_context_menu_location_; |
746 | 746 |
747 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 747 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
748 }; | 748 }; |
749 | 749 |
750 } // namespace content | 750 } // namespace content |
751 | 751 |
752 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 752 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |