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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 // We store the current cursor object so we can avoid spamming SetCursor | 598 // We store the current cursor object so we can avoid spamming SetCursor |
599 // messages. | 599 // messages. |
600 WebCursor current_cursor_; | 600 WebCursor current_cursor_; |
601 | 601 |
602 // The size of the RenderWidget. | 602 // The size of the RenderWidget. |
603 gfx::Size size_; | 603 gfx::Size size_; |
604 | 604 |
605 // The size of the view's backing surface in non-DPI-adjusted pixels. | 605 // The size of the view's backing surface in non-DPI-adjusted pixels. |
606 gfx::Size physical_backing_size_; | 606 gfx::Size physical_backing_size_; |
607 | 607 |
608 // Whether or not Blink's viewport size should be shrunk by the height of the | |
609 // URL-bar (always false on platforms where URL-bar hiding isn't supported). | |
610 bool top_controls_shrink_blink_size_; | |
611 | |
612 // The height of the top controls (always 0 on platforms where URL-bar hiding | |
613 // isn't supported). | |
614 float top_controls_height_; | |
615 | |
616 // The size of the visible viewport in DPI-adjusted pixels. | 608 // The size of the visible viewport in DPI-adjusted pixels. |
617 gfx::Size visible_viewport_size_; | 609 gfx::Size visible_viewport_size_; |
618 | 610 |
619 // The area that must be reserved for drawing the resize corner. | 611 // The area that must be reserved for drawing the resize corner. |
620 gfx::Rect resizer_rect_; | 612 gfx::Rect resizer_rect_; |
621 | 613 |
622 // Flags for the next ViewHostMsg_UpdateRect message. | 614 // Flags for the next ViewHostMsg_UpdateRect message. |
623 int next_paint_flags_; | 615 int next_paint_flags_; |
624 | 616 |
625 // Whether the WebWidget is in auto resize mode, which is used for example | 617 // Whether the WebWidget is in auto resize mode, which is used for example |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 // are sent to each frame in the list for events such as changing | 752 // are sent to each frame in the list for events such as changing |
761 // visibility state for example. | 753 // visibility state for example. |
762 base::ObserverList<RenderFrameImpl> render_frames_; | 754 base::ObserverList<RenderFrameImpl> render_frames_; |
763 | 755 |
764 bool has_host_context_menu_location_; | 756 bool has_host_context_menu_location_; |
765 gfx::Point host_context_menu_location_; | 757 gfx::Point host_context_menu_location_; |
766 | 758 |
767 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 759 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
768 render_widget_scheduling_state_; | 760 render_widget_scheduling_state_; |
769 | 761 |
770 private: | |
771 // When emulated, this returns original device scale factor. | 762 // When emulated, this returns original device scale factor. |
772 float GetOriginalDeviceScaleFactor() const; | 763 float GetOriginalDeviceScaleFactor() const; |
773 | 764 |
| 765 private: |
774 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 766 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
775 }; | 767 }; |
776 | 768 |
777 } // namespace content | 769 } // namespace content |
778 | 770 |
779 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 771 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |