| 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 Tue Aug 20 08:13:36 2013. | 5 // From ppb_view.idl modified Mon May 6 10:11:29 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/ppapi_thunk_export.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 | 13 |
| 14 namespace ppapi { | 14 namespace ppapi { |
| 15 namespace thunk { | 15 namespace thunk { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 | 72 |
| 73 float GetCSSScale(PP_Resource resource) { | 73 float GetCSSScale(PP_Resource resource) { |
| 74 VLOG(4) << "PPB_View::GetCSSScale()"; | 74 VLOG(4) << "PPB_View::GetCSSScale()"; |
| 75 EnterResource<PPB_View_API> enter(resource, true); | 75 EnterResource<PPB_View_API> enter(resource, true); |
| 76 if (enter.failed()) | 76 if (enter.failed()) |
| 77 return 0.0f; | 77 return 0.0f; |
| 78 return enter.object()->GetCSSScale(); | 78 return enter.object()->GetCSSScale(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 const PPB_View_1_0 g_ppb_view_thunk_1_0 = { | 81 const PPB_View_1_0 g_ppb_view_thunk_1_0 = { // |
| 82 &IsView, | 82 &IsView, // |
| 83 &GetRect, | 83 &GetRect, // |
| 84 &IsFullscreen, | 84 &IsFullscreen, // |
| 85 &IsVisible, | 85 &IsVisible, // |
| 86 &IsPageVisible, | 86 &IsPageVisible, // |
| 87 &GetClipRect | 87 &GetClipRect // |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 const PPB_View_1_1 g_ppb_view_thunk_1_1 = { | 90 const PPB_View_1_1 g_ppb_view_thunk_1_1 = { // |
| 91 &IsView, | 91 &IsView, // |
| 92 &GetRect, | 92 &GetRect, // |
| 93 &IsFullscreen, | 93 &IsFullscreen, // |
| 94 &IsVisible, | 94 &IsVisible, // |
| 95 &IsPageVisible, | 95 &IsPageVisible, // |
| 96 &GetClipRect, | 96 &GetClipRect, // |
| 97 &GetDeviceScale, | 97 &GetDeviceScale, // |
| 98 &GetCSSScale | 98 &GetCSSScale // |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace | 101 } // namespace |
| 102 | 102 |
| 103 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() { | 103 PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() { |
| 104 return &g_ppb_view_thunk_1_0; | 104 return &g_ppb_view_thunk_1_0; |
| 105 } | 105 } |
| 106 | 106 |
| 107 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() { | 107 PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() { |
| 108 return &g_ppb_view_thunk_1_1; | 108 return &g_ppb_view_thunk_1_1; |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace thunk | 111 } // namespace thunk |
| 112 } // namespace ppapi | 112 } // namespace ppapi |
| OLD | NEW |