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

Unified Diff: content/browser/screen_orientation/screen_orientation_provider.h

Issue 508603003: Export ScreenOrientationProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing export Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/screen_orientation/screen_orientation_provider.h
diff --git a/content/browser/screen_orientation/screen_orientation_provider.h b/content/browser/screen_orientation/screen_orientation_provider.h
deleted file mode 100644
index 8b7c0fbb52a584841441a6d985a0d861bc89b8b8..0000000000000000000000000000000000000000
--- a/content/browser/screen_orientation/screen_orientation_provider.h
+++ /dev/null
@@ -1,57 +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_SCREEN_ORIENTATION_PROVIDER_H_
-#define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_
-
-#include "base/macros.h"
-#include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
-
-namespace content {
-
-class ScreenOrientationDispatcherHost;
-class WebContents;
-
-// Interface that needs to be implemented by any backend that wants to handle
-// screen orientation lock/unlock.
-class ScreenOrientationProvider {
- public:
- // Lock the screen orientation to |orientations|.
- virtual void LockOrientation(
- int request_id,
- blink::WebScreenOrientationLockType orientations) = 0;
-
- // Unlock the screen orientation.
- virtual void UnlockOrientation() = 0;
-
- // Inform about a screen orientation update. It is called to let the provider
- // know if a lock has been resolved.
- virtual void OnOrientationChange() = 0;
-
- virtual ~ScreenOrientationProvider() {}
-
- protected:
- friend class ScreenOrientationDispatcherHost;
-
- static ScreenOrientationProvider* Create(
- ScreenOrientationDispatcherHost* dispatcher_host,
- WebContents* web_contents);
-
- ScreenOrientationProvider() {}
-
- DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider);
-};
-
-#if !defined(OS_ANDROID)
-// static
-ScreenOrientationProvider* ScreenOrientationProvider::Create(
- ScreenOrientationDispatcherHost* dispatcher_host,
- WebContents* web_contents) {
- return NULL;
-}
-#endif // !defined(OS_ANDROID)
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698