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