diff options
author | acleung@chromium.org <acleung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-25 04:39:47 +0000 |
---|---|---|
committer | acleung@chromium.org <acleung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-25 04:39:47 +0000 |
commit | 14735fad76aa531a80d601ccc9f213aed051ddcc (patch) | |
tree | 2441668edb985adc615b633d7a923baa8228fb20 /content/browser/screen_orientation | |
parent | 1b248882920e1649839f40df47cdd6b8e512e4b7 (diff) | |
download | chromium_src-14735fad76aa531a80d601ccc9f213aed051ddcc.zip chromium_src-14735fad76aa531a80d601ccc9f213aed051ddcc.tar.gz chromium_src-14735fad76aa531a80d601ccc9f213aed051ddcc.tar.bz2 |
Revert of Chromium plumbing for Screen Orientation API orientationchange events. (https://codereview.chromium.org/164913004/)
Reason for revert:
SEE: https://code.google.com/p/chromium/issues/detail?id=346595
Original issue's description:
> Chromium plumbing for Screen Orientation API orientationchange events.
>
> This is using RenderViewObserver::OrientationChangeEvent and dispatch
> the information down to the renderer. More will come with locking
> and unlocking abilities.
>
> BUG=162827
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253029
TBR=jochen@chromium.org,cdn@chromium.org,mlamouri@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=162827
Review URL: https://codereview.chromium.org/177293003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/screen_orientation')
-rw-r--r-- | content/browser/screen_orientation/screen_orientation_dispatcher_host.cc | 25 | ||||
-rw-r--r-- | content/browser/screen_orientation/screen_orientation_dispatcher_host.h | 31 |
2 files changed, 0 insertions, 56 deletions
diff --git a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc b/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc deleted file mode 100644 index c868beb..0000000 --- a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "content/browser/screen_orientation/screen_orientation_dispatcher_host.h" - -#include "content/common/screen_orientation_messages.h" - -namespace content { - -ScreenOrientationDispatcherHost::ScreenOrientationDispatcherHost() { -} - -bool ScreenOrientationDispatcherHost::OnMessageReceived( - const IPC::Message& message, bool* message_was_ok) { - // TODO(mlamouri): we will handle lock and unlock requests here. - return false; -} - -void ScreenOrientationDispatcherHost::OnOrientationChange( - blink::WebScreenOrientation orientation) { - Send(new ScreenOrientationMsg_OrientationChange(orientation)); -} - -} // namespace content diff --git a/content/browser/screen_orientation/screen_orientation_dispatcher_host.h b/content/browser/screen_orientation/screen_orientation_dispatcher_host.h deleted file mode 100644 index 75620d9..0000000 --- a/content/browser/screen_orientation/screen_orientation_dispatcher_host.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_ -#define CONTENT_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_ - -#include "content/public/browser/browser_message_filter.h" -#include "third_party/WebKit/public/platform/WebScreenOrientation.h" - -namespace content { - -// ScreenOrientationDispatcherHost -class ScreenOrientationDispatcherHost : public BrowserMessageFilter { - public: - ScreenOrientationDispatcherHost(); - - // BrowserMessageFilter - virtual bool OnMessageReceived(const IPC::Message&, bool*) OVERRIDE; - - void OnOrientationChange(blink::WebScreenOrientation orientation); - -private: - virtual ~ScreenOrientationDispatcherHost() {} - - DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDispatcherHost); -}; - -} // namespace content - -#endif // CONTENT_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_ |