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

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

Issue 164913004: Chromium plumbing for Screen Orientation API orientationchange events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated 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_process_observer.h"
10
11 namespace blink {
12 class WebScreenOrientationListener;
13 }
14
15 namespace content {
16
17 class RenderThread;
18
19 // ScreenOrientationDispatcher listens to message from the browser process and
20 // dispatch the orientation change ones to the WebScreenOrientationListener.
21 class ScreenOrientationDispatcher : public RenderProcessObserver {
22 public:
23 ScreenOrientationDispatcher(RenderThread*);
jochen (gone - plz use gerrit) 2014/02/20 16:11:04 explicit. also, needs virtual dtor
mlamouri (slow - plz ping) 2014/02/20 16:32:47 Done.
24
25 // RenderProcessObserver
26 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
27
28 void setListener(blink::WebScreenOrientationListener*);
29
30 private:
31 void OnOrientationChange(int orientation);
32
33 blink::WebScreenOrientationListener* listener_;
34 };
jochen (gone - plz use gerrit) 2014/02/20 16:11:04 disallow copy/assign
mlamouri (slow - plz ping) 2014/02/20 16:32:47 Done.
35
36 } // namespace content
37
38 #endif // CONTENT_RENDERER_SCREEN_ORIENTATION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698