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

Side by Side Diff: content/renderer/screen_orientation_dispatcher.h

Issue 150153004: [WIP] Add Chromium-side support for the Screen Orientation API (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_SCREEN_ORIENTATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_SCREEN_ORIENTATION_DISPATCHER_H_
7
8 #include "base/macros.h"
9 #include "content/public/renderer/render_view_observer.h"
10 #include "third_party/WebKit/public/web/WebScreenOrientation.h"
11 #include "third_party/WebKit/public/web/WebScreenOrientationClient.h"
12
13 namespace blink { class WebScreenOrientationController; }
14
15 namespace content {
16
17 class RenderViewImpl;
18
19 class ScreenOrientationDispatcher : public RenderViewObserver,
20 public blink::WebScreenOrientationClient {
21 public:
22 ScreenOrientationDispatcher(RenderViewImpl*);
23 private:
24 // RenderViewObserver
25 virtual void OrientationChangeEvent(int orientation) OVERRIDE;
26
27 // blink::WebScreenOrientationClient
28 virtual bool lockOrientation(blink::WebScreenOrientations) OVERRIDE;
29 virtual void unlockOrientation() OVERRIDE;
30 virtual void setController(blink::WebScreenOrientationController*) OVERRIDE;
31
32
33 blink::WebScreenOrientationController* controller_;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_RENDERER_SCREEN_ORIENTATION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698