OLD | NEW |
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 namespace content { | 10 namespace content { |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 @property(readonly, nonatomic) NSView* activeContainer; | 34 @property(readonly, nonatomic) NSView* activeContainer; |
35 | 35 |
36 // Sets the current preview and installs its WebContentsView into the view | 36 // Sets the current preview and installs its WebContentsView into the view |
37 // hierarchy. Hides the active view. |preview| must not be NULL. | 37 // hierarchy. Hides the active view. |preview| must not be NULL. |
38 - (void)showPreview:(content::WebContents*)preview; | 38 - (void)showPreview:(content::WebContents*)preview; |
39 | 39 |
40 // Closes the current preview and shows the active view. | 40 // Closes the current preview and shows the active view. |
41 - (void)hidePreview; | 41 - (void)hidePreview; |
42 | 42 |
| 43 // Called when a new tab with |contents| is added, so that we can check to see |
| 44 // if it's the preview being committed (and adjust internal state accordingly). |
| 45 - (void)onInsertTabWithContents:(content::WebContents*)contents; |
| 46 |
43 // Returns YES if the preview contents is currently showing. | 47 // Returns YES if the preview contents is currently showing. |
44 - (BOOL)isShowingPreview; | 48 - (BOOL)isShowingPreview; |
45 | 49 |
46 @end | 50 @end |
47 | 51 |
48 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_
H_ | 52 #endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_PREVIEWABLE_CONTENTS_CONTROLLER_
H_ |
OLD | NEW |