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

Unified Diff: Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
Index: Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
diff --git a/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp b/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
index 8c80d55a5cfed861aad3e983923e2002bdb61423..8638c78ae43798a679a4be5baf6866b8fbf959b5 100644
--- a/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
+++ b/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/SlowNPPNew.cpp
@@ -35,7 +35,7 @@ public:
: PluginTest(npp, identifier)
{
}
-
+
private:
class PluginObject : public Object<PluginObject> {
public:
@@ -56,24 +56,24 @@ private:
{
static const char* message = "My name is ";
char* propertyString = pluginTest()->NPN_UTF8FromIdentifier(propertyName);
-
+
int bufferLength = strlen(propertyString) + strlen(message) + 1;
char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
-
+
STRINGZ_TO_NPVARIANT(resultBuffer, *result);
return true;
}
};
-
+
virtual NPError NPP_GetValue(NPPVariable variable, void *value)
{
if (variable != NPPVpluginScriptableNPObject)
return NPERR_GENERIC_ERROR;
-
+
*(NPObject**)value = PluginObject::create(this);
-
+
return NPERR_NO_ERROR;
}

Powered by Google App Engine
This is Rietveld 408576698