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

Unified Diff: ash/wm/panels/panel_window_resizer.h

Issue 12441010: Attach panel while dragging to bring it in front of other panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments, etc. Created 7 years, 9 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: ash/wm/panels/panel_window_resizer.h
diff --git a/ash/wm/panels/panel_window_resizer.h b/ash/wm/panels/panel_window_resizer.h
index 76657d3e9839203dd173ffd39e51804007d38d56..044ea66dfa7622fcdfcfb581f8781b2e2236868b 100644
--- a/ash/wm/panels/panel_window_resizer.h
+++ b/ash/wm/panels/panel_window_resizer.h
@@ -14,6 +14,8 @@ class Rect;
namespace ash {
+class WindowResizerOwner;
+
namespace internal {
class PanelLayoutManager;
}
@@ -27,7 +29,8 @@ class ASH_EXPORT PanelWindowResizer : public WindowResizer {
// Creates a new PanelWindowResizer. The caller takes ownership of the
// returned object. Returns NULL if not resizable.
- static PanelWindowResizer* Create(aura::Window* window,
+ static PanelWindowResizer* Create(WindowResizerOwner* owner,
+ aura::Window* window,
const gfx::Point& location,
int window_component);
@@ -49,7 +52,8 @@ class ASH_EXPORT PanelWindowResizer : public WindowResizer {
}
private:
- explicit PanelWindowResizer(const Details& details);
+ explicit PanelWindowResizer(WindowResizerOwner* owner,
+ const Details& details);
// Checks if the provided window bounds should attach to the launcher. If true
// the bounds are modified to snap the window to the launcher.
@@ -63,6 +67,9 @@ class ASH_EXPORT PanelWindowResizer : public WindowResizer {
// of the drag start.
void FinishDragging();
+ // The owner of this resizer.
+ WindowResizerOwner* owner_;
+
const Details details_;
// Panel container window.

Powered by Google App Engine
This is Rietveld 408576698