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

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

Issue 11669018: Support dragging panels to stack and snap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change per feedback Created 7 years, 11 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_stack.h
diff --git a/chrome/browser/ui/panels/native_panel_stack.h b/chrome/browser/ui/panels/native_panel_stack.h
new file mode 100644
index 0000000000000000000000000000000000000000..03bf5b23b7419dfd71045beec709a48f77f3db87
--- /dev/null
+++ b/chrome/browser/ui/panels/native_panel_stack.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_
+#define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_
+
+#include "ui/gfx/native_widget_types.h"
+
+class StackedPanelCollection;
+namespace gfx {
+class Rect;
+}
+
+class NativePanelStack {
Dmitry Titov 2013/01/09 02:29:50 This needs a class comment. What this class is for
jianli 2013/01/09 21:00:59 Done.
+ friend class StackedPanelCollection;
+
+ public:
+ static NativePanelStack* Create(StackedPanelCollection* stack);
+ virtual ~NativePanelStack() {}
+
+ protected:
+ virtual void Close() = 0;
+ virtual void OnPanelAddedOrRemoved() = 0;
+ virtual gfx::NativeWindow GetNativeWindow() const = 0;
+ virtual void SetBounds(const gfx::Rect& bounds) = 0;
+};
+
+#endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_STACK_H_

Powered by Google App Engine
This is Rietveld 408576698