Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / screen_orientation / LockOrientationCallback.h
index df43a17..8947f79 100644 (file)
 #include "wtf/PassRefPtr.h"
 #include "wtf/RefPtr.h"
 
-namespace WebCore {
+namespace blink {
 
-class ScriptPromiseResolverWithContext;
+class ScriptPromiseResolver;
 
 // LockOrientationCallback is an implementation of WebLockOrientationCallback
 // that will resolve the underlying promise depending on the result passed to
 // the callback.
-class LockOrientationCallback FINAL : public blink::WebLockOrientationCallback {
+class LockOrientationCallback FINAL : public WebLockOrientationCallback {
     WTF_MAKE_NONCOPYABLE(LockOrientationCallback);
 public:
-    explicit LockOrientationCallback(PassRefPtr<ScriptPromiseResolverWithContext>);
+    explicit LockOrientationCallback(PassRefPtr<ScriptPromiseResolver>);
     virtual ~LockOrientationCallback();
 
-    virtual void onSuccess(unsigned angle, blink::WebScreenOrientationType) OVERRIDE;
-    virtual void onError(ErrorType) OVERRIDE;
-    virtual void onError(blink::WebLockOrientationError) OVERRIDE;
+    virtual void onSuccess() OVERRIDE;
+    virtual void onError(WebLockOrientationError) OVERRIDE;
 
 private:
-    RefPtr<ScriptPromiseResolverWithContext> m_resolver;
+    RefPtr<ScriptPromiseResolver> m_resolver;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // LockOrientationCallback_h