summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/match_preview_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/match_preview_delegate.h')
-rw-r--r--chrome/browser/tab_contents/match_preview_delegate.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/chrome/browser/tab_contents/match_preview_delegate.h b/chrome/browser/tab_contents/match_preview_delegate.h
deleted file mode 100644
index fed4d89..0000000
--- a/chrome/browser/tab_contents/match_preview_delegate.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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_TAB_CONTENTS_MATCH_PREVIEW_DELEGATE_H_
-#define CHROME_BROWSER_TAB_CONTENTS_MATCH_PREVIEW_DELEGATE_H_
-#pragma once
-
-#include "base/string16.h"
-
-class TabContents;
-
-namespace gfx {
-class Rect;
-}
-
-// MatchPreview's delegate. Normally the Browser implements this. See
-// MatchPreview for details.
-class MatchPreviewDelegate {
- public:
- // Invoked when the preview TabContents should be shown.
- virtual void ShowMatchPreview(TabContents* preview_contents) = 0;
-
- // Invoked when the preview TabContents should be hidden.
- virtual void HideMatchPreview() = 0;
-
- // Invoked when the user does something that should result in the preview
- // TabContents becoming the active TabContents. The delegate takes ownership
- // of the supplied TabContents.
- virtual void CommitMatchPreview(TabContents* preview_contents) = 0;
-
- // Invoked when the suggested text is to change to |text|.
- virtual void SetSuggestedText(const string16& text) = 0;
-
- // Returns the bounds the match preview will be placed in, in screen
- // coordinates.
- virtual gfx::Rect GetMatchPreviewBounds() = 0;
-
- protected:
- virtual ~MatchPreviewDelegate() {}
-};
-
-#endif // CHROME_BROWSER_TAB_CONTENTS_MATCH_PREVIEW_DELEGATE_H_