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

Side by Side Diff: chrome/browser/ui/panels/old_panel.h

Issue 10908153: [Panel refactor] Deprecate old panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_chromeos test failure Created 8 years, 3 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/old_docked_panel_browsertest.cc ('k') | chrome/browser/ui/panels/old_panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698