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

Unified Diff: chrome/browser/instant/instant_ntp.cc

Issue 12520005: Move desktop-specific Instant bits to c/b/ui/search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/instant/instant_ntp.h ('k') | chrome/browser/instant/instant_overlay.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_ntp.cc
diff --git a/chrome/browser/instant/instant_ntp.cc b/chrome/browser/instant/instant_ntp.cc
deleted file mode 100644
index bec8183af0fe5319693b86db4e0dfb6f367ceb08..0000000000000000000000000000000000000000
--- a/chrome/browser/instant/instant_ntp.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/instant/instant_ntp.h"
-
-#include "content/public/browser/navigation_entry.h"
-#include "content/public/browser/web_contents.h"
-
-InstantNTP::InstantNTP(InstantPage::Delegate* delegate,
- const std::string& instant_url)
- : InstantPage(delegate),
- loader_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
- instant_url_(instant_url) {
-}
-
-InstantNTP::~InstantNTP() {
-}
-
-void InstantNTP::InitContents(Profile* profile,
- const content::WebContents* active_tab,
- const base::Closure& on_stale_callback) {
- loader_.Init(GURL(instant_url_), profile, active_tab, on_stale_callback);
- SetContents(loader_.contents());
- loader_.Load();
-}
-
-scoped_ptr<content::WebContents> InstantNTP::ReleaseContents() {
- SetContents(NULL);
- return loader_.ReleaseContents();
-}
-
-void InstantNTP::OnSwappedContents() {
- SetContents(loader_.contents());
-}
-
-void InstantNTP::OnFocus() {
- NOTREACHED();
-}
-
-void InstantNTP::OnMouseDown() {
- NOTREACHED();
-}
-
-void InstantNTP::OnMouseUp() {
- NOTREACHED();
-}
-
-content::WebContents* InstantNTP::OpenURLFromTab(
- content::WebContents* source,
- const content::OpenURLParams& params) {
- return NULL;
-}
-
-void InstantNTP::LoadCompletedMainFrame() {
-}
-
-bool InstantNTP::ShouldProcessRenderViewCreated() {
- return true;
-}
-
-bool InstantNTP::ShouldProcessRenderViewGone() {
- return true;
-}
« no previous file with comments | « chrome/browser/instant/instant_ntp.h ('k') | chrome/browser/instant/instant_overlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698