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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 1654653002: Canvas2d: Implement rerouting event by hit region's control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass existing tests. Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void loseContext(LostContextMode) override; 218 void loseContext(LostContextMode) override;
219 void didSetSurfaceSize() override; 219 void didSetSurfaceSize() override;
220 220
221 void restoreCanvasMatrixClipStack(SkCanvas*) const override; 221 void restoreCanvasMatrixClipStack(SkCanvas*) const override;
222 222
223 // TaskObserver implementation 223 // TaskObserver implementation
224 void didProcessTask() override; 224 void didProcessTask() override;
225 void willProcessTask() override { } 225 void willProcessTask() override { }
226 226
227 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle) override; 227 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle) override;
228 std::pair<Element*, String> getControlAndIDIfHitRegionExists(const LayoutPoi nt& location) override;
228 229
229 private: 230 private:
230 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; 231 friend class CanvasRenderingContext2DAutoRestoreSkCanvas;
231 232
232 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr ibutes& attrs, Document&); 233 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr ibutes& attrs, Document&);
233 234
234 CanvasRenderingContext2DState& modifiableState(); 235 CanvasRenderingContext2DState& modifiableState();
235 const CanvasRenderingContext2DState& state() const { return *m_stateStack.la st(); } 236 const CanvasRenderingContext2DState& state() const { return *m_stateStack.la st(); }
236 237
237 void setShadow(const FloatSize& offset, double blur, RGBA32 color); 238 void setShadow(const FloatSize& offset, double blur, RGBA32 color);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 319 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
319 bool m_pruneLocalFontCacheScheduled; 320 bool m_pruneLocalFontCacheScheduled;
320 ListHashSet<String> m_fontLRUList; 321 ListHashSet<String> m_fontLRUList;
321 }; 322 };
322 323
323 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 324 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
324 325
325 } // namespace blink 326 } // namespace blink
326 327
327 #endif // CanvasRenderingContext2D_h 328 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698