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

Unified Diff: ash/wm/caption_buttons/alternate_frame_size_button.h

Issue 101773004: Refactor PhantomWindowController so that the PhantomWindowController owns the phantom window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/caption_buttons/alternate_frame_size_button.h
diff --git a/ash/wm/caption_buttons/alternate_frame_size_button.h b/ash/wm/caption_buttons/alternate_frame_size_button.h
index 586eabbeb99ce7b2a4b73b9b475c375e60e14fce..f7a0f7a4766ef3c290b618f4a66793ee9f232bdf 100644
--- a/ash/wm/caption_buttons/alternate_frame_size_button.h
+++ b/ash/wm/caption_buttons/alternate_frame_size_button.h
@@ -18,6 +18,10 @@ class Widget;
namespace ash {
class AlternateFrameSizeButtonDelegate;
+namespace internal {
+class PhantomWindowController;
+}
+
// The maximize/restore button when using the alternate button style.
// When the mouse is pressed over the size button or the size button is touched:
// - The minimize and close buttons are set to snap left and snap right
@@ -92,6 +96,11 @@ class ASH_EXPORT AlternateFrameSizeButton : public FrameCaptionButton {
// the size button's default action is run when clicked.
SnapType snap_type_;
+ // Displays a preview of how the window's bounds will change as a result of
+ // snapping the window left or right. The preview is only visible if the snap
+ // left or snap right button is pressed.
+ scoped_ptr<internal::PhantomWindowController> phantom_window_controller_;
+
DISALLOW_COPY_AND_ASSIGN(AlternateFrameSizeButton);
};

Powered by Google App Engine
This is Rietveld 408576698