Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc

Issue 10386080: Rename nacl::RefCounted to nacl::RefCountedThreadSafe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License bump Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_view.h" 5 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_view.h"
6 6
7 #include "native_client/src/include/portability.h" 7 #include "native_client/src/include/portability.h"
8 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 8 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
9 #include "native_client/src/shared/ppapi_proxy/plugin_upcall.h" 9 #include "native_client/src/shared/ppapi_proxy/plugin_upcall.h"
10 #include "native_client/src/shared/ppapi_proxy/utility.h" 10 #include "native_client/src/shared/ppapi_proxy/utility.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 PP_Bool GetClipRect(PP_Resource resource, PP_Rect* clip) { 77 PP_Bool GetClipRect(PP_Resource resource, PP_Rect* clip) {
78 BEGIN_RESOURCE_THUNK("GetClipRect", resource, PP_FALSE); 78 BEGIN_RESOURCE_THUNK("GetClipRect", resource, PP_FALSE);
79 *clip = view.get()->view_data().clip_rect; 79 *clip = view.get()->view_data().clip_rect;
80 return PP_TRUE; 80 return PP_TRUE;
81 } 81 }
82 82
83 } // namespace 83 } // namespace
84 84
85 PluginView::PluginView() { 85 PluginView::PluginView() {}
86 }
87
88 PluginView::~PluginView() {
89 }
90 86
91 void PluginView::Init(const ViewData& view_data) { 87 void PluginView::Init(const ViewData& view_data) {
92 view_data_ = view_data; 88 view_data_ = view_data;
93 } 89 }
94 90
95 const PPB_View* PluginView::GetInterface() { 91 const PPB_View* PluginView::GetInterface() {
96 static const PPB_View view_interface = { 92 static const PPB_View view_interface = {
97 &IsView, 93 &IsView,
98 &GetRect, 94 &GetRect,
99 &IsFullscreen, 95 &IsFullscreen,
100 &IsUserVisible, 96 &IsUserVisible,
101 &IsPageVisible, 97 &IsPageVisible,
102 &GetClipRect 98 &GetClipRect
103 }; 99 };
104 return &view_interface; 100 return &view_interface;
105 } 101 }
106 102
103 PluginView::~PluginView() {}
104
107 } // namespace ppapi_proxy 105 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698