Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser-plugin
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marcopg@litl.com>2009-03-16 16:13:53 (GMT)
committer Marco Pesenti Gritti <marcopg@litl.com>2010-07-27 22:04:21 (GMT)
commit09add9b5f67b022a1ad8a84a32a72c20250d349f (patch)
tree49975fc494bcd7212227c7a2c479aae3b7215681 /browser-plugin
parent6d6314028626e0a22c529c9cffacffd34ed7e27e (diff)
Fix several spacing issues
Diffstat (limited to 'browser-plugin')
-rw-r--r--browser-plugin/Makefile.am2
-rw-r--r--browser-plugin/glue.cpp10
-rw-r--r--browser-plugin/plugin.cpp6
-rw-r--r--browser-plugin/plugin.h2
-rw-r--r--browser-plugin/scriptable.cpp5
5 files changed, 12 insertions, 13 deletions
diff --git a/browser-plugin/Makefile.am b/browser-plugin/Makefile.am
index cbf7674..cb0e9f2 100644
--- a/browser-plugin/Makefile.am
+++ b/browser-plugin/Makefile.am
@@ -1,5 +1,5 @@
plugindir = ${libdir}/mozilla/plugins
-plugin_LTLIBRARIES = libevince-plugin.la
+plugin_LTLIBRARIES = libevince-plugin.la
libevince_plugin_la_SOURCES = \
glue.cpp \
diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp
index 795eae8..18713d7 100644
--- a/browser-plugin/glue.cpp
+++ b/browser-plugin/glue.cpp
@@ -185,7 +185,7 @@ NPError NPP_SetValue (NPP instance, NPNVariable variable, void *value)
{
return NPERR_NO_ERROR;
}
-
+
NPError
NPP_New (NPMIMEType mimetype,
NPP instance,
@@ -225,9 +225,9 @@ NPP_GetValue(NPP instance, NPPVariable variable, void *value)
case NPPVpluginNeedsXEmbed:
*(PRBool *)value = PR_TRUE;
break;
- case NPPVpluginScriptableNPObject:
- *(NPObject **)value = plugin->GetScriptableNPObject ();
- break;
+ case NPPVpluginScriptableNPObject:
+ *(NPObject **)value = plugin->GetScriptableNPObject ();
+ break;
default:
err = NPERR_GENERIC_ERROR;
@@ -277,7 +277,7 @@ NPError NPN_PostURL (NPP instance, const char *url, const char *window,
uint32_t len, const char *buf, NPBool file)
{
return NPNFuncs.posturl (instance, url, window, len, buf, file);
-}
+}
NPError NPN_RequestRead (NPStream* stream, NPByteRange* rangeList)
{
diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp
index 3bfe351..2d4cdb2 100644
--- a/browser-plugin/plugin.cpp
+++ b/browser-plugin/plugin.cpp
@@ -106,7 +106,7 @@ Plugin::ClearLoadJob ()
g_signal_handlers_disconnect_by_func (
mLoadJob,
(gpointer)LoadJobFinishedCallback,
- reinterpret_cast<void*>(this));
+ reinterpret_cast<void*>(this));
g_object_unref (mLoadJob);
mLoadJob = NULL;
@@ -130,8 +130,8 @@ Plugin::Load (const char *fname)
g_free (uri);
}
-NPObject *
-Plugin::GetScriptableNPObject ()
+NPObject *
+Plugin::GetScriptableNPObject ()
{
if (!mScriptableObject) {
mScriptableObject = NPN_CreateObject (
diff --git a/browser-plugin/plugin.h b/browser-plugin/plugin.h
index c44e937..a4cd560 100644
--- a/browser-plugin/plugin.h
+++ b/browser-plugin/plugin.h
@@ -38,7 +38,7 @@ class Plugin {
void FindNext (const char *text);
void FindPrevious (const char *text);
void ShowLoadingError ();
- NPObject *GetScriptableNPObject ();
+ NPObject *GetScriptableNPObject ();
private:
void UpdateSizingMode ();
diff --git a/browser-plugin/scriptable.cpp b/browser-plugin/scriptable.cpp
index 9ede075..ff053ef 100644
--- a/browser-plugin/scriptable.cpp
+++ b/browser-plugin/scriptable.cpp
@@ -161,8 +161,7 @@ bool
ScriptablePluginObjectBase::_Construct (NPObject *npobj, const NPVariant *args,
uint32_t argCount, NPVariant *result)
{
- return ((ScriptablePluginObjectBase *)npobj)->Construct (
- args, argCount, result);
+ return ((ScriptablePluginObjectBase *)npobj)->Construct (args, argCount, result);
}
NPObject *
@@ -252,7 +251,7 @@ ScriptablePluginObject::Invoke (NPIdentifier name, const NPVariant *args,
return false;
}
plugin->FindPrevious(NPVARIANT_TO_STRING (args[0]).utf8characters);
- }
+ }
}
bool