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

Side by Side Diff: chrome/browser/ui/panels/native_panel.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_NATIVE_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 16 matching lines...) Expand all
27 class NativePanel { 27 class NativePanel {
28 friend class Panel; 28 friend class Panel;
29 29
30 protected: 30 protected:
31 virtual ~NativePanel() {} 31 virtual ~NativePanel() {}
32 32
33 virtual void ShowPanel() = 0; 33 virtual void ShowPanel() = 0;
34 virtual gfx::Rect GetPanelBounds() const = 0; 34 virtual gfx::Rect GetPanelBounds() const = 0;
35 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; 35 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0;
36 virtual void MinimizePanel() = 0; 36 virtual void MinimizePanel() = 0;
37 virtual void RestorePanel() = 0; 37 virtual void RestorePanel(bool titlebar_only) = 0;
Dmitry Titov 2011/06/24 02:05:45 Hmm. So we had 2 states (minimized and restored)
jianli 2011/06/29 01:28:12 As discussed, I changed to using one method SetPan
38 virtual void ClosePanel() = 0; 38 virtual void ClosePanel() = 0;
39 virtual void ActivatePanel() = 0; 39 virtual void ActivatePanel() = 0;
40 virtual void DeactivatePanel() = 0; 40 virtual void DeactivatePanel() = 0;
41 virtual bool IsPanelActive() const = 0; 41 virtual bool IsPanelActive() const = 0;
42 virtual gfx::NativeWindow GetNativePanelHandle() = 0; 42 virtual gfx::NativeWindow GetNativePanelHandle() = 0;
43 virtual void UpdatePanelTitleBar() = 0; 43 virtual void UpdatePanelTitleBar() = 0;
44 virtual void ShowTaskManagerForPanel() = 0; 44 virtual void ShowTaskManagerForPanel() = 0;
45 virtual void NotifyPanelOnUserChangedTheme() = 0; 45 virtual void NotifyPanelOnUserChangedTheme() = 0;
46 virtual void FlashPanelFrame() = 0; 46 virtual void FlashPanelFrame() = 0;
47 virtual void DestroyPanelBrowser() = 0; 47 virtual void DestroyPanelBrowser() = 0;
48 }; 48 };
49 49
50 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 50 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.h » ('j') | chrome/browser/ui/panels/panel_browser_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698