Page Speed Optimization Libraries  1.9.32.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
net_instaweb::MobileRole Struct Reference

A mobile role and its associated HTML attribute value. More...

#include "mobilize_rewrite_filter.h"

Public Types

enum  Level {
  kKeeper = 0, kHeader, kNavigational, kContent,
  kMarginal, kInvalid
}
 

Public Member Functions

 MobileRole (Level level, const char *value)
 

Static Public Member Functions

static const MobileRoleFromString (const StringPiece &mobile_role)
 
static Level LevelFromString (const StringPiece &mobile_role)
 
static const char * StringFromLevel (Level level)
 

Public Attributes

const Level level
 
const char *const value
 Set to a static string in cc.
 

Static Public Attributes

static const MobileRole kMobileRoles [kInvalid]
 

Detailed Description

A mobile role and its associated HTML attribute value.

Member Enumeration Documentation

Enumerator
kKeeper 

Tags which aren't explicitly tagged with a data-mobile-role attribute, but we want to keep anyway, such as <style> or <script> tags in the body.

kHeader 

The page header, such as.

or logos.

kNavigational 

Nav sections of the page. The HTML of nav blocks will be completely rewritten to be mobile friendly by deleting unwanted elements in the block.

kContent 

Main content of the page.

kMarginal 

Any block that isn't one of the above. Marginal content is put at the end and remains pretty much untouched with respect to modifying HTML or styling.

kInvalid 

Elements without a data-mobile-role attribute, or with an unknown attribute value, will be kInvalid.


The documentation for this struct was generated from the following file: