Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
view.h
Go to the documentation of this file.
1 // Copyright (c) 2012 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 PPAPI_CPP_VIEW_H_
6 #define PPAPI_CPP_VIEW_H_
7 
8 #include "ppapi/cpp/resource.h"
9 #include "ppapi/cpp/rect.h"
10 #include "ppapi/cpp/size.h"
11 
15 
16 namespace pp {
17 
20 class View : public Resource {
21  public:
23  View();
24 
27  explicit View(PP_Resource view_resource);
28 
44  Rect GetRect() const;
45 
51  bool IsFullscreen() const;
52 
67  bool IsVisible() const;
68 
82  bool IsPageVisible() const;
83 
120  Rect GetClipRect() const;
121 
132  float GetDeviceScale() const;
133 
140  float GetCSSScale() const;
141 
147  Point GetScrollOffset() const;
148 };
149 
150 } // namespace pp
151 
152 #endif // PPAPI_CPP_VIEW_H_
float GetDeviceScale() const
A 2 dimensional point with 0,0 being the upper-left starting coordinate.
Definition: point.h:18
Definition: rect.h:21
bool IsFullscreen() const
bool IsPageVisible() const
Definition: view.h:20
Rect GetClipRect() const
bool IsVisible() const
float GetCSSScale() const
A reference counted module resource.
Definition: resource.h:20
View()
Default constructor for creating an is_null() View object.
Rect GetRect() const
Point GetScrollOffset() const