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 #include "chrome/browser/ui/views/tabs/dragged_tab_view.h" | 5 #include "chrome/browser/ui/views/tabs/dragged_tab_view.h" |
6 | 6 |
7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
8 #include "chrome/browser/ui/views/tabs/native_view_photobooth.h" | 8 #include "chrome/browser/ui/views/tabs/native_view_photobooth.h" |
9 #include "third_party/skia/include/core/SkShader.h" | 9 #include "third_party/skia/include/core/SkShader.h" |
10 #include "ui/gfx/canvas_skia.h" | 10 #include "ui/gfx/canvas_skia.h" |
11 #include "views/widget/widget.h" | 11 #include "views/widget/widget.h" |
12 | 12 |
13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
14 #include "views/widget/native_widget_win.h" | 14 #include "views/widget/native_widget_win.h" |
15 #elif defined(TOOLKIT_USES_GTK) | 15 #elif defined(TOOLKIT_USES_GTK) |
16 #include "views/widget/native_widget_gtk.h" | 16 #include "views/widget/native_widget_gtk.h" |
17 #endif | 17 #endif |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 gfx::Size DraggedTabView::PreferredContainerSize() { | 189 gfx::Size DraggedTabView::PreferredContainerSize() { |
190 gfx::Size ps = GetPreferredSize(); | 190 gfx::Size ps = GetPreferredSize(); |
191 return gfx::Size(ScaleValue(ps.width()), ScaleValue(ps.height())); | 191 return gfx::Size(ScaleValue(ps.width()), ScaleValue(ps.height())); |
192 } | 192 } |
193 | 193 |
194 int DraggedTabView::ScaleValue(int value) { | 194 int DraggedTabView::ScaleValue(int value) { |
195 return static_cast<int>(value * kScalingFactor); | 195 return static_cast<int>(value * kScalingFactor); |
196 } | 196 } |
OLD | NEW |