Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 683
684 // Set if we are waiting for a repaint ack for the view. 684 // Set if we are waiting for a repaint ack for the view.
685 bool repaint_ack_pending_; 685 bool repaint_ack_pending_;
686 686
687 // True when waiting for RESIZE_ACK. 687 // True when waiting for RESIZE_ACK.
688 bool resize_ack_pending_; 688 bool resize_ack_pending_;
689 689
690 // The current size of the RenderWidget. 690 // The current size of the RenderWidget.
691 gfx::Size current_size_; 691 gfx::Size current_size_;
692 692
693 // The size of the view's backing surface in non-DPI-adjusted pixels.
694 gfx::Size physical_backing_size_;
695
693 // The size we last sent as requested size to the renderer. |current_size_| 696 // The size we last sent as requested size to the renderer. |current_size_|
694 // is only updated once the resize message has been ack'd. This on the other 697 // is only updated once the resize message has been ack'd. This on the other
695 // hand is updated when the resize message is sent. This is very similar to 698 // hand is updated when the resize message is sent. This is very similar to
696 // |resize_ack_pending_|, but the latter is not set if the new size has width 699 // |resize_ack_pending_|, but the latter is not set if the new size has width
697 // or height zero, which is why we need this too. 700 // or height zero, which is why we need this too.
698 gfx::Size in_flight_size_; 701 gfx::Size in_flight_size_;
699 702
700 // The next auto resize to send. 703 // The next auto resize to send.
701 gfx::Size new_auto_size_; 704 gfx::Size new_auto_size_;
702 705
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 #if defined(OS_WIN) 850 #if defined(OS_WIN)
848 std::list<HWND> dummy_windows_for_activation_; 851 std::list<HWND> dummy_windows_for_activation_;
849 #endif 852 #endif
850 853
851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 854 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
852 }; 855 };
853 856
854 } // namespace content 857 } // namespace content
855 858
856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 859 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698