-
公开(公告)号:US20140281901A1
公开(公告)日:2014-09-18
申请号:US13852568
申请日:2013-03-28
Applicant: Google Inc.
Inventor: Walter A. Mostowy , Peng Zhang , Jeffrey E. Shaw
IPC: G06F17/22
CPC classification number: G06F16/9577 , G06F16/958
Abstract: Methods, systems, and apparatus include computer programs encoded on a computer-readable storage medium, including a method for determining content visibility when a content item is included in a cross-domain iframe. The method includes determining a first estimate of a size of a webpage viewing area of a viewport associated with a browser including reading an outer bound for a size of the viewport. The method further includes determining a second estimate for a size of a content item for display in the webpage viewing area, including reading iframe inside measurements for the iframe from a browser. The method further includes determining content item visibility including determining a location of the content item relative to the webpage viewing area by reading a location of the viewport and the iframe in screen coordinates. The method further includes reporting the visibility.
Abstract translation: 方法,系统和装置包括在计算机可读存储介质上编码的计算机程序,包括当内容项被包括在跨域iframe中时用于确定内容可见性的方法。 该方法包括确定与浏览器相关联的视口的网页查看区域的大小的第一估计,包括读取视口的大小的外边界。 该方法还包括确定用于在网页查看区域中显示的内容项目的大小的第二估计,包括从浏览器读取iframe的测量值内的iframe。 该方法还包括确定内容项目的可见性,包括通过在屏幕坐标中读取视口和iframe的位置来确定内容项目相对于网页观看区域的位置。 该方法还包括报告可见性。