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

Unified Diff: chrome/browser/instant/instant_controller_delegate.h

Issue 11262015: Remove unused / unnecessary stuff from Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SuggestedTextView entirely Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/instant/instant_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_controller_delegate.h
diff --git a/chrome/browser/instant/instant_controller_delegate.h b/chrome/browser/instant/instant_controller_delegate.h
deleted file mode 100644
index ecd4e29604d70d654e37d289f55cac8322bf7df2..0000000000000000000000000000000000000000
--- a/chrome/browser/instant/instant_controller_delegate.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_
-#define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_
-
-#include "base/string16.h"
-#include "chrome/common/instant_types.h"
-
-class TabContents;
-
-namespace gfx {
-class Rect;
-}
-
-// InstantController calls these methods on its delegate (Browser, via
-// BrowserInstantController) to ask for the Instant preview to be shown,
-// hidden, etc. In the following methods, if a TabContents argument is
-// explicitly supplied, the delegate MUST use it. Otherwise, the preview
-// TabContents can be gotten by calling InstantController::GetPreviewContents()
-// (note that it may return NULL).
-class InstantControllerDelegate {
- public:
- // Commit the |preview| by merging it into the active tab or adding it as a
- // new tab, based on |in_new_tab|. Delegate takes ownership of |preview|.
- virtual void CommitInstant(TabContents* preview, bool in_new_tab) = 0;
-
- // Autocomplete the Instant |suggestion| into the omnibox.
- virtual void SetInstantSuggestion(const InstantSuggestion& suggestion) = 0;
-
- // Return the bounds that the preview is placed at, in screen coordinates.
- virtual gfx::Rect GetInstantBounds() = 0;
-
- // Notification that the preview gained focus, usually due to the user
- // clicking on it.
- virtual void InstantPreviewFocused() = 0;
-
- // Return the currently active tab, over which any preview would be shown.
- virtual TabContents* GetActiveTabContents() const = 0;
-
- protected:
- virtual ~InstantControllerDelegate() {}
-};
-
-#endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_DELEGATE_H_
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/instant/instant_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698