| 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/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // WebContentsImpl::DestructionObserver ---------------------------------------- | 302 // WebContentsImpl::DestructionObserver ---------------------------------------- |
| 303 | 303 |
| 304 class WebContentsImpl::DestructionObserver : public WebContentsObserver { | 304 class WebContentsImpl::DestructionObserver : public WebContentsObserver { |
| 305 public: | 305 public: |
| 306 DestructionObserver(WebContentsImpl* owner, WebContents* watched_contents) | 306 DestructionObserver(WebContentsImpl* owner, WebContents* watched_contents) |
| 307 : WebContentsObserver(watched_contents), | 307 : WebContentsObserver(watched_contents), |
| 308 owner_(owner) { | 308 owner_(owner) { |
| 309 } | 309 } |
| 310 | 310 |
| 311 // WebContentsObserver: | 311 // WebContentsObserver: |
| 312 virtual void WebContentsDestroyed() OVERRIDE { | 312 virtual void WebContentsDestroyed() override { |
| 313 owner_->OnWebContentsDestroyed( | 313 owner_->OnWebContentsDestroyed( |
| 314 static_cast<WebContentsImpl*>(web_contents())); | 314 static_cast<WebContentsImpl*>(web_contents())); |
| 315 } | 315 } |
| 316 | 316 |
| 317 private: | 317 private: |
| 318 WebContentsImpl* owner_; | 318 WebContentsImpl* owner_; |
| 319 | 319 |
| 320 DISALLOW_COPY_AND_ASSIGN(DestructionObserver); | 320 DISALLOW_COPY_AND_ASSIGN(DestructionObserver); |
| 321 }; | 321 }; |
| 322 | 322 |
| (...skipping 4050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4373 node->render_manager()->ResumeResponseDeferredAtStart(); | 4373 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4374 } | 4374 } |
| 4375 | 4375 |
| 4376 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4376 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4377 force_disable_overscroll_content_ = force_disable; | 4377 force_disable_overscroll_content_ = force_disable; |
| 4378 if (view_) | 4378 if (view_) |
| 4379 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4379 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4380 } | 4380 } |
| 4381 | 4381 |
| 4382 } // namespace content | 4382 } // namespace content |
| OLD | NEW |