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

Side by Side Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h

Issue 1454163005: Change float-->double in CanvasRenderingContext2D.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update bug number in TestExpectations Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Lost context occurred due to internal implementation reasons. 97 // Lost context occurred due to internal implementation reasons.
98 SyntheticLostContext, 98 SyntheticLostContext,
99 }; 99 };
100 virtual void loseContext(LostContextMode) { } 100 virtual void loseContext(LostContextMode) { }
101 101
102 // Canvas2D-specific interface 102 // Canvas2D-specific interface
103 virtual bool is2d() const { return false; } 103 virtual bool is2d() const { return false; }
104 virtual void restoreCanvasMatrixClipStack(SkCanvas*) const { } 104 virtual void restoreCanvasMatrixClipStack(SkCanvas*) const { }
105 virtual void reset() { } 105 virtual void reset() { }
106 virtual void clearRect(float x, float y, float width, float height) { } 106 virtual void clearRect(double x, double y, double width, double height) { }
107 virtual void didSetSurfaceSize() { } 107 virtual void didSetSurfaceSize() { }
108 virtual void setShouldAntialias(bool) { } 108 virtual void setShouldAntialias(bool) { }
109 virtual unsigned hitRegionsCount() const { return 0; } 109 virtual unsigned hitRegionsCount() const { return 0; }
110 virtual void setFont(const String&) { } 110 virtual void setFont(const String&) { }
111 virtual void styleDidChange(const ComputedStyle* oldStyle, const ComputedSty le& newStyle) { } 111 virtual void styleDidChange(const ComputedStyle* oldStyle, const ComputedSty le& newStyle) { }
112 112
113 // WebGL-specific interface 113 // WebGL-specific interface
114 virtual bool is3d() const { return false; } 114 virtual bool is3d() const { return false; }
115 virtual void setFilterQuality(SkFilterQuality) { ASSERT_NOT_REACHED(); } 115 virtual void setFilterQuality(SkFilterQuality) { ASSERT_NOT_REACHED(); }
116 virtual void reshape(int width, int height) { ASSERT_NOT_REACHED(); } 116 virtual void reshape(int width, int height) { ASSERT_NOT_REACHED(); }
(...skipping 14 matching lines...) Expand all
131 131
132 private: 132 private:
133 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; 133 RawPtrWillBeMember<HTMLCanvasElement> m_canvas;
134 HashSet<String> m_cleanURLs; 134 HashSet<String> m_cleanURLs;
135 HashSet<String> m_dirtyURLs; 135 HashSet<String> m_dirtyURLs;
136 }; 136 };
137 137
138 } // namespace blink 138 } // namespace blink
139 139
140 #endif 140 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698