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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 705003002: Change the return type of WTF::bind() to |OwnPtr<Function>| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments from yhirano Created 6 years, 1 month 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
« no previous file with comments | « Source/core/dom/Microtask.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool useMaxWidth = false); 337 void drawTextInternal(const String& text, float x, float y, bool fill, float maxWidth = 0, bool useMaxWidth = false);
338 338
339 const Font& accessFont(); 339 const Font& accessFont();
340 int getFontBaseline(const FontMetrics&) const; 340 int getFontBaseline(const FontMetrics&) const;
341 341
342 void clearCanvas(); 342 void clearCanvas();
343 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; 343 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const;
344 344
345 void inflateStrokeRect(FloatRect&) const; 345 void inflateStrokeRect(FloatRect&) const;
346 346
347 void fullCanvasCompositedDraw(const Closure& draw); 347 void fullCanvasCompositedDraw(PassOwnPtr<Closure> draw);
348 348
349 void drawFocusIfNeededInternal(const Path&, Element*); 349 void drawFocusIfNeededInternal(const Path&, Element*);
350 bool focusRingCallIsValid(const Path&, Element*); 350 bool focusRingCallIsValid(const Path&, Element*);
351 void drawFocusRing(const Path&); 351 void drawFocusRing(const Path&);
352 352
353 bool hasClip() { return state().m_hasClip; } 353 bool hasClip() { return state().m_hasClip; }
354 354
355 void validateStateStack(); 355 void validateStateStack();
356 356
357 virtual bool is2d() const override { return true; } 357 virtual bool is2d() const override { return true; }
(...skipping 20 matching lines...) Expand all
378 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 378 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
379 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 379 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
380 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 380 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
381 }; 381 };
382 382
383 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 383 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
384 384
385 } // namespace blink 385 } // namespace blink
386 386
387 #endif // CanvasRenderingContext2D_h 387 #endif // CanvasRenderingContext2D_h
OLDNEW
« no previous file with comments | « Source/core/dom/Microtask.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698