OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ |
6 #define PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ppapi/c/pp_rect.h" | 9 #include "ppapi/c/pp_rect.h" |
10 #include "ppapi/c/pp_size.h" | 10 #include "ppapi/c/pp_size.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 PP_Rect rect; | 24 PP_Rect rect; |
25 bool is_fullscreen; | 25 bool is_fullscreen; |
26 bool is_page_visible; | 26 bool is_page_visible; |
27 PP_Rect clip_rect; | 27 PP_Rect clip_rect; |
28 }; | 28 }; |
29 | 29 |
30 class PPAPI_SHARED_EXPORT PPB_View_Shared | 30 class PPAPI_SHARED_EXPORT PPB_View_Shared |
31 : public Resource, | 31 : public Resource, |
32 public thunk::PPB_View_API { | 32 public thunk::PPB_View_API { |
33 public: | 33 public: |
34 struct InitAsImpl {}; | 34 PPB_View_Shared(ResourceObjectType type, |
35 struct InitAsProxy {}; | |
36 | |
37 // The dummy arguments control which version of Resource's constructor is | |
38 // called for this base class. | |
39 PPB_View_Shared(const InitAsImpl&, | |
40 PP_Instance instance, | |
41 const ViewData& data); | |
42 PPB_View_Shared(const InitAsProxy&, | |
43 PP_Instance instance, | 35 PP_Instance instance, |
44 const ViewData& data); | 36 const ViewData& data); |
45 virtual ~PPB_View_Shared(); | 37 virtual ~PPB_View_Shared(); |
46 | 38 |
47 // Resource overrides. | 39 // Resource overrides. |
48 virtual thunk::PPB_View_API* AsPPB_View_API() OVERRIDE; | 40 virtual thunk::PPB_View_API* AsPPB_View_API() OVERRIDE; |
49 | 41 |
50 // PPB_View_API implementation. | 42 // PPB_View_API implementation. |
51 virtual const ViewData& GetData() const OVERRIDE; | 43 virtual const ViewData& GetData() const OVERRIDE; |
52 | 44 |
53 private: | 45 private: |
54 ViewData data_; | 46 ViewData data_; |
55 | 47 |
56 DISALLOW_COPY_AND_ASSIGN(PPB_View_Shared); | 48 DISALLOW_COPY_AND_ASSIGN(PPB_View_Shared); |
57 }; | 49 }; |
58 | 50 |
59 } // namespace ppapi | 51 } // namespace ppapi |
60 | 52 |
61 #endif // PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ | 53 #endif // PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ |
OLD | NEW |