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

Side by Side Diff: Source/modules/screen_orientation/LockOrientationCallback.h

Issue 346543003: Remove WebLockOrientationCallback::ErrorType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_up_callback_errors
Patch Set: Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/screen_orientation/LockOrientationCallback.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LockOrientationCallback_h 5 #ifndef LockOrientationCallback_h
6 #define LockOrientationCallback_h 6 #define LockOrientationCallback_h
7 7
8 #include "public/platform/WebLockOrientationCallback.h" 8 #include "public/platform/WebLockOrientationCallback.h"
9 #include "public/platform/WebScreenOrientationType.h" 9 #include "public/platform/WebScreenOrientationType.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 #include "wtf/PassRefPtr.h" 11 #include "wtf/PassRefPtr.h"
12 #include "wtf/RefPtr.h" 12 #include "wtf/RefPtr.h"
13 13
14 namespace WebCore { 14 namespace WebCore {
15 15
16 class ScriptPromiseResolverWithContext; 16 class ScriptPromiseResolverWithContext;
17 17
18 // LockOrientationCallback is an implementation of WebLockOrientationCallback 18 // LockOrientationCallback is an implementation of WebLockOrientationCallback
19 // that will resolve the underlying promise depending on the result passed to 19 // that will resolve the underlying promise depending on the result passed to
20 // the callback. 20 // the callback.
21 class LockOrientationCallback FINAL : public blink::WebLockOrientationCallback { 21 class LockOrientationCallback FINAL : public blink::WebLockOrientationCallback {
22 WTF_MAKE_NONCOPYABLE(LockOrientationCallback); 22 WTF_MAKE_NONCOPYABLE(LockOrientationCallback);
23 public: 23 public:
24 explicit LockOrientationCallback(PassRefPtr<ScriptPromiseResolverWithContext >); 24 explicit LockOrientationCallback(PassRefPtr<ScriptPromiseResolverWithContext >);
25 virtual ~LockOrientationCallback(); 25 virtual ~LockOrientationCallback();
26 26
27 virtual void onSuccess(unsigned angle, blink::WebScreenOrientationType) OVER RIDE; 27 virtual void onSuccess(unsigned angle, blink::WebScreenOrientationType) OVER RIDE;
28 virtual void onError(ErrorType) OVERRIDE;
29 virtual void onError(blink::WebLockOrientationError) OVERRIDE; 28 virtual void onError(blink::WebLockOrientationError) OVERRIDE;
30 29
31 private: 30 private:
32 RefPtr<ScriptPromiseResolverWithContext> m_resolver; 31 RefPtr<ScriptPromiseResolverWithContext> m_resolver;
33 }; 32 };
34 33
35 } // namespace WebCore 34 } // namespace WebCore
36 35
37 #endif // LockOrientationCallback_h 36 #endif // LockOrientationCallback_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/screen_orientation/LockOrientationCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698