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/browser/screen_orientation/screen_orientation_dispatcher_host.
h" |
| 6 |
| 7 #include "content/common/screen_orientation_messages.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 ScreenOrientationDispatcherHost::ScreenOrientationDispatcherHost() |
| 12 : BrowserMessageFilter(ScreenOrientationMsgStart) { |
| 13 } |
| 14 |
| 15 bool ScreenOrientationDispatcherHost::OnMessageReceived( |
| 16 const IPC::Message& message, bool* message_was_ok) { |
| 17 // TODO(mlamouri): we will handle lock and unlock requests here. |
| 18 return false; |
| 19 } |
| 20 |
| 21 void ScreenOrientationDispatcherHost::OnOrientationChange( |
| 22 blink::WebScreenOrientation orientation) { |
| 23 Send(new ScreenOrientationMsg_OrientationChange(orientation)); |
| 24 } |
| 25 |
| 26 } // namespace content |
OLD | NEW |