| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H
_ | 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H
_ |
| 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H
_ | 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID_H
_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "content/browser/screen_orientation/screen_orientation_provider.h" | 11 #include "content/public/browser/screen_orientation_provider.h" |
| 12 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class ScreenOrientationDispatcherHost; |
| 16 class WebContentsImpl; | 17 class WebContentsImpl; |
| 17 | 18 |
| 18 class ScreenOrientationProviderAndroid : public ScreenOrientationProvider, | 19 class ScreenOrientationProviderAndroid : public ScreenOrientationProvider, |
| 19 public WebContentsObserver { | 20 public WebContentsObserver { |
| 20 public: | 21 public: |
| 21 explicit ScreenOrientationProviderAndroid( | 22 explicit ScreenOrientationProviderAndroid( |
| 22 ScreenOrientationDispatcherHost* dispatcher, | 23 ScreenOrientationDispatcherHost* dispatcher, |
| 23 WebContents* web_contents); | 24 WebContents* web_contents); |
| 24 | 25 |
| 25 static bool Register(JNIEnv* env); | 26 static bool Register(JNIEnv* env); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 blink::WebScreenOrientationLockType lock; | 71 blink::WebScreenOrientationLockType lock; |
| 71 }; | 72 }; |
| 72 LockInformation* pending_lock_; | 73 LockInformation* pending_lock_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderAndroid); | 75 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProviderAndroid); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| 78 | 79 |
| 79 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID
_H_ | 80 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_ANDROID
_H_ |
| OLD | NEW |