| 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_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/crash_logging.h" | 10 #include "base/debug/crash_logging.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // WebContentsImpl::DestructionObserver ---------------------------------------- | 252 // WebContentsImpl::DestructionObserver ---------------------------------------- |
| 253 | 253 |
| 254 class WebContentsImpl::DestructionObserver : public WebContentsObserver { | 254 class WebContentsImpl::DestructionObserver : public WebContentsObserver { |
| 255 public: | 255 public: |
| 256 DestructionObserver(WebContentsImpl* owner, WebContents* watched_contents) | 256 DestructionObserver(WebContentsImpl* owner, WebContents* watched_contents) |
| 257 : WebContentsObserver(watched_contents), | 257 : WebContentsObserver(watched_contents), |
| 258 owner_(owner) { | 258 owner_(owner) { |
| 259 } | 259 } |
| 260 | 260 |
| 261 // WebContentsObserver: | 261 // WebContentsObserver: |
| 262 virtual void WebContentsDestroyed() override { | 262 void WebContentsDestroyed() override { |
| 263 owner_->OnWebContentsDestroyed( | 263 owner_->OnWebContentsDestroyed( |
| 264 static_cast<WebContentsImpl*>(web_contents())); | 264 static_cast<WebContentsImpl*>(web_contents())); |
| 265 } | 265 } |
| 266 | 266 |
| 267 private: | 267 private: |
| 268 WebContentsImpl* owner_; | 268 WebContentsImpl* owner_; |
| 269 | 269 |
| 270 DISALLOW_COPY_AND_ASSIGN(DestructionObserver); | 270 DISALLOW_COPY_AND_ASSIGN(DestructionObserver); |
| 271 }; | 271 }; |
| 272 | 272 |
| (...skipping 4077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4350 node->render_manager()->ResumeResponseDeferredAtStart(); | 4350 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4351 } | 4351 } |
| 4352 | 4352 |
| 4353 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4353 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4354 force_disable_overscroll_content_ = force_disable; | 4354 force_disable_overscroll_content_ = force_disable; |
| 4355 if (view_) | 4355 if (view_) |
| 4356 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4356 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4357 } | 4357 } |
| 4358 | 4358 |
| 4359 } // namespace content | 4359 } // namespace content |
| OLD | NEW |