| OLD | NEW |
| 1 // Copyright (c) 2010 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/views/tabs/dragged_tab_view.h" | 5 #include "chrome/browser/ui/views/tabs/dragged_tab_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/views/tabs/native_view_photobooth.h" | 7 #include "chrome/browser/ui/views/tabs/native_view_photobooth.h" |
| 8 #include "gfx/canvas_skia.h" | 8 #include "gfx/canvas_skia.h" |
| 9 #include "third_party/skia/include/core/SkShader.h" | 9 #include "third_party/skia/include/core/SkShader.h" |
| 10 #include "views/widget/widget.h" | 10 #include "views/widget/widget.h" |
| 11 | 11 |
| 12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
| 13 #include "views/widget/widget_win.h" | 13 #include "views/widget/widget_win.h" |
| 14 #elif defined(OS_LINUX) | 14 #elif defined(OS_LINUX) |
| 15 #include "views/widget/widget_gtk.h" | 15 #include "views/widget/widget_gtk.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 #else | 213 #else |
| 214 gfx::Rect bounds; | 214 gfx::Rect bounds; |
| 215 container_->GetBounds(&bounds, true); | 215 container_->GetBounds(&bounds, true); |
| 216 container_->SetBounds(gfx::Rect(bounds.x(), bounds.y(), w, h)); | 216 container_->SetBounds(gfx::Rect(bounds.x(), bounds.y(), w, h)); |
| 217 #endif | 217 #endif |
| 218 } | 218 } |
| 219 | 219 |
| 220 int DraggedTabView::ScaleValue(int value) { | 220 int DraggedTabView::ScaleValue(int value) { |
| 221 return static_cast<int>(value * kScalingFactor); | 221 return static_cast<int>(value * kScalingFactor); |
| 222 } | 222 } |
| OLD | NEW |