| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // The unscaled offset of the mouse from the top left of the dragged tab. | 165 // The unscaled offset of the mouse from the top left of the dragged tab. |
| 166 // This is used to maintain an appropriate offset for the mouse pointer when | 166 // This is used to maintain an appropriate offset for the mouse pointer when |
| 167 // dragging scaled and unscaled representations, and also to calculate the | 167 // dragging scaled and unscaled representations, and also to calculate the |
| 168 // position of detached windows. | 168 // position of detached windows. |
| 169 gfx::Point mouse_tab_offset_; | 169 gfx::Point mouse_tab_offset_; |
| 170 | 170 |
| 171 // The size of the tab renderer when the dragged tab is attached to a | 171 // The size of the tab renderer when the dragged tab is attached to a |
| 172 // tabstrip. | 172 // tabstrip. |
| 173 gfx::Size attached_tab_size_; | 173 gfx::Size attached_tab_size_; |
| 174 | 174 |
| 175 // The dimensions of the TabContentsWrapper being dragged. | 175 // The dimensions of the TabContents being dragged. |
| 176 gfx::Size contents_size_; | 176 gfx::Size contents_size_; |
| 177 | 177 |
| 178 // The animation used to slide the attached tab to its final location. | 178 // The animation used to slide the attached tab to its final location. |
| 179 ui::SlideAnimation close_animation_; | 179 ui::SlideAnimation close_animation_; |
| 180 | 180 |
| 181 // A callback notified when the animation is complete. | 181 // A callback notified when the animation is complete. |
| 182 base::Closure animation_callback_; | 182 base::Closure animation_callback_; |
| 183 | 183 |
| 184 // The start and end bounds of the animation sequence. | 184 // The start and end bounds of the animation sequence. |
| 185 gfx::Rect animation_start_bounds_; | 185 gfx::Rect animation_start_bounds_; |
| 186 gfx::Rect animation_end_bounds_; | 186 gfx::Rect animation_end_bounds_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk); | 188 DISALLOW_COPY_AND_ASSIGN(DraggedViewGtk); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ | 191 #endif // CHROME_BROWSER_UI_GTK_TABS_DRAGGED_VIEW_GTK_H_ |
| OLD | NEW |