From 36df22b48817bc7fe7159e498f65b5e8b00f1605 Mon Sep 17 00:00:00 2001 From: "sadrul@chromium.org" Date: Thu, 24 Feb 2011 21:47:56 +0000 Subject: Transformable views: Use the transformation for points and events. Added and updated API for converting points between views' coordinate systems, taking transformations into consideration. This in turn gives us, for free, transformation for located events (mouse events, touch events). BUG=none TEST=ViewTest.TransformEvent Review URL: http://codereview.chromium.org/6534015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75960 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/gfx/canvas_skia.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/gfx/canvas_skia.h') diff --git a/ui/gfx/canvas_skia.h b/ui/gfx/canvas_skia.h index be44687..854ce84 100644 --- a/ui/gfx/canvas_skia.h +++ b/ui/gfx/canvas_skia.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -139,6 +139,7 @@ class CanvasSkia : public skia::PlatformCanvas, int dest_x, int dest_y, int w, int h); virtual gfx::NativeDrawingContext BeginPlatformPaint(); virtual void EndPlatformPaint(); + virtual void Transform(const ui::Transform& transform); virtual CanvasSkia* AsCanvasSkia(); virtual const CanvasSkia* AsCanvasSkia() const; -- cgit v1.1