OLD | NEW |
(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 #include "content/renderer/screen_orientation/screen_orientation_observer.h" |
| 6 |
| 7 #include "content/common/screen_orientation_messages.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 ScreenOrientationObserver::ScreenOrientationObserver() { |
| 12 } |
| 13 |
| 14 void ScreenOrientationObserver::Start( |
| 15 blink::WebPlatformEventListener* listener) { |
| 16 // This should never be called with a proper listener. |
| 17 CHECK(listener == 0); |
| 18 PlatformEventObserver<blink::WebPlatformEventListener>::Start(0); |
| 19 } |
| 20 |
| 21 void ScreenOrientationObserver::SendStartMessage() { |
| 22 RenderThread::Get()->Send(new ScreenOrientationHostMsg_StartListening()); |
| 23 } |
| 24 |
| 25 void ScreenOrientationObserver::SendStopMessage() { |
| 26 RenderThread::Get()->Send(new ScreenOrientationHostMsg_StopListening()); |
| 27 } |
| 28 |
| 29 } // namespace content |
OLD | NEW |