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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.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, 6 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_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
7 7
8 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 8 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
9 #include "chrome/browser/ui/panels/native_panel.h" 9 #include "chrome/browser/ui/panels/native_panel.h"
10 10
(...skipping 21 matching lines...) Expand all
32 gfx::Point last_click_position) OVERRIDE; 32 gfx::Point last_click_position) OVERRIDE;
33 virtual void SaveWindowPosition() OVERRIDE; 33 virtual void SaveWindowPosition() OVERRIDE;
34 virtual void SetGeometryHints() OVERRIDE; 34 virtual void SetGeometryHints() OVERRIDE;
35 virtual bool UseCustomFrame() OVERRIDE; 35 virtual bool UseCustomFrame() OVERRIDE;
36 36
37 // Overridden from NativePanel: 37 // Overridden from NativePanel:
38 virtual void ShowPanel() OVERRIDE; 38 virtual void ShowPanel() OVERRIDE;
39 virtual gfx::Rect GetPanelBounds() const OVERRIDE; 39 virtual gfx::Rect GetPanelBounds() const OVERRIDE;
40 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 40 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE;
41 virtual void MinimizePanel() OVERRIDE; 41 virtual void MinimizePanel() OVERRIDE;
42 virtual void RestorePanel() OVERRIDE; 42 virtual void RestorePanel(bool titlebar_only) OVERRIDE;
43 virtual void ClosePanel() OVERRIDE; 43 virtual void ClosePanel() OVERRIDE;
44 virtual void ActivatePanel() OVERRIDE; 44 virtual void ActivatePanel() OVERRIDE;
45 virtual void DeactivatePanel() OVERRIDE; 45 virtual void DeactivatePanel() OVERRIDE;
46 virtual bool IsPanelActive() const OVERRIDE; 46 virtual bool IsPanelActive() const OVERRIDE;
47 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; 47 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
48 virtual void UpdatePanelTitleBar() OVERRIDE; 48 virtual void UpdatePanelTitleBar() OVERRIDE;
49 virtual void ShowTaskManagerForPanel() OVERRIDE; 49 virtual void ShowTaskManagerForPanel() OVERRIDE;
50 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; 50 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
51 virtual void FlashPanelFrame() OVERRIDE; 51 virtual void FlashPanelFrame() OVERRIDE;
52 virtual void DestroyPanelBrowser() OVERRIDE; 52 virtual void DestroyPanelBrowser() OVERRIDE;
53 53
54 private: 54 private:
55 void SetBoundsImpl(); 55 void SetBoundsImpl();
56 56
57 scoped_ptr<Panel> panel_; 57 scoped_ptr<Panel> panel_;
58 gfx::Rect bounds_; 58 gfx::Rect bounds_;
59 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 59 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
60 }; 60 };
61 61
62 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 62 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698