OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
15 #include "views/view.h" | 15 #include "ui/views/view.h" |
16 | 16 |
17 class NativeViewPhotobooth; | 17 class NativeViewPhotobooth; |
18 | 18 |
19 class DraggedTabView : public views::View { | 19 class DraggedTabView : public views::View { |
20 public: | 20 public: |
21 // Creates a new DraggedTabView using |renderers| as the Views. DraggedTabView | 21 // Creates a new DraggedTabView using |renderers| as the Views. DraggedTabView |
22 // takes ownership of the views in |renderers| and |photobooth|. | 22 // takes ownership of the views in |renderers| and |photobooth|. |
23 DraggedTabView(const std::vector<views::View*>& renderers, | 23 DraggedTabView(const std::vector<views::View*>& renderers, |
24 const std::vector<gfx::Rect>& renderer_bounds, | 24 const std::vector<gfx::Rect>& renderer_bounds, |
25 const gfx::Point& mouse_tab_offset, | 25 const gfx::Point& mouse_tab_offset, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // we are dragging. | 82 // we are dragging. |
83 scoped_ptr<NativeViewPhotobooth> photobooth_; | 83 scoped_ptr<NativeViewPhotobooth> photobooth_; |
84 | 84 |
85 // Size of the TabContents being dragged. | 85 // Size of the TabContents being dragged. |
86 gfx::Size contents_size_; | 86 gfx::Size contents_size_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(DraggedTabView); | 88 DISALLOW_COPY_AND_ASSIGN(DraggedTabView); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ | 91 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_VIEW_H_ |
OLD | NEW |