Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/views/tabs/dragged_tab_view.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.cc ('k') | chrome/browser/views/tabs/native_view_photobooth_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698