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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
317 | 317 |
318 // Set the background of the render widget to a bitmap. The bitmap will be | 318 // Set the background of the render widget to a bitmap. The bitmap will be |
319 // tiled in both directions if it isn't big enough to fill the area. This is | 319 // tiled in both directions if it isn't big enough to fill the area. This is |
320 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). | 320 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). |
321 virtual void SetBackground(const SkBitmap& bitmap); | 321 virtual void SetBackground(const SkBitmap& bitmap); |
322 | 322 |
323 // Resizes the render widget. | 323 // Resizes the render widget. |
324 void Resize(const gfx::Size& new_size, | 324 void Resize(const gfx::Size& new_size, |
325 const gfx::Size& physical_backing_size, | 325 const gfx::Size& physical_backing_size, |
326 float overdraw_bottom_height, | 326 float overdraw_bottom_height, |
327 const gfx::SizeF& visible_viewport_size, | |
327 const gfx::Rect& resizer_rect, | 328 const gfx::Rect& resizer_rect, |
328 bool is_fullscreen, | 329 bool is_fullscreen, |
329 ResizeAck resize_ack); | 330 ResizeAck resize_ack); |
330 // Used to force the size of a window when running layout tests. | 331 // Used to force the size of a window when running layout tests. |
331 void ResizeSynchronously(const gfx::Rect& new_position); | 332 void ResizeSynchronously(const gfx::Rect& new_position); |
332 virtual void SetScreenMetricsEmulationParameters( | 333 virtual void SetScreenMetricsEmulationParameters( |
333 float device_scale_factor, | 334 float device_scale_factor, |
334 const gfx::Point& root_layer_offset, | 335 const gfx::Point& root_layer_offset, |
335 float root_layer_scale); | 336 float root_layer_scale); |
336 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 337 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
560 | 561 |
561 bool has_frame_pending_; | 562 bool has_frame_pending_; |
562 | 563 |
563 // The size of the view's backing surface in non-DPI-adjusted pixels. | 564 // The size of the view's backing surface in non-DPI-adjusted pixels. |
564 gfx::Size physical_backing_size_; | 565 gfx::Size physical_backing_size_; |
565 | 566 |
566 // The height of the physical backing surface that is overdrawn opaquely in | 567 // The height of the physical backing surface that is overdrawn opaquely in |
567 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 568 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
568 float overdraw_bottom_height_; | 569 float overdraw_bottom_height_; |
569 | 570 |
571 // The height of the visible viewport in DPI-adjusted pixels. | |
sky
2014/04/24 15:55:09
height->size
kevers
2014/04/24 18:38:33
Done.
| |
572 gfx::SizeF visible_viewport_size_; | |
573 | |
570 // The area that must be reserved for drawing the resize corner. | 574 // The area that must be reserved for drawing the resize corner. |
571 gfx::Rect resizer_rect_; | 575 gfx::Rect resizer_rect_; |
572 | 576 |
573 // Flags for the next ViewHostMsg_UpdateRect message. | 577 // Flags for the next ViewHostMsg_UpdateRect message. |
574 int next_paint_flags_; | 578 int next_paint_flags_; |
575 | 579 |
576 // Filtered time per frame based on UpdateRect messages. | 580 // Filtered time per frame based on UpdateRect messages. |
577 float filtered_time_per_frame_; | 581 float filtered_time_per_frame_; |
578 | 582 |
579 // True if we are expecting an UpdateRect_ACK message (i.e., that a | 583 // True if we are expecting an UpdateRect_ACK message (i.e., that a |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
754 | 758 |
755 ui::MenuSourceType context_menu_source_type_; | 759 ui::MenuSourceType context_menu_source_type_; |
756 gfx::Point touch_editing_context_menu_location_; | 760 gfx::Point touch_editing_context_menu_location_; |
757 | 761 |
758 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 762 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
759 }; | 763 }; |
760 | 764 |
761 } // namespace content | 765 } // namespace content |
762 | 766 |
763 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 767 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |