| 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_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/optional.h" | 11 #include "base/optional.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/public/browser/web_contents_binding_set.h" | 13 #include "content/public/browser/web_contents_binding_set.h" |
| 14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
| 15 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" | 15 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" |
| 16 #include "device/screen_orientation/public/interfaces/screen_orientation_lock_ty
pes.mojom.h" | 16 #include "device/screen_orientation/public/interfaces/screen_orientation_lock_ty
pes.mojom.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // OnOrientationChange. | 73 // OnOrientationChange. |
| 74 base::Optional<blink::WebScreenOrientationLockType> pending_lock_orientation_; | 74 base::Optional<blink::WebScreenOrientationLockType> pending_lock_orientation_; |
| 75 | 75 |
| 76 LockOrientationCallback pending_callback_; | 76 LockOrientationCallback pending_callback_; |
| 77 | 77 |
| 78 WebContentsFrameBindingSet<device::mojom::ScreenOrientation> bindings_; | 78 WebContentsFrameBindingSet<device::mojom::ScreenOrientation> bindings_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider); | 80 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace content | 83 } // namespace content |
| 84 | 84 |
| 85 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ | 85 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_PROVIDER_H_ |
| OLD | NEW |