[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / content / browser / renderer_host / frame_metadata_util.h
blob54b97b8054cbb13220822c44340c385718706f02
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"
10 namespace cc {
11 class CompositorFrameMetadata;
14 namespace content {
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_