| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/tabs/dragged_tab_view.h" |
| 6 | 6 |
| 7 #include "app/gfx/canvas.h" | |
| 8 #include "base/callback.h" | 7 #include "base/callback.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
| 10 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
| 11 #include "chrome/browser/views/tabs/native_view_photobooth.h" | 10 #include "chrome/browser/views/tabs/native_view_photobooth.h" |
| 12 #include "chrome/browser/views/tabs/tab_renderer.h" | 11 #include "chrome/browser/views/tabs/tab_renderer.h" |
| 12 #include "gfx/canvas.h" |
| 13 #include "third_party/skia/include/core/SkShader.h" | 13 #include "third_party/skia/include/core/SkShader.h" |
| 14 #include "views/widget/widget.h" | 14 #include "views/widget/widget.h" |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 #include "views/widget/widget_win.h" | 16 #include "views/widget/widget_win.h" |
| 17 #elif defined(OS_LINUX) | 17 #elif defined(OS_LINUX) |
| 18 #include "views/widget/widget_gtk.h" | 18 #include "views/widget/widget_gtk.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 const int kTransparentAlpha = 200; | 21 const int kTransparentAlpha = 200; |
| 22 const int kOpaqueAlpha = 255; | 22 const int kOpaqueAlpha = 255; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 #else | 299 #else |
| 300 gfx::Rect bounds; | 300 gfx::Rect bounds; |
| 301 container_->GetBounds(&bounds, true); | 301 container_->GetBounds(&bounds, true); |
| 302 container_->SetBounds(gfx::Rect(bounds.x(), bounds.y(), w, h)); | 302 container_->SetBounds(gfx::Rect(bounds.x(), bounds.y(), w, h)); |
| 303 #endif | 303 #endif |
| 304 } | 304 } |
| 305 | 305 |
| 306 int DraggedTabView::ScaleValue(int value) { | 306 int DraggedTabView::ScaleValue(int value) { |
| 307 return attached_ ? value : static_cast<int>(value * kScalingFactor); | 307 return attached_ ? value : static_cast<int>(value * kScalingFactor); |
| 308 } | 308 } |
| OLD | NEW |