summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_controller_delegate.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 03:22:50 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 03:22:50 +0000
commite4e15dca9f700cf5f0e9ff708622ff0cebe94100 (patch)
tree34c1e4ffc83ea2144a1b36477c8845ce7bb3b79b /chrome/browser/instant/instant_controller_delegate.h
parentb35c81cc0bd12bc4182105b40f8e2702ab684ea8 (diff)
downloadchromium_src-e4e15dca9f700cf5f0e9ff708622ff0cebe94100.zip
chromium_src-e4e15dca9f700cf5f0e9ff708622ff0cebe94100.tar.gz
chromium_src-e4e15dca9f700cf5f0e9ff708622ff0cebe94100.tar.bz2
Refactor Instant to separate out preview control
Separates out Show/Hide logic into a separate |InstantPreviewController| class. This class follows an observer pattern, observing the |InstantModel| changes. The model is held by the |InstantController|. The goal with this is to pave the way for future changes that will expand the complexity of the "view" logic, especially in the area of coordinating the animations used with --enable-instant-extended-api features. BUG=142785 TEST=No functional change. Refactoring only. R=sreeram@chromium.org, jered@chromium.org, samarth@chromium.org Review URL: https://chromiumcodereview.appspot.com/11144004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_controller_delegate.h')
-rw-r--r--chrome/browser/instant/instant_controller_delegate.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/instant/instant_controller_delegate.h b/chrome/browser/instant/instant_controller_delegate.h
index e37c852..11c10f6 100644
--- a/chrome/browser/instant/instant_controller_delegate.h
+++ b/chrome/browser/instant/instant_controller_delegate.h
@@ -22,12 +22,6 @@ class Rect;
// (note that it may return NULL).
class InstantControllerDelegate {
public:
- // Show the preview with the given |height|.
- virtual void ShowInstant(int height, InstantSizeUnits units) = 0;
-
- // Hide any preview currently being shown.
- virtual void HideInstant() = 0;
-
// 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;