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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.h » ('j') | chrome/browser/ui/panels/panel.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/native_panel.h
===================================================================
--- chrome/browser/ui/panels/native_panel.h (revision 90982)
+++ chrome/browser/ui/panels/native_panel.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
#pragma once
+#include "chrome/browser/ui/panels/panel.h"
#include "ui/gfx/native_widget_types.h"
class Panel;
@@ -34,8 +35,14 @@
virtual void ShowPanelInactive() = 0;
virtual gfx::Rect GetPanelBounds() const = 0;
virtual void SetPanelBounds(const gfx::Rect& bounds) = 0;
- virtual void MinimizePanel() = 0;
- virtual void RestorePanel() = 0;
+ virtual void OnPanelExpansionStateChanged(
+ Panel::ExpansionState expansion_state) = 0;
+
+ // When the mouse is over (mouse_x, mouse_y), finds out if the title-bar
+ // needs to pop up for the minimized panel that is only shown as 3-pixel
+ // lines.
+ virtual bool ShouldBringUpPanelTitleBar(int mouse_x, int mouse_y) const = 0;
+
virtual void ClosePanel() = 0;
virtual void ActivatePanel() = 0;
virtual void DeactivatePanel() = 0;
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.h » ('j') | chrome/browser/ui/panels/panel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698