| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 313 |
| 314 // Set the background of the render widget to a bitmap. The bitmap will be | 314 // Set the background of the render widget to a bitmap. The bitmap will be |
| 315 // tiled in both directions if it isn't big enough to fill the area. This is | 315 // tiled in both directions if it isn't big enough to fill the area. This is |
| 316 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). | 316 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). |
| 317 virtual void SetBackground(const SkBitmap& bitmap); | 317 virtual void SetBackground(const SkBitmap& bitmap); |
| 318 | 318 |
| 319 // Resizes the render widget. | 319 // Resizes the render widget. |
| 320 void Resize(const gfx::Size& new_size, | 320 void Resize(const gfx::Size& new_size, |
| 321 const gfx::Size& physical_backing_size, | 321 const gfx::Size& physical_backing_size, |
| 322 float overdraw_bottom_height, | 322 float overdraw_bottom_height, |
| 323 const gfx::Size& visible_viewport_size, |
| 323 const gfx::Rect& resizer_rect, | 324 const gfx::Rect& resizer_rect, |
| 324 bool is_fullscreen, | 325 bool is_fullscreen, |
| 325 ResizeAck resize_ack); | 326 ResizeAck resize_ack); |
| 326 // Used to force the size of a window when running layout tests. | 327 // Used to force the size of a window when running layout tests. |
| 327 void ResizeSynchronously(const gfx::Rect& new_position); | 328 void ResizeSynchronously(const gfx::Rect& new_position); |
| 328 virtual void SetScreenMetricsEmulationParameters( | 329 virtual void SetScreenMetricsEmulationParameters( |
| 329 float device_scale_factor, | 330 float device_scale_factor, |
| 330 const gfx::Point& root_layer_offset, | 331 const gfx::Point& root_layer_offset, |
| 331 float root_layer_scale); | 332 float root_layer_scale); |
| 332 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 333 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 | 545 |
| 545 bool has_frame_pending_; | 546 bool has_frame_pending_; |
| 546 | 547 |
| 547 // The size of the view's backing surface in non-DPI-adjusted pixels. | 548 // The size of the view's backing surface in non-DPI-adjusted pixels. |
| 548 gfx::Size physical_backing_size_; | 549 gfx::Size physical_backing_size_; |
| 549 | 550 |
| 550 // The height of the physical backing surface that is overdrawn opaquely in | 551 // The height of the physical backing surface that is overdrawn opaquely in |
| 551 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 552 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
| 552 float overdraw_bottom_height_; | 553 float overdraw_bottom_height_; |
| 553 | 554 |
| 555 // The size of the visible viewport in DPI-adjusted pixels. |
| 556 gfx::Size visible_viewport_size_; |
| 557 |
| 554 // The area that must be reserved for drawing the resize corner. | 558 // The area that must be reserved for drawing the resize corner. |
| 555 gfx::Rect resizer_rect_; | 559 gfx::Rect resizer_rect_; |
| 556 | 560 |
| 557 // Flags for the next ViewHostMsg_UpdateRect message. | 561 // Flags for the next ViewHostMsg_UpdateRect message. |
| 558 int next_paint_flags_; | 562 int next_paint_flags_; |
| 559 | 563 |
| 560 // Whether the WebWidget is in auto resize mode, which is used for example | 564 // Whether the WebWidget is in auto resize mode, which is used for example |
| 561 // by extension popups. | 565 // by extension popups. |
| 562 bool auto_resize_mode_; | 566 bool auto_resize_mode_; |
| 563 | 567 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 | 727 |
| 724 ui::MenuSourceType context_menu_source_type_; | 728 ui::MenuSourceType context_menu_source_type_; |
| 725 gfx::Point touch_editing_context_menu_location_; | 729 gfx::Point touch_editing_context_menu_location_; |
| 726 | 730 |
| 727 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 731 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 728 }; | 732 }; |
| 729 | 733 |
| 730 } // namespace content | 734 } // namespace content |
| 731 | 735 |
| 732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 736 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |