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

Unified Diff: chrome/browser/ui/panels/native_panel.h

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 10 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
Index: chrome/browser/ui/panels/native_panel.h
diff --git a/chrome/browser/ui/panels/native_panel.h b/chrome/browser/ui/panels/native_panel.h
index 2298b77119fdc5a4f98b94457b8a048e177c4855..87ee8fe05528a294397cb285ef4af4df4f293a6e 100644
--- a/chrome/browser/ui/panels/native_panel.h
+++ b/chrome/browser/ui/panels/native_panel.h
@@ -87,6 +87,9 @@ class NativePanel {
// Sets whether the panel app icon is visible (usually refers to the app icons
// in the desktop bar).
virtual void SetPanelAppIconVisibility(bool visible) = 0;
+
+ // Sets whether the panel window is always on top.
+ virtual void SetPanelAlwaysOnTop(bool on_top) = 0;
};
// A NativePanel utility interface used for accessing elements of the
@@ -96,9 +99,11 @@ class NativePanelTesting {
static NativePanelTesting* Create(NativePanel* native_panel);
virtual ~NativePanelTesting() {}
- virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0;
+ // |mouse_location| is in screen coordinates.
+ virtual void PressLeftMouseButtonTitlebar(
+ const gfx::Point& mouse_location) = 0;
virtual void ReleaseMouseButtonTitlebar() = 0;
- virtual void DragTitlebar(int delta_x, int delta_y) = 0;
+ virtual void DragTitlebar(const gfx::Point& mouse_location) = 0;
virtual void CancelDragTitlebar() = 0;
virtual void FinishDragTitlebar() = 0;

Powered by Google App Engine
This is Rietveld 408576698