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

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

Issue 168943006: Keep the size button pressed when the user hovers the snap left or snap right button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: ash/wm/caption_buttons/frame_caption_button_container_view.h
diff --git a/ash/wm/caption_buttons/frame_caption_button_container_view.h b/ash/wm/caption_buttons/frame_caption_button_container_view.h
index c5609a111d5eb2810d7016573f24e015b8fdf333..39497e8a7aed74a98e86769895969b8e591e93a5 100644
--- a/ash/wm/caption_buttons/frame_caption_button_container_view.h
+++ b/ash/wm/caption_buttons/frame_caption_button_container_view.h
@@ -124,9 +124,11 @@ class ASH_EXPORT FrameCaptionButtonContainerView
virtual void SetButtonIcons(CaptionButtonIcon minimize_button_icon,
CaptionButtonIcon close_button_icon,
Animate animate) OVERRIDE;
- virtual const FrameCaptionButton* PressButtonAt(
- const gfx::Point& position_in_screen,
- const gfx::Insets& pressed_hittest_outer_insets) const OVERRIDE;
+ virtual const FrameCaptionButton* GetButtonClosestTo(
+ const gfx::Point& position_in_screen) const OVERRIDE;
+ virtual void SetHoveredAndPressedButtons(
+ const FrameCaptionButton* to_hover,
+ const FrameCaptionButton* to_press) OVERRIDE;
// The widget that the buttons act on.
views::Widget* frame_;

Powered by Google App Engine
This is Rietveld 408576698