| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_H_ | 5 #ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_H_ |
| 6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_H_ | 6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 9 #include "ash/frame/caption_buttons/frame_caption_button.h" | 11 #include "ash/frame/caption_buttons/frame_caption_button.h" |
| 10 #include "ash/frame/caption_buttons/frame_size_button_delegate.h" | 12 #include "ash/frame/caption_buttons/frame_size_button_delegate.h" |
| 11 #include "base/macros.h" | 13 #include "base/macros.h" |
| 12 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 13 | 15 |
| 14 namespace views { | 16 namespace views { |
| 15 class Widget; | 17 class Widget; |
| 16 } | 18 } |
| 17 | 19 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool in_snap_mode_; | 107 bool in_snap_mode_; |
| 106 | 108 |
| 107 // The action to execute when the drag/click is ended. If | 109 // The action to execute when the drag/click is ended. If |
| 108 // |snap_type_| == SNAP_NONE, the size button's default action is run when the | 110 // |snap_type_| == SNAP_NONE, the size button's default action is run when the |
| 109 // drag/click is ended. | 111 // drag/click is ended. |
| 110 SnapType snap_type_; | 112 SnapType snap_type_; |
| 111 | 113 |
| 112 // Displays a preview of how the window's bounds will change as a result of | 114 // Displays a preview of how the window's bounds will change as a result of |
| 113 // snapping the window left or right. The preview is only visible if the snap | 115 // snapping the window left or right. The preview is only visible if the snap |
| 114 // left or snap right button is pressed. | 116 // left or snap right button is pressed. |
| 115 scoped_ptr<PhantomWindowController> phantom_window_controller_; | 117 std::unique_ptr<PhantomWindowController> phantom_window_controller_; |
| 116 | 118 |
| 117 DISALLOW_COPY_AND_ASSIGN(FrameSizeButton); | 119 DISALLOW_COPY_AND_ASSIGN(FrameSizeButton); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 } // namespace ash | 122 } // namespace ash |
| 121 | 123 |
| 122 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_H_ | 124 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_SIZE_BUTTON_H_ |
| OLD | NEW |