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