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

Unified Diff: gm/gm.h

Issue 2316593003: Add GM/slide to simulate Android-style reveal clip (Closed)
Patch Set: address code review comments Created 4 years, 3 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
« no previous file with comments | « no previous file | gm/reveal.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gm.h
diff --git a/gm/gm.h b/gm/gm.h
index e00a650f3352b241b6bccc628f9cda6068028a58..ff033a88aa33575a3dabd53da37105fa373dee33 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -100,6 +100,9 @@ namespace skiagm {
}
bool animate(const SkAnimTimer&);
+ bool handleKey(SkUnichar uni) {
+ return this->onHandleKey(uni);
+ }
virtual void modifyGrContextOptions(GrContextOptions* options) {}
@@ -114,6 +117,7 @@ namespace skiagm {
virtual SkString onShortName() = 0;
virtual bool onAnimate(const SkAnimTimer&) { return false; }
+ virtual bool onHandleKey(SkUnichar uni) { return false; }
virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); }
private:
« no previous file with comments | « no previous file | gm/reveal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698