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

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

Issue 7242017: Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 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_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 PanelBrowserWindowCocoa(Browser* browser, Panel* panel, 24 PanelBrowserWindowCocoa(Browser* browser, Panel* panel,
25 const gfx::Rect& bounds); 25 const gfx::Rect& bounds);
26 virtual ~PanelBrowserWindowCocoa(); 26 virtual ~PanelBrowserWindowCocoa();
27 27
28 // Overridden from NativePanel 28 // Overridden from NativePanel
29 virtual void ShowPanel() OVERRIDE; 29 virtual void ShowPanel() OVERRIDE;
30 virtual void ShowPanelInactive() OVERRIDE; 30 virtual void ShowPanelInactive() OVERRIDE;
31 virtual gfx::Rect GetPanelBounds() const OVERRIDE; 31 virtual gfx::Rect GetPanelBounds() const OVERRIDE;
32 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 32 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE;
33 virtual void MinimizePanel() OVERRIDE; 33 virtual virtual void OnPanelExpansionStateChanged(
jennb 2011/06/30 17:33:31 virtual virtual
jianli 2011/06/30 18:22:36 Done.
34 virtual void RestorePanel() OVERRIDE; 34 Panel::ExpansionState expansion_state) OVERRIDE;
35 virtual bool ShouldBringUpPanelTitleBar(int mouse_x,
36 int mouse_y) const OVERRIDE;
35 virtual void ClosePanel() OVERRIDE; 37 virtual void ClosePanel() OVERRIDE;
36 virtual void ActivatePanel() OVERRIDE; 38 virtual void ActivatePanel() OVERRIDE;
37 virtual void DeactivatePanel() OVERRIDE; 39 virtual void DeactivatePanel() OVERRIDE;
38 virtual bool IsPanelActive() const OVERRIDE; 40 virtual bool IsPanelActive() const OVERRIDE;
39 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; 41 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
40 virtual void UpdatePanelTitleBar() OVERRIDE; 42 virtual void UpdatePanelTitleBar() OVERRIDE;
41 virtual void ShowTaskManagerForPanel() OVERRIDE; 43 virtual void ShowTaskManagerForPanel() OVERRIDE;
42 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 44 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
43 virtual void FlashPanelFrame() OVERRIDE; 45 virtual void FlashPanelFrame() OVERRIDE;
44 virtual void DestroyPanelBrowser() OVERRIDE; 46 virtual void DestroyPanelBrowser() OVERRIDE;
(...skipping 13 matching lines...) Expand all
58 scoped_ptr<Browser> browser_; 60 scoped_ptr<Browser> browser_;
59 scoped_ptr<Panel> panel_; 61 scoped_ptr<Panel> panel_;
60 gfx::Rect bounds_; 62 gfx::Rect bounds_;
61 PanelWindowControllerCocoa* controller_; // Weak, owns us. 63 PanelWindowControllerCocoa* controller_; // Weak, owns us.
62 64
63 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 65 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
64 }; 66 };
65 67
66 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 68 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
67 69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698