| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // From ppb_view.idl modified Wed Apr 10 14:15:15 2013. | 5 // From ppb_view.idl modified Tue Aug 20 08:13:36 2013. |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/ppb_view.h" | 8 #include "ppapi/c/ppb_view.h" |
| 9 #include "ppapi/shared_impl/tracked_callback.h" | 9 #include "ppapi/shared_impl/tracked_callback.h" |
| 10 #include "ppapi/thunk/enter.h" | 10 #include "ppapi/thunk/enter.h" |
| 11 #include "ppapi/thunk/ppb_instance_api.h" | 11 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 12 #include "ppapi/thunk/ppb_view_api.h" | 12 #include "ppapi/thunk/ppb_view_api.h" |
| 13 #include "ppapi/thunk/resource_creation_api.h" | |
| 14 #include "ppapi/thunk/thunk.h" | |
| 15 | 13 |
| 16 namespace ppapi { | 14 namespace ppapi { |
| 17 namespace thunk { | 15 namespace thunk { |
| 18 | 16 |
| 19 namespace { | 17 namespace { |
| 20 | 18 |
| 21 PP_Bool IsView(PP_Resource resource) { | 19 PP_Bool IsView(PP_Resource resource) { |
| 22 VLOG(4) << "PPB_View::IsView()"; | 20 VLOG(4) << "PPB_View::IsView()"; |
| 23 EnterResource<PPB_View_API> enter(resource, false); | 21 EnterResource<PPB_View_API> enter(resource, false); |
| 24 return PP_FromBool(enter.succeeded()); | 22 return PP_FromBool(enter.succeeded()); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 &IsFullscreen, | 93 &IsFullscreen, |
| 96 &IsVisible, | 94 &IsVisible, |
| 97 &IsPageVisible, | 95 &IsPageVisible, |
| 98 &GetClipRect, | 96 &GetClipRect, |
| 99 &GetDeviceScale, | 97 &GetDeviceScale, |
| 100 &GetCSSScale | 98 &GetCSSScale |
| 101 }; | 99 }; |
| 102 | 100 |
| 103 } // namespace | 101 } // namespace |
| 104 | 102 |
| 105 const PPB_View_1_0* GetPPB_View_1_0_Thunk() { | 103 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() { |
| 106 return &g_ppb_view_thunk_1_0; | 104 return &g_ppb_view_thunk_1_0; |
| 107 } | 105 } |
| 108 | 106 |
| 109 const PPB_View_1_1* GetPPB_View_1_1_Thunk() { | 107 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() { |
| 110 return &g_ppb_view_thunk_1_1; | 108 return &g_ppb_view_thunk_1_1; |
| 111 } | 109 } |
| 112 | 110 |
| 113 } // namespace thunk | 111 } // namespace thunk |
| 114 } // namespace ppapi | 112 } // namespace ppapi |
| OLD | NEW |