| 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 #include "content/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/debug/trace_event_synthetic_delay.h" | 10 #include "base/debug/trace_event_synthetic_delay.h" |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 if (!webwidget_) | 648 if (!webwidget_) |
| 649 return; | 649 return; |
| 650 | 650 |
| 651 if (compositor_) { | 651 if (compositor_) { |
| 652 compositor_->setViewportSize(new_size, physical_backing_size); | 652 compositor_->setViewportSize(new_size, physical_backing_size); |
| 653 compositor_->SetOverdrawBottomHeight(overdraw_bottom_height); | 653 compositor_->SetOverdrawBottomHeight(overdraw_bottom_height); |
| 654 } | 654 } |
| 655 | 655 |
| 656 physical_backing_size_ = physical_backing_size; | 656 physical_backing_size_ = physical_backing_size; |
| 657 overdraw_bottom_height_ = overdraw_bottom_height; | 657 overdraw_bottom_height_ = overdraw_bottom_height; |
| 658 visible_viewport_size_ = visible_viewport_size; |
| 658 resizer_rect_ = resizer_rect; | 659 resizer_rect_ = resizer_rect; |
| 659 | 660 |
| 660 // NOTE: We may have entered fullscreen mode without changing our size. | 661 // NOTE: We may have entered fullscreen mode without changing our size. |
| 661 bool fullscreen_change = is_fullscreen_ != is_fullscreen; | 662 bool fullscreen_change = is_fullscreen_ != is_fullscreen; |
| 662 if (fullscreen_change) | 663 if (fullscreen_change) |
| 663 WillToggleFullscreen(); | 664 WillToggleFullscreen(); |
| 664 is_fullscreen_ = is_fullscreen; | 665 is_fullscreen_ = is_fullscreen; |
| 665 | 666 |
| 666 if (size_ != new_size) { | 667 if (size_ != new_size) { |
| 667 size_ = new_size; | 668 size_ = new_size; |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2108 | 2109 |
| 2109 void RenderWidget::RegisterSwappedOutChildFrame(RenderFrameImpl* frame) { | 2110 void RenderWidget::RegisterSwappedOutChildFrame(RenderFrameImpl* frame) { |
| 2110 swapped_out_frames_.AddObserver(frame); | 2111 swapped_out_frames_.AddObserver(frame); |
| 2111 } | 2112 } |
| 2112 | 2113 |
| 2113 void RenderWidget::UnregisterSwappedOutChildFrame(RenderFrameImpl* frame) { | 2114 void RenderWidget::UnregisterSwappedOutChildFrame(RenderFrameImpl* frame) { |
| 2114 swapped_out_frames_.RemoveObserver(frame); | 2115 swapped_out_frames_.RemoveObserver(frame); |
| 2115 } | 2116 } |
| 2116 | 2117 |
| 2117 } // namespace content | 2118 } // namespace content |
| OLD | NEW |