| 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/browser/web_contents/web_contents_view_aura.h" | 5 #include "content/browser/web_contents/web_contents_view_aura.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 553 |
| 554 WebContentsViewAura::~WebContentsViewAura() { | 554 WebContentsViewAura::~WebContentsViewAura() { |
| 555 if (!window_) | 555 if (!window_) |
| 556 return; | 556 return; |
| 557 | 557 |
| 558 window_observer_.reset(); | 558 window_observer_.reset(); |
| 559 window_->RemoveObserver(this); | 559 window_->RemoveObserver(this); |
| 560 | 560 |
| 561 // Window needs a valid delegate during its destructor, so we explicitly | 561 // Window needs a valid delegate during its destructor, so we explicitly |
| 562 // delete it here. | 562 // delete it here. |
| 563 LOG(ERROR) << "free " << window_.get(); |
| 563 window_.reset(); | 564 window_.reset(); |
| 564 } | 565 } |
| 565 | 566 |
| 566 void WebContentsViewAura::SizeChangedCommon(const gfx::Size& size) { | 567 void WebContentsViewAura::SizeChangedCommon(const gfx::Size& size) { |
| 567 if (web_contents_->GetInterstitialPage()) | 568 if (web_contents_->GetInterstitialPage()) |
| 568 web_contents_->GetInterstitialPage()->SetSize(size); | 569 web_contents_->GetInterstitialPage()->SetSize(size); |
| 569 RenderWidgetHostView* rwhv = | 570 RenderWidgetHostView* rwhv = |
| 570 web_contents_->GetRenderWidgetHostView(); | 571 web_contents_->GetRenderWidgetHostView(); |
| 571 if (rwhv) | 572 if (rwhv) |
| 572 rwhv->SetSize(size); | 573 rwhv->SetSize(size); |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 bool allow_multiple_selection) { | 1346 bool allow_multiple_selection) { |
| 1346 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; | 1347 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; |
| 1347 } | 1348 } |
| 1348 | 1349 |
| 1349 void WebContentsViewAura::HidePopupMenu() { | 1350 void WebContentsViewAura::HidePopupMenu() { |
| 1350 NOTIMPLEMENTED(); | 1351 NOTIMPLEMENTED(); |
| 1351 } | 1352 } |
| 1352 #endif | 1353 #endif |
| 1353 | 1354 |
| 1354 } // namespace content | 1355 } // namespace content |
| OLD | NEW |