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

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

Issue 11824050: InstantExtended: Committed NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 11 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/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 int id = StartDownload(host, url, image_size); 1961 int id = StartDownload(host, url, image_size);
1962 favicon_download_map_[id] = callback; 1962 favicon_download_map_[id] = callback;
1963 return id; 1963 return id;
1964 } 1964 }
1965 1965
1966 bool WebContentsImpl::FocusLocationBarByDefault() { 1966 bool WebContentsImpl::FocusLocationBarByDefault() {
1967 WebUI* web_ui = GetWebUIForCurrentState(); 1967 WebUI* web_ui = GetWebUIForCurrentState();
1968 if (web_ui) 1968 if (web_ui)
1969 return web_ui->ShouldFocusLocationBarByDefault(); 1969 return web_ui->ShouldFocusLocationBarByDefault();
1970 NavigationEntry* entry = controller_.GetActiveEntry(); 1970 NavigationEntry* entry = controller_.GetActiveEntry();
1971 return (entry && entry->GetURL() == GURL(chrome::kAboutBlankURL)); 1971 return (entry &&
1972 (entry->GetVirtualURL() == GURL(chrome::kAboutBlankURL) ||
1973 entry->GetVirtualURL() == GURL(chrome::kChromeUINewTabURL)));
dhollowa 2013/01/22 22:34:58 Should this not test whether the InstantExteded fe
samarth 2013/01/25 21:08:40 Wouldn't that break the content/chrome separation?
dhollowa 2013/01/29 02:37:53 Ya, ok.
1972 } 1974 }
1973 1975
1974 void WebContentsImpl::SetFocusToLocationBar(bool select_all) { 1976 void WebContentsImpl::SetFocusToLocationBar(bool select_all) {
1975 if (delegate_) 1977 if (delegate_)
1976 delegate_->SetFocusToLocationBar(select_all); 1978 delegate_->SetFocusToLocationBar(select_all);
1977 } 1979 }
1978 1980
1979 void WebContentsImpl::OnRegisterIntentService( 1981 void WebContentsImpl::OnRegisterIntentService(
1980 const webkit_glue::WebIntentServiceData& data, 1982 const webkit_glue::WebIntentServiceData& data,
1981 bool user_gesture) { 1983 bool user_gesture) {
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
3435 3437
3436 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3438 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3437 return browser_plugin_guest_.get(); 3439 return browser_plugin_guest_.get();
3438 } 3440 }
3439 3441
3440 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3442 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3441 return browser_plugin_embedder_.get(); 3443 return browser_plugin_embedder_.get();
3442 } 3444 }
3443 3445
3444 } // namespace content 3446 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698