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

Unified Diff: ppapi/thunk/ppb_widget_dev_thunk.cc

Issue 1161563002: Remove unused in-process pepper APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_widget_api.h ('k') | ppapi/thunk/ppb_zoom_dev_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_widget_dev_thunk.cc
diff --git a/ppapi/thunk/ppb_widget_dev_thunk.cc b/ppapi/thunk/ppb_widget_dev_thunk.cc
deleted file mode 100644
index 4ea0d478c854dc72688a469c4cb79ca777cf2165..0000000000000000000000000000000000000000
--- a/ppapi/thunk/ppb_widget_dev_thunk.cc
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// From dev/ppb_widget_dev.idl modified Mon May 6 10:11:29 2013.
-
-#include "ppapi/c/dev/ppb_widget_dev.h"
-#include "ppapi/c/pp_errors.h"
-#include "ppapi/shared_impl/tracked_callback.h"
-#include "ppapi/thunk/enter.h"
-#include "ppapi/thunk/ppapi_thunk_export.h"
-#include "ppapi/thunk/ppb_widget_api.h"
-
-namespace ppapi {
-namespace thunk {
-
-namespace {
-
-PP_Bool IsWidget(PP_Resource resource) {
- VLOG(4) << "PPB_Widget_Dev::IsWidget()";
- EnterResource<PPB_Widget_API> enter(resource, false);
- return PP_FromBool(enter.succeeded());
-}
-
-PP_Bool Paint(PP_Resource widget,
- const struct PP_Rect* rect,
- PP_Resource image) {
- VLOG(4) << "PPB_Widget_Dev::Paint()";
- EnterResource<PPB_Widget_API> enter(widget, false);
- if (enter.failed())
- return PP_FALSE;
- return enter.object()->Paint(rect, image);
-}
-
-PP_Bool HandleEvent(PP_Resource widget, PP_Resource input_event) {
- VLOG(4) << "PPB_Widget_Dev::HandleEvent()";
- EnterResource<PPB_Widget_API> enter(widget, false);
- if (enter.failed())
- return PP_FALSE;
- return enter.object()->HandleEvent(input_event);
-}
-
-PP_Bool GetLocation(PP_Resource widget, struct PP_Rect* location) {
- VLOG(4) << "PPB_Widget_Dev::GetLocation()";
- EnterResource<PPB_Widget_API> enter(widget, false);
- if (enter.failed())
- return PP_FALSE;
- return enter.object()->GetLocation(location);
-}
-
-void SetLocation(PP_Resource widget, const struct PP_Rect* location) {
- VLOG(4) << "PPB_Widget_Dev::SetLocation()";
- EnterResource<PPB_Widget_API> enter(widget, false);
- if (enter.failed())
- return;
- enter.object()->SetLocation(location);
-}
-
-void SetScale(PP_Resource widget, float scale) {
- VLOG(4) << "PPB_Widget_Dev::SetScale()";
- EnterResource<PPB_Widget_API> enter(widget, false);
- if (enter.failed())
- return;
- enter.object()->SetScale(scale);
-}
-
-const PPB_Widget_Dev_0_3 g_ppb_widget_dev_thunk_0_3 = {&IsWidget,
- &Paint,
- &HandleEvent,
- &GetLocation,
- &SetLocation};
-
-const PPB_Widget_Dev_0_4 g_ppb_widget_dev_thunk_0_4 =
- {&IsWidget, &Paint, &HandleEvent, &GetLocation, &SetLocation, &SetScale};
-
-} // namespace
-
-PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() {
- return &g_ppb_widget_dev_thunk_0_3;
-}
-
-PPAPI_THUNK_EXPORT const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() {
- return &g_ppb_widget_dev_thunk_0_4;
-}
-
-} // namespace thunk
-} // namespace ppapi
« no previous file with comments | « ppapi/thunk/ppb_widget_api.h ('k') | ppapi/thunk/ppb_zoom_dev_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698