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

Unified Diff: chrome/browser/ui/views/detachable_toolbar_view.h

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: chrome/browser/ui/views/detachable_toolbar_view.h
diff --git a/chrome/browser/ui/views/detachable_toolbar_view.h b/chrome/browser/ui/views/detachable_toolbar_view.h
index 9def6913ff1a2d8aaba11ec040ea4321fdd7fb30..e3cab1e6f8954d7b2903389b4246d41303da7e29 100644
--- a/chrome/browser/ui/views/detachable_toolbar_view.h
+++ b/chrome/browser/ui/views/detachable_toolbar_view.h
@@ -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.
@@ -34,7 +34,7 @@ class DetachableToolbarView : public views::AccessiblePaneView {
// Paints the background (including the theme image behind content area) when
// the bar/shelf is attached to the top toolbar. |background_origin| is the
// origin to use for painting the theme image.
- static void PaintBackgroundAttachedMode(gfx::Canvas* canvas,
+ static void PaintBackgroundAttachedMode(gfx::CanvasSkia* canvas,
views::View* view,
const gfx::Point& background_origin);
@@ -52,18 +52,18 @@ class DetachableToolbarView : public views::AccessiblePaneView {
views::View* view);
// Paint the horizontal border separating the shelf/bar from the page content.
- static void PaintHorizontalBorder(gfx::Canvas* canvas,
+ static void PaintHorizontalBorder(gfx::CanvasSkia* canvas,
DetachableToolbarView* view);
// Paint the background of the content area (the surface behind the
// bookmarks). |rect| is the rectangle to paint the background within.
// |roundness| describes the roundness of the corners.
- static void PaintContentAreaBackground(gfx::Canvas* canvas,
+ static void PaintContentAreaBackground(gfx::CanvasSkia* canvas,
ui::ThemeProvider* theme_provider,
const SkRect& rect,
double roundness);
// Paint the border around the content area (when in detached mode).
- static void PaintContentAreaBorder(gfx::Canvas* canvas,
+ static void PaintContentAreaBorder(gfx::CanvasSkia* canvas,
ui::ThemeProvider* theme_provider,
const SkRect& rect,
double roundness);
@@ -75,7 +75,7 @@ class DetachableToolbarView : public views::AccessiblePaneView {
// The color of the divider is a gradient starting with |top_color| at the
// top, and changing into |middle_color| and then over to |bottom_color| as
// you go further down.
- static void PaintVerticalDivider(gfx::Canvas* canvas,
+ static void PaintVerticalDivider(gfx::CanvasSkia* canvas,
int x,
int height,
int vertical_padding,

Powered by Google App Engine
This is Rietveld 408576698