Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2096)

Side by Side Diff: content/browser/renderer_host/frame_metadata_util.h

Issue 859973003: Touch emulator: enables double tap support for pages similar to Chrome on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: frame_metadata_util Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/frame_metadata_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/frame_metadata_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698