| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |