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

Unified Diff: chrome/browser/tab_contents/match_preview.h

Issue 3415026: Makes instant support other open dispositions. (Closed)
Patch Set: Merge and prune Created 10 years, 3 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/browser.cc ('k') | chrome/browser/tab_contents/match_preview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/match_preview.h
diff --git a/chrome/browser/tab_contents/match_preview.h b/chrome/browser/tab_contents/match_preview.h
index 0adbe57fd021cd726a26d411f6675993056bc9a4..4b1fd12d5f00bc19093cc5503548e84fe52a71f3 100644
--- a/chrome/browser/tab_contents/match_preview.h
+++ b/chrome/browser/tab_contents/match_preview.h
@@ -84,6 +84,11 @@ class MatchPreview {
// may return false yet preview_contents() returns non-NULL.
bool is_active() const { return is_active_; }
+ // Returns the transition type of the last AutocompleteMatch passed to Update.
+ PageTransition::Type last_transition_type() const {
+ return last_transition_type_;
+ }
+
const GURL& url() const { return url_; }
private:
@@ -149,6 +154,9 @@ class MatchPreview {
scoped_ptr<FrameLoadObserver> frame_load_observer_;
+ // See description above getter.
+ PageTransition::Type last_transition_type_;
+
DISALLOW_COPY_AND_ASSIGN(MatchPreview);
};
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/tab_contents/match_preview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698