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

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

Issue 854943002: Remove RenderViewObserver::Resized (try 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test compile Created 5 years, 11 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
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 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 if (!params->new_size.IsEmpty() && !params->physical_backing_size.IsEmpty() && 630 if (!params->new_size.IsEmpty() && !params->physical_backing_size.IsEmpty() &&
631 size_changed) { 631 size_changed) {
632 resize_ack_pending_ = g_check_for_pending_resize_ack; 632 resize_ack_pending_ = g_check_for_pending_resize_ack;
633 } 633 }
634 634
635 if (!Send(new ViewMsg_Resize(routing_id_, *params))) { 635 if (!Send(new ViewMsg_Resize(routing_id_, *params))) {
636 resize_ack_pending_ = false; 636 resize_ack_pending_ = false;
637 } else { 637 } else {
638 old_resize_params_.swap(params); 638 old_resize_params_.swap(params);
639 } 639 }
640
641 if (delegate_)
642 delegate_->RenderWidgetWasResized(this);
640 } 643 }
641 644
642 void RenderWidgetHostImpl::ResizeRectChanged(const gfx::Rect& new_rect) { 645 void RenderWidgetHostImpl::ResizeRectChanged(const gfx::Rect& new_rect) {
643 Send(new ViewMsg_ChangeResizeRect(routing_id_, new_rect)); 646 Send(new ViewMsg_ChangeResizeRect(routing_id_, new_rect));
644 } 647 }
645 648
646 void RenderWidgetHostImpl::GotFocus() { 649 void RenderWidgetHostImpl::GotFocus() {
647 Focus(); 650 Focus();
648 if (delegate_) 651 if (delegate_)
649 delegate_->RenderWidgetGotFocus(this); 652 delegate_->RenderWidgetGotFocus(this);
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 } 2162 }
2160 #endif 2163 #endif
2161 2164
2162 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2165 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2163 if (view_) 2166 if (view_)
2164 return view_->PreferredReadbackFormat(); 2167 return view_->PreferredReadbackFormat();
2165 return kN32_SkColorType; 2168 return kN32_SkColorType;
2166 } 2169 }
2167 2170
2168 } // namespace content 2171 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_delegate.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698