| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_PANELS_OLD_PANEL_H_ | |
| 6 #define CHROME_BROWSER_UI_PANELS_OLD_PANEL_H_ | |
| 7 | |
| 8 #include "chrome/browser/ui/panels/panel.h" | |
| 9 | |
| 10 class Browser; | |
| 11 class PanelBrowserWindow; | |
| 12 | |
| 13 // Temporary class during the refactor to override behavior in Panel | |
| 14 // to provide legacy behavior. Will be deleted after refactor is complete. | |
| 15 class OldPanel : public Panel { | |
| 16 public: | |
| 17 OldPanel(Browser* browser, | |
| 18 const gfx::Size& min_size, const gfx::Size& max_size); | |
| 19 virtual ~OldPanel(); | |
| 20 | |
| 21 // Overridden from Panel. | |
| 22 virtual Browser* browser() const OVERRIDE; | |
| 23 virtual BrowserWindow* browser_window() const OVERRIDE; | |
| 24 virtual CommandUpdater* command_updater() OVERRIDE; | |
| 25 virtual Profile* profile() const OVERRIDE; | |
| 26 virtual void Initialize(const gfx::Rect& bounds, Browser* browser) OVERRIDE; | |
| 27 virtual content::WebContents* GetWebContents() const OVERRIDE; | |
| 28 virtual bool ShouldCloseWindow() OVERRIDE; | |
| 29 virtual void OnWindowClosing() OVERRIDE; | |
| 30 virtual void ExecuteCommandWithDisposition( | |
| 31 int id, | |
| 32 WindowOpenDisposition disposition) OVERRIDE; | |
| 33 virtual gfx::Image GetCurrentPageIcon() const OVERRIDE; | |
| 34 | |
| 35 private: | |
| 36 Browser* browser_; // Weak pointer. Owned by native panel. | |
| 37 | |
| 38 // A BrowserWindow for the browser to interact with. | |
| 39 scoped_ptr<PanelBrowserWindow> panel_browser_window_; | |
| 40 }; | |
| 41 | |
| 42 #endif // CHROME_BROWSER_UI_PANELS_OLD_PANEL_H_ | |
| OLD | NEW |