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

Unified Diff: content/public/browser/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
« no previous file with comments | « content/public/browser/screen_orientation_dispatcher_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/screen_orientation_provider.h
diff --git a/content/browser/screen_orientation/screen_orientation_provider.h b/content/public/browser/screen_orientation_provider.h
similarity index 81%
rename from content/browser/screen_orientation/screen_orientation_provider.h
rename to content/public/browser/screen_orientation_provider.h
index 8b7c0fbb52a584841441a6d985a0d861bc89b8b8..c94fbe7239219326d1810b7cc4bc8d095bfd1fda 100644
--- a/content/browser/screen_orientation/screen_orientation_provider.h
+++ b/content/public/browser/screen_orientation_provider.h
@@ -2,10 +2,11 @@
// 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_
+#ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
+#define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
#include "base/macros.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
namespace content {
@@ -15,7 +16,7 @@ class WebContents;
// Interface that needs to be implemented by any backend that wants to handle
// screen orientation lock/unlock.
-class ScreenOrientationProvider {
+class CONTENT_EXPORT ScreenOrientationProvider {
public:
// Lock the screen orientation to |orientations|.
virtual void LockOrientation(
@@ -32,7 +33,7 @@ class ScreenOrientationProvider {
virtual ~ScreenOrientationProvider() {}
protected:
- friend class ScreenOrientationDispatcherHost;
+ friend class ScreenOrientationDispatcherHostImpl;
static ScreenOrientationProvider* Create(
ScreenOrientationDispatcherHost* dispatcher_host,
@@ -54,4 +55,4 @@ ScreenOrientationProvider* ScreenOrientationProvider::Create(
} // namespace content
-#endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_
+#endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
« no previous file with comments | « content/public/browser/screen_orientation_dispatcher_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698