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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/previewable_contents_controller.h

Issue 11233076: Fix spurious visibility events when committing Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebaseline Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 - (id)initWithBrowser:(Browser*)browser 46 - (id)initWithBrowser:(Browser*)browser
47 windowController:(BrowserWindowController*)windowController; 47 windowController:(BrowserWindowController*)windowController;
48 48
49 // Sets the current preview and installs its WebContentsView into the view 49 // Sets the current preview and installs its WebContentsView into the view
50 // hierarchy. Hides the active view. |preview| must not be NULL. 50 // hierarchy. Hides the active view. |preview| must not be NULL.
51 - (void)showPreview:(content::WebContents*)preview; 51 - (void)showPreview:(content::WebContents*)preview;
52 52
53 // Closes the current preview and shows the active view. 53 // Closes the current preview and shows the active view.
54 - (void)hidePreview; 54 - (void)hidePreview;
55 55
56 // Called when a new tab with |contents| is added, so that we can check to see 56 // Called when a tab with |contents| is activated, so that we can check to see
57 // if it's the preview being committed (and adjust internal state accordingly). 57 // if it's the preview being activated (and adjust internal state accordingly).
58 - (void)onInsertTabWithContents:(content::WebContents*)contents; 58 - (void)onActivateTabWithContents:(content::WebContents*)contents;
59 59
60 // Returns YES if the preview contents is currently showing. 60 // Returns YES if the preview contents is currently showing.
61 - (BOOL)isShowingPreview; 61 - (BOOL)isShowingPreview;
62 62
63 @end 63 @end
64 64
65 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_ H_ 65 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698