summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_loader_delegate.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 20:14:27 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 20:14:27 +0000
commit6b723f8690dcdbdc4071a235aa67483dc18de329 (patch)
treec0d3b2f787bdef1927674687d9639cbea5dc3143 /chrome/browser/instant/instant_loader_delegate.h
parent9929dbb542aa4a8531ea4d9eadbb43b99d13f846 (diff)
downloadchromium_src-6b723f8690dcdbdc4071a235aa67483dc18de329.zip
chromium_src-6b723f8690dcdbdc4071a235aa67483dc18de329.tar.gz
chromium_src-6b723f8690dcdbdc4071a235aa67483dc18de329.tar.bz2
Renames and moves match preview classes to instant. This doesn't
contain any changes other than renaming/moving, as such I'm TBRing. BUG=54833 TEST=none TBR=jcivelli@chromium.org Review URL: http://codereview.chromium.org/3602015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant/instant_loader_delegate.h')
-rw-r--r--chrome/browser/instant/instant_loader_delegate.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_loader_delegate.h b/chrome/browser/instant/instant_loader_delegate.h
new file mode 100644
index 0000000..b77742d
--- /dev/null
+++ b/chrome/browser/instant/instant_loader_delegate.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2010 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_LOADER_DELEGATE_H_
+#define CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_
+#pragma once
+
+#include "base/string16.h"
+
+namespace gfx {
+class Rect;
+}
+
+class InstantLoader;
+
+// InstantLoader's delegate. This interface is implemented by InstantController.
+class InstantLoaderDelegate {
+ public:
+ // Invoked when the loader is ready to be shown.
+ virtual void ShowInstantLoader(InstantLoader* loader) = 0;
+
+ // Invoked when the loader has suggested text.
+ virtual void SetSuggestedTextFor(InstantLoader* loader,
+ const string16& text) = 0;
+
+ // Returns the bounds of instant.
+ virtual gfx::Rect GetInstantBounds() = 0;
+
+ // Returns true if instant should be committed on mouse up.
+ virtual bool ShouldCommitInstantOnMouseUp() = 0;
+
+ // Invoked when the the loader should be committed.
+ virtual void CommitInstantLoader(InstantLoader* loader) = 0;
+
+ protected:
+ virtual ~InstantLoaderDelegate() {}
+};
+
+#endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_DELEGATE_H_