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

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

Issue 2745443002: [Device Service] Port ScreenOrientationListener into Device Service. (Closed)
Patch Set: Add DEPS Created 3 years, 9 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 #include "content/public/renderer/platform_event_observer.h" 5 #include "content/public/renderer/platform_event_observer.h"
6 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h " 6 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h "
7 7
8 namespace content { 8 namespace content {
9 9
10 // ScreenOrientationObserver is a helper class implementing the 10 // ScreenOrientationObserver is a helper class implementing the
(...skipping 14 matching lines...) Expand all
25 // Overriding this method just to make sure |listener| is always null. 25 // Overriding this method just to make sure |listener| is always null.
26 void Start(blink::WebPlatformEventListener* listener) override; 26 void Start(blink::WebPlatformEventListener* listener) override;
27 27
28 protected: 28 protected:
29 void SendStartMessage() override; 29 void SendStartMessage() override;
30 void SendStopMessage() override; 30 void SendStopMessage() override;
31 31
32 private: 32 private:
33 device::mojom::ScreenOrientationListener* GetScreenOrientationListener(); 33 device::mojom::ScreenOrientationListener* GetScreenOrientationListener();
34 34
35 device::mojom::ScreenOrientationListenerAssociatedPtr listener_; 35 device::mojom::ScreenOrientationListenerPtr listener_;
36 }; 36 };
37 37
38 }; // namespace content 38 }; // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698