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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 5 #ifndef ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
6 #define ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 6 #define ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/caption_buttons/alternate_frame_size_button_delegate.h" 9 #include "ash/wm/caption_buttons/alternate_frame_size_button_delegate.h"
10 #include "ui/gfx/image/image_skia.h" 10 #include "ui/gfx/image/image_skia.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // views::ButtonListener override: 103 // views::ButtonListener override:
104 virtual void ButtonPressed(views::Button* sender, 104 virtual void ButtonPressed(views::Button* sender,
105 const ui::Event& event) OVERRIDE; 105 const ui::Event& event) OVERRIDE;
106 106
107 // AlternateFrameSizeButton::Delegate overrides: 107 // AlternateFrameSizeButton::Delegate overrides:
108 virtual bool IsMinimizeButtonVisible() const OVERRIDE; 108 virtual bool IsMinimizeButtonVisible() const OVERRIDE;
109 virtual void SetButtonsToNormal(Animate animate) OVERRIDE; 109 virtual void SetButtonsToNormal(Animate animate) OVERRIDE;
110 virtual void SetButtonIcons(CaptionButtonIcon minimize_button_icon, 110 virtual void SetButtonIcons(CaptionButtonIcon minimize_button_icon,
111 CaptionButtonIcon close_button_icon, 111 CaptionButtonIcon close_button_icon,
112 Animate animate) OVERRIDE; 112 Animate animate) OVERRIDE;
113 virtual const FrameCaptionButton* PressButtonAt( 113 virtual const FrameCaptionButton* GetButtonClosestTo(
114 const gfx::Point& position_in_screen, 114 const gfx::Point& position_in_screen) const OVERRIDE;
115 const gfx::Insets& pressed_hittest_outer_insets) const OVERRIDE; 115 virtual void SetHoveredAndPressedButtons(
116 const FrameCaptionButton* to_hover,
117 const FrameCaptionButton* to_press) OVERRIDE;
116 118
117 // The widget that the buttons act on. 119 // The widget that the buttons act on.
118 views::Widget* frame_; 120 views::Widget* frame_;
119 121
120 // The close button separator. 122 // The close button separator.
121 gfx::ImageSkia button_separator_; 123 gfx::ImageSkia button_separator_;
122 124
123 HeaderStyle header_style_; 125 HeaderStyle header_style_;
124 126
125 // The buttons. In the normal button style, at most one of |minimize_button_| 127 // The buttons. In the normal button style, at most one of |minimize_button_|
126 // and |size_button_| is visible. 128 // and |size_button_| is visible.
127 FrameCaptionButton* minimize_button_; 129 FrameCaptionButton* minimize_button_;
128 FrameCaptionButton* size_button_; 130 FrameCaptionButton* size_button_;
129 FrameCaptionButton* close_button_; 131 FrameCaptionButton* close_button_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView); 133 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView);
132 }; 134 };
133 135
134 } // namesapace ash 136 } // namesapace ash
135 137
136 #endif // ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 138 #endif // ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698