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

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..fc721c785d531f31e64c8d946abbdb2e6cbce6b6 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() = 0;
Michael van Ouwerkerk 2014/07/17 16:56:24 These being pure virtual makes modifying the inter
abarth-chromium 2014/07/17 18:08:46 They don't have to be pure virtual.
mlamouri (slow - plz ping) 2014/07/17 19:21:39 It seems less pure with regard to design and doesn
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