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

Side by Side Diff: content/public/browser/screen_orientation_dispatcher_host.h

Issue 1151373005: Update Blink's screen orientation path in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix one include Created 5 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
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 CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/platform/WebLockOrientationError.h" 9 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockO rientationError.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // ScreenOrientationDispatcherHost receives lock and unlock requests from the 13 // ScreenOrientationDispatcherHost receives lock and unlock requests from the
14 // RenderFrames and dispatch them to the ScreenOrientationProvider. It also 14 // RenderFrames and dispatch them to the ScreenOrientationProvider. It also
15 // make sure that the right RenderFrame get replied for each lock request. 15 // make sure that the right RenderFrame get replied for each lock request.
16 class CONTENT_EXPORT ScreenOrientationDispatcherHost { 16 class CONTENT_EXPORT ScreenOrientationDispatcherHost {
17 public: 17 public:
18 virtual ~ScreenOrientationDispatcherHost() {} 18 virtual ~ScreenOrientationDispatcherHost() {}
19 19
20 // Notifies that the lock with the given |request_id| has succeeded. 20 // Notifies that the lock with the given |request_id| has succeeded.
21 // The renderer process will be notified that the lock succeeded only if 21 // The renderer process will be notified that the lock succeeded only if
22 // |request_id| matches the current lock information. 22 // |request_id| matches the current lock information.
23 virtual void NotifyLockSuccess(int request_id) = 0; 23 virtual void NotifyLockSuccess(int request_id) = 0;
24 24
25 // Notifies that the lock with the given |request_id| has failed. 25 // Notifies that the lock with the given |request_id| has failed.
26 // The renderer process will be notified that the lock succeeded only if 26 // The renderer process will be notified that the lock succeeded only if
27 // |request_id| matches the current lock information. 27 // |request_id| matches the current lock information.
28 virtual void NotifyLockError(int request_id, 28 virtual void NotifyLockError(int request_id,
29 blink::WebLockOrientationError error) = 0; 29 blink::WebLockOrientationError error) = 0;
30 30
31 virtual void OnOrientationChange() = 0; 31 virtual void OnOrientationChange() = 0;
32 }; 32 };
33 33
34 } // namespace content 34 } // namespace content
35 35
36 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_ 36 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/screen_orientation_delegate.h ('k') | content/public/browser/screen_orientation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698