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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h

Issue 11026050: Fix crash when using Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
diff --git a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
index fdf9010ff72c2141c0f9298f08f7314a4eb4230d..947a945b1a1a2a3f59a38b6c53d19a8b0e2bbccb 100644
--- a/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
+++ b/chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h
@@ -40,6 +40,10 @@ class WebContents;
// Closes the current preview and shows the active view.
- (void)hidePreview;
+// Called when a new tab with |contents| is added, so that we can check to see
+// if it's the preview being committed (and adjust internal state accordingly).
+- (void)onInsertTabWithContents:(content::WebContents*)contents;
+
// Returns YES if the preview contents is currently showing.
- (BOOL)isShowingPreview;

Powered by Google App Engine
This is Rietveld 408576698