| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_RENDERER_HOST_FRAME_METADATA_UTIL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 class CompositorFrameMetadata; | 11 class CompositorFrameMetadata; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // Decides whether frame metadata corresponds to mobile-optimized content. | 16 // Decides whether frame metadata corresponds to mobile-optimized content. |
| 17 // By default returns |false|, except for the following cases: | 17 // By default returns |false|, except for the following cases: |
| 18 // - page that has a width=device-width or narrower viewport | 18 // - page that has a width=device-width or narrower viewport |
| 19 // (indicating that this is a mobile-optimized or responsive web design); | 19 // (indicating that this is a mobile-optimized or responsive web design); |
| 20 // - page that prevents zooming in or out. | 20 // - page that prevents zooming in or out. |
| 21 CONTENT_EXPORT bool IsMobileOptimizedFrame( | 21 CONTENT_EXPORT bool IsMobileOptimizedFrame( |
| 22 const cc::CompositorFrameMetadata& frame_metadata); | 22 const cc::CompositorFrameMetadata& frame_metadata, |
| 23 bool force_enable_zoom); |
| 23 | 24 |
| 24 } // namespace content | 25 } // namespace content |
| 25 | 26 |
| 26 #endif // CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_ | 27 #endif // CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_ |
| OLD | NEW |