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

Side by Side Diff: content/public/browser/screen_orientation_provider_factory.h

Issue 546453004: Centralize ScreenOrientationProvider logic, add platform delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen_orientation_public_impl_split
Patch Set: 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 unified diff | Download patch
OLDNEW
(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 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_
6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 class ScreenOrientationDispatcherHost;
14 class ScreenOrientationProvider;
15 class WebContents;
16
17 // Factory which can be extended in order to provide a platform specific
18 // creation of ScreenOrientationProvider.
19 class CONTENT_EXPORT ScreenOrientationProviderFactory {
20 public:
21 ScreenOrientationProviderFactory() {}
22 virtual ~ScreenOrientationProviderFactory() {}
23
24 // Creates a ScreenOrientationProvider for a ScreenOrientationDispatcherHost
25 // to notify.
26 virtual ScreenOrientationProvider* Create(
mlamouri (slow - plz ping) 2014/09/16 20:21:04 ditto, should that be an own ptr?
27 ScreenOrientationDispatcherHost* dispatcher_host,
28 WebContents* web_contents) = 0;
29
30 private:
31 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderFactory);
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698