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

Unified Diff: chrome/browser/ui/panels/panel_browser_window_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: Remove underscore. Created 9 years, 4 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_browser_window_cocoa.h
diff --git a/chrome/browser/ui/panels/panel_browser_window_cocoa.h b/chrome/browser/ui/panels/panel_browser_window_cocoa.h
index fb2d0903531bba64227d80e965af9607384b8af3..74160a8385dd1f20cedc92dcad37cb3c2a7af8d0 100644
--- a/chrome/browser/ui/panels/panel_browser_window_cocoa.h
+++ b/chrome/browser/ui/panels/panel_browser_window_cocoa.h
@@ -42,6 +42,7 @@ class PanelBrowserWindowCocoa : public NativePanel,
virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
virtual void UpdatePanelTitleBar() OVERRIDE;
virtual void ShowTaskManagerForPanel() OVERRIDE;
+ virtual FindBar* CreatePanelFindBar() OVERRIDE;
virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
virtual void DrawAttention() OVERRIDE;
virtual bool IsDrawingAttention() const OVERRIDE;
@@ -67,6 +68,7 @@ class PanelBrowserWindowCocoa : public NativePanel,
gfx::Rect bounds_;
PanelWindowControllerCocoa* controller_; // Weak, owns us.
bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
+ bool has_find_bar_; // Find bar should only be created once per panel.
Dmitry Titov 2011/08/08 20:08:31 Can we make this data member that is only used in
jennb 2011/08/08 21:21:21 As discussed, will not change. DCHECK is not the s
DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
};

Powered by Google App Engine
This is Rietveld 408576698