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

Unified Diff: ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
diff --git a/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc b/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
index 7d9b4ae63a9cdaf89b8164e7878b756fff226ac5..715cdeac30203bd0852a5311da7b45c9c13599b3 100644
--- a/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
+++ b/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -78,7 +78,7 @@ class Tab : public View {
paint.setColor(kTabBorderColor);
paint.setStrokeWidth(kTabBorderThickness * 2);
- canvas->AsCanvasSkia()->sk_canvas()->drawPath(path, paint);
+ canvas->sk_canvas()->drawPath(path, paint);
}
void PaintTabTitle(gfx::Canvas* canvas, bool selected) {
@@ -162,8 +162,7 @@ class TabStrip : public View {
paint.setStrokeWidth(kTabBorderThickness);
SkScalar line_y = SkIntToScalar(height()) - kTabBorderThickness;
SkScalar line_width = SkIntToScalar(width());
- canvas->AsCanvasSkia()->sk_canvas()->drawLine(0, line_y, line_width, line_y,
- paint);
+ canvas->sk_canvas()->drawLine(0, line_y, line_width, line_y, paint);
}
private:

Powered by Google App Engine
This is Rietveld 408576698