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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/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
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
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
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698