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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 1461243002: [OLD ATTEMPT, DO NOT REVIEW] mustash: Enable connections to mus from the Chrome renderer Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invert connection creation flow. Needs lots of work. Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 2201cd0505018b1f5bbf0fb9da8d829d38f1f995..bfc08102a46a4e0a19214e34c0df4061dd63a3c1 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -528,6 +528,8 @@ class WebContentsViewAura::WindowObserver
void OnWindowBoundsChanged(aura::Window* window,
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) override {
+ fprintf(stderr, ">>>OnWindowBoundsChanged new_bounds(%d, %d, %d, %d)\n",
+ new_bounds.x(), new_bounds.y(), new_bounds.width(), new_bounds.height());
Fady Samuel 2015/11/24 04:42:38 Revert all of this.
if (window == host_window_ || window == view_->window_.get()) {
SendScreenRects();
if (old_bounds.origin() != new_bounds.origin()) {
@@ -673,6 +675,7 @@ WebContentsViewAura::~WebContentsViewAura() {
}
void WebContentsViewAura::SizeChangedCommon(const gfx::Size& size) {
+ fprintf(stderr, ">>>size: %d, %d\n", size.width(), size.height());
if (web_contents_->GetInterstitialPage())
web_contents_->GetInterstitialPage()->SetSize(size);
RenderWidgetHostView* rwhv =
@@ -1102,6 +1105,9 @@ gfx::Size WebContentsViewAura::GetMaximumSize() const {
void WebContentsViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
+ fprintf(stderr, ">>>>%s new_bounds(%d, %d, %d, %d)\n",
+ __PRETTY_FUNCTION__, new_bounds.x(), new_bounds.y(),
+ new_bounds.width(), new_bounds.height());
SizeChangedCommon(new_bounds.size());
if (delegate_)
delegate_->SizeChanged(new_bounds.size());

Powered by Google App Engine
This is Rietveld 408576698