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 #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 Loading... |
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_ |
OLD | NEW |