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

Unified Diff: public/platform/WebLockOrientationCallback.h

Issue 400703003: Resolve screen.orientation.lock() promise with undefined. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/modules/screen_orientation/LockOrientationCallback.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebLockOrientationCallback.h
diff --git a/public/platform/WebLockOrientationCallback.h b/public/platform/WebLockOrientationCallback.h
index 73cb686635d14591ab6e4a943c90101112e74352..67f362ae774f258da28250078c43895f3e13d01a 100644
--- a/public/platform/WebLockOrientationCallback.h
+++ b/public/platform/WebLockOrientationCallback.h
@@ -19,7 +19,11 @@ class WebLockOrientationCallback {
public:
virtual ~WebLockOrientationCallback() { }
- virtual void onSuccess(unsigned angle, WebScreenOrientationType) = 0;
+ virtual void onSuccess(unsigned angle, WebScreenOrientationType)
+ {
+ onSuccess();
+ }
+ virtual void onSuccess() { }
virtual void onError(WebLockOrientationError) = 0;
};
« no previous file with comments | « Source/modules/screen_orientation/LockOrientationCallback.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698