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

Side by Side Diff: chrome/browser/ui/panels/panel.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void ToggleTabStripMode() OVERRIDE; 131 virtual void ToggleTabStripMode() OVERRIDE;
132 #if defined(OS_MACOSX) 132 #if defined(OS_MACOSX)
133 virtual void OpenTabpose() OVERRIDE; 133 virtual void OpenTabpose() OVERRIDE;
134 #endif 134 #endif
135 virtual void PrepareForInstant() OVERRIDE; 135 virtual void PrepareForInstant() OVERRIDE;
136 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; 136 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE;
137 virtual void HideInstant(bool instant_is_active) OVERRIDE; 137 virtual void HideInstant(bool instant_is_active) OVERRIDE;
138 virtual gfx::Rect GetInstantBounds() OVERRIDE; 138 virtual gfx::Rect GetInstantBounds() OVERRIDE;
139 virtual WindowOpenDisposition GetDispositionForPopupBounds( 139 virtual WindowOpenDisposition GetDispositionForPopupBounds(
140 const gfx::Rect& bounds) OVERRIDE; 140 const gfx::Rect& bounds) OVERRIDE;
141 virtual FindBar* CreateFindBar() OVERRIDE;
141 #if defined(OS_CHROMEOS) 142 #if defined(OS_CHROMEOS)
142 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) OVERRIDE; 143 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) OVERRIDE;
143 #endif 144 #endif
144 145
145 // Construct a native panel BrowserWindow implementation for the specified 146 // Construct a native panel BrowserWindow implementation for the specified
146 // |browser|. 147 // |browser|.
147 static NativePanel* CreateNativePanel(Browser* browser, 148 static NativePanel* CreateNativePanel(Browser* browser,
148 Panel* panel, 149 Panel* panel,
149 const gfx::Rect& bounds); 150 const gfx::Rect& bounds);
150 151
(...skipping 26 matching lines...) Expand all
177 // Platform specifc implementation for panels. It'd be one of 178 // Platform specifc implementation for panels. It'd be one of
178 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. 179 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa.
179 NativePanel* native_panel_; // Weak, owns us. 180 NativePanel* native_panel_; // Weak, owns us.
180 181
181 ExpansionState expansion_state_; 182 ExpansionState expansion_state_;
182 183
183 DISALLOW_COPY_AND_ASSIGN(Panel); 184 DISALLOW_COPY_AND_ASSIGN(Panel);
184 }; 185 };
185 186
186 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 187 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698