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

Unified Diff: chrome/browser/ui/panels/panel_window_controller_cocoa.h

Issue 7538010: Make BrowserWindow::CreateFindBar non-static so that it can be overridden by Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also change TestBrowserWindow Created 9 years, 5 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/panels/panel_window_controller_cocoa.h
diff --git a/chrome/browser/ui/panels/panel_window_controller_cocoa.h b/chrome/browser/ui/panels/panel_window_controller_cocoa.h
index 6448d68c5ff98ed18b2776e56e9a283900e3c541..3c68ae2fae0d0cff7b4fcdfcaa7a23489cbfec9e 100644
--- a/chrome/browser/ui/panels/panel_window_controller_cocoa.h
+++ b/chrome/browser/ui/panels/panel_window_controller_cocoa.h
@@ -14,6 +14,7 @@
#import "base/mac/cocoa_protocols.h"
#include "base/memory/scoped_ptr.h"
+@class FindBarCocoaController;
class PanelBrowserWindowCocoa;
@class PanelTitlebarViewCocoa;
@@ -21,6 +22,7 @@ class PanelBrowserWindowCocoa;
@private
IBOutlet PanelTitlebarViewCocoa* titlebar_view_;
scoped_ptr<PanelBrowserWindowCocoa> windowShim_;
+ scoped_nsobject<FindBarCocoaController> findBarCocoaController_;
Dmitry Titov 2011/08/01 19:57:48 Why do we need to retain the controller here? I th
}
// Load the browser window nib and do any Cocoa-specific initialization.
@@ -39,6 +41,10 @@ class PanelBrowserWindowCocoa;
// Shows the window for the first time. Only happens once.
- (void)revealAnimatedWithFrame:(const NSRect&)frame;
+// Retains the given FindBarCocoaController and adds its view to this
+// Panel. Must only be called once per PanelWindowControllerCocoa.
+- (void)addFindBar:(FindBarCocoaController*)findBarCocoaController;
+
// Initiate the closing of the panel, starting from the platform-independent
// layer. This will take care of PanelManager, other panels and close the
// native window at the end.

Powered by Google App Engine
This is Rietveld 408576698