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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 19786002: Implement canvas focus ring methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index 6ec45255d8cde044981148bb38ec7cd9081a67ee..bb1e8e5b53fc803ccc299ad41f8c5a18b1589617 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -48,6 +48,7 @@ class CanvasGradient;
class CanvasPattern;
class CanvasStyle;
class DOMPath;
+class Element;
class FloatRect;
class GraphicsContext;
class HTMLCanvasElement;
@@ -226,6 +227,11 @@ public:
PassRefPtr<Canvas2DContextAttributes> getContextAttributes() const;
+ void drawSystemFocusRing(Element*);
+ void drawSystemFocusRing(DOMPath*, Element*);
+ bool drawCustomFocusRing(Element*);
+ bool drawCustomFocusRing(DOMPath*, Element*);
+
private:
struct State : FontSelectorClient {
State();
@@ -321,6 +327,8 @@ private:
PassRefPtr<ImageData> getImageData(ImageBuffer::CoordinateSystem, float sx, float sy, float sw, float sh, ExceptionCode&) const;
void putImageData(ImageData*, ImageBuffer::CoordinateSystem, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight, ExceptionCode&);
+ void drawFocusRing(const Path&, Element*, bool custom);
+
virtual bool is2d() const OVERRIDE { return true; }
virtual bool isAccelerated() const OVERRIDE;
virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; }

Powered by Google App Engine
This is Rietveld 408576698