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.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_
8 #include "content/common/content_export.h"
11 class CompositorFrameMetadata
;
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
);
24 } // namespace content
26 #endif // CONTENT_BROWSER_RENDERER_HOST_FRAME_METADATA_UTIL_H_