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

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

Issue 291003002: Move OverscrollController to RenderWidgetHostViewAura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK_GE Created 6 years, 6 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/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 2473
2474 // Notify observers about navigation. 2474 // Notify observers about navigation.
2475 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 2475 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
2476 DidNavigateAnyFrame(details, params)); 2476 DidNavigateAnyFrame(details, params));
2477 } 2477 }
2478 2478
2479 void WebContentsImpl::SetMainFrameMimeType(const std::string& mime_type) { 2479 void WebContentsImpl::SetMainFrameMimeType(const std::string& mime_type) {
2480 contents_mime_type_ = mime_type; 2480 contents_mime_type_ = mime_type;
2481 } 2481 }
2482 2482
2483 bool WebContentsImpl::CanOverscrollContent() { 2483 bool WebContentsImpl::CanOverscrollContent() const {
2484 if (delegate_) 2484 if (delegate_)
2485 return delegate_->CanOverscrollContent(); 2485 return delegate_->CanOverscrollContent();
2486 2486
2487 return false; 2487 return false;
2488 } 2488 }
2489 2489
2490 void WebContentsImpl::OnDidLoadResourceFromMemoryCache( 2490 void WebContentsImpl::OnDidLoadResourceFromMemoryCache(
2491 const GURL& url, 2491 const GURL& url,
2492 const std::string& security_info, 2492 const std::string& security_info,
2493 const std::string& http_method, 2493 const std::string& http_method,
(...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
4047 4047
4048 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 4048 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
4049 if (!delegate_) 4049 if (!delegate_)
4050 return; 4050 return;
4051 const gfx::Size new_size = GetPreferredSize(); 4051 const gfx::Size new_size = GetPreferredSize();
4052 if (new_size != old_size) 4052 if (new_size != old_size)
4053 delegate_->UpdatePreferredSize(this, new_size); 4053 delegate_->UpdatePreferredSize(this, new_size);
4054 } 4054 }
4055 4055
4056 } // namespace content 4056 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698