| Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h
|
| diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h b/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h
|
| index 412bccc5c3eba71502d9d2dab7a0339a213626f7..73450f63d61dcf0c2c7ea29a9ab7287d9d34606c 100644
|
| --- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h
|
| +++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_instance_data.h
|
| @@ -10,6 +10,7 @@
|
| #include "native_client/src/include/nacl_macros.h"
|
| #include "ppapi/c/pp_instance.h"
|
| #include "ppapi/c/pp_rect.h"
|
| +#include "ppapi/native_client/src/shared/ppapi_proxy/view_data.h"
|
|
|
| namespace ppapi_proxy {
|
|
|
| @@ -19,25 +20,29 @@ class PluginInstanceData {
|
| static PluginInstanceData* FromPP(PP_Instance id);
|
| static void DidCreate(PP_Instance id);
|
| static void DidDestroy(PP_Instance id);
|
| - static void DidChangeView(PP_Instance id, PP_Rect position, PP_Rect clip,
|
| - bool is_fullscreen);
|
| static bool IsFullscreen(PP_Instance id);
|
|
|
| PluginInstanceData(PP_Instance id)
|
| - : id_(id), position_(PP_MakeRectFromXYWH(0, 0, 0, 0)) {
|
| + : id_(id),
|
| + sent_view_changed_(false) {
|
| }
|
| ~PluginInstanceData() {}
|
|
|
| PP_Instance id() { return id_; }
|
| - PP_Rect position() { return position_; }
|
| - bool is_fullscreen() { return is_fullscreen_; }
|
| +
|
| + void set_sent_view_changed() { sent_view_changed_ = true; }
|
| + bool sent_view_changed() const { return sent_view_changed_; }
|
| +
|
| + void set_last_view_data(const ViewData& data) { last_view_data_ = data; }
|
| + const ViewData& last_view_data() const { return last_view_data_; }
|
|
|
| private:
|
| NACL_DISALLOW_COPY_AND_ASSIGN(PluginInstanceData);
|
|
|
| PP_Instance id_;
|
| - PP_Rect position_;
|
| - bool is_fullscreen_;
|
| + bool sent_view_changed_;
|
| +
|
| + ViewData last_view_data_;
|
| };
|
|
|
| } // namespace ppapi_proxy
|
|
|