2007-11-22 Alp Toker <alp@atoker.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2007 02:53:18 +0000 (02:53 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2007 02:53:18 +0000 (02:53 +0000)
        Whitespace fixes only.

        * Api/webkitgtkframe.cpp:
        * Api/webkitgtkpage.cpp:
        * Api/webkitgtkpage.h:
        * Api/webkitgtkprivate.h:
        * WebCoreSupport/ChromeClientGtk.cpp:
        * WebCoreSupport/ContextMenuClientGtk.cpp:
        * WebCoreSupport/ContextMenuClientGtk.h:
        * WebCoreSupport/DragClientGtk.h:
        * WebCoreSupport/EditorClientGtk.h:
        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchWillSendRequest):
        (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
        (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
        (WebKit::FrameLoaderClient::createFrame):
        (WebKit::FrameLoaderClient::createJavaAppletWidget):
        (WebKit::FrameLoaderClient::registerForIconNotification):
        (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
        (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
        (WebKit::FrameLoaderClient::frameLoadCompleted):
        (WebKit::FrameLoaderClient::saveViewStateToItem):
        (WebKit::FrameLoaderClient::restoreViewState):
        (WebKit::FrameLoaderClient::shouldGoToHistoryItem):
        (WebKit::FrameLoaderClient::setTitle):
        * WebCoreSupport/FrameLoaderClientGtk.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27977 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 files changed:
WebKit/gtk/Api/webkitgtkframe.cpp
WebKit/gtk/Api/webkitgtkpage.cpp
WebKit/gtk/Api/webkitgtkpage.h
WebKit/gtk/Api/webkitgtkprivate.h
WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h
WebKit/gtk/WebCoreSupport/DragClientGtk.h
WebKit/gtk/WebCoreSupport/EditorClientGtk.h
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h

index ba3ab7f680206e088a1f21537df81db9c10602a2..bd5fc677d5d77a2dafdcaeb39f0e388997a00c6b 100644 (file)
@@ -41,11 +41,11 @@ using namespace WebCore;
 extern "C" {
 
 extern void webkit_marshal_VOID__STRING_STRING (GClosure*     closure,
-                                                    GValue*       return_value,
-                                                    guint         n_param_values,
-                                                    const GValue* param_values,
-                                                    gpointer      invocation_hint,
-                                                    gpointer      marshal_data);
+                                                GValue*       return_value,
+                                                guint         n_param_values,
+                                                const GValue* param_values,
+                                                gpointer      invocation_hint,
+                                                gpointer      marshal_data);
 
 enum {
     CLEARED,
@@ -178,7 +178,7 @@ GObject* webkit_frame_init_with_page(WebKitPage* page, HTMLFrameOwnerElement* el
     frameData->page = page;
 
     return G_OBJECT(frame);
-} 
+}
 
 WebKitPage*
 webkit_frame_get_page(WebKitFrame* frame)
index 94add0b2a273f6bdf0f17b16c8c836f3d16a5e42..844c521f901b9fdeccf6e6d19467ac6edfb653b3 100644 (file)
@@ -384,7 +384,7 @@ static void webkit_page_class_init(WebKitPageClass* pageClass)
             g_cclosure_marshal_VOID__INT,
             G_TYPE_NONE, 1,
             G_TYPE_INT);
-    
+
     webkit_page_signals[LOAD_FINISHED] = g_signal_new("load_finished",
             G_TYPE_FROM_CLASS(pageClass),
             (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
@@ -656,9 +656,9 @@ void webkit_page_load_string(WebKitPage* page, const gchar* content, const gchar
 {
     WebKitPagePrivate* pageData = WEBKIT_PAGE_GET_PRIVATE(page);
     WebKitFramePrivate* frameData = WEBKIT_FRAME_GET_PRIVATE(pageData->mainFrame);
-    
+
     KURL url(DeprecatedString::fromUtf8(baseUrl));
-    RefPtr<SharedBuffer> sharedBuffer = new SharedBuffer(strdup(content), strlen(content));    
+    RefPtr<SharedBuffer> sharedBuffer = new SharedBuffer(strdup(content), strlen(content));
     SubstituteData substituteData(sharedBuffer.release(), String(contentMimeType), String(contentEncoding), KURL("about:blank"), url);
 
     frameData->frame->loader()->load(ResourceRequest(url), substituteData);
@@ -673,10 +673,9 @@ void webkit_page_stop_loading(WebKitPage* page)
 {
     WebKitPagePrivate* pageData = WEBKIT_PAGE_GET_PRIVATE(page);
     WebKitFramePrivate* frameData = WEBKIT_FRAME_GET_PRIVATE(pageData->mainFrame);
-    
+
     if (FrameLoader* loader = frameData->frame->loader())
         loader->stopAllLoaders();
-        
 }
 
 WebKitFrame* webkit_page_get_main_frame(WebKitPage* page)
index 25fb88744ce4f0fc6a48a42e0aca739d759a8076..eaa178d17507768bca909f234a16187c9a3e194d 100644 (file)
@@ -145,7 +145,7 @@ WEBKIT_API WebKitFrame*
 webkit_page_get_main_frame (WebKitPage* page);
 
 WEBKIT_API void
-webkit_page_execute_script(WebKitPage* page, const gchar* script);
+webkit_page_execute_script (WebKitPage* page, const gchar* script);
 G_END_DECLS
 
 #endif
index 9f167a452f35edc8afc219d0afa0f491f09d091c..087af1bbab71ab55fb96fe3b3228bd99156819c1 100644 (file)
@@ -40,7 +40,6 @@
 #include "webkitgtkframe.h"
 #include "webkitgtknetworkrequest.h"
 
-
 #include "Settings.h"
 #include "Page.h"
 #include "Frame.h"
@@ -71,7 +70,7 @@ extern "C" {
 
         HashSet<GtkWidget*> children;
     };
-    
+
     #define WEBKIT_FRAME_GET_PRIVATE(obj)    (G_TYPE_INSTANCE_GET_PRIVATE((obj), WEBKIT_TYPE_FRAME, WebKitFramePrivate))
     typedef struct _WebKitFramePrivate WebKitFramePrivate;
     struct _WebKitFramePrivate {
@@ -89,7 +88,6 @@ extern "C" {
         gchar* url;
     };
 
-
     GObject* webkit_frame_init_with_page(WebKitPage*, WebCore::HTMLFrameOwnerElement*);
 }
 
index 6482909e4d1ea4d302c8ddb95c50953c09e98842..0c37bdf463790d173e0eca99e6270aca99a9fe8c 100644 (file)
@@ -1,3 +1,32 @@
+2007-11-22  Alp Toker  <alp@atoker.com>
+
+        Whitespace fixes only.
+
+        * Api/webkitgtkframe.cpp:
+        * Api/webkitgtkpage.cpp:
+        * Api/webkitgtkpage.h:
+        * Api/webkitgtkprivate.h:
+        * WebCoreSupport/ChromeClientGtk.cpp:
+        * WebCoreSupport/ContextMenuClientGtk.cpp:
+        * WebCoreSupport/ContextMenuClientGtk.h:
+        * WebCoreSupport/DragClientGtk.h:
+        * WebCoreSupport/EditorClientGtk.h:
+        * WebCoreSupport/FrameLoaderClientGtk.cpp:
+        (WebKit::FrameLoaderClient::dispatchWillSendRequest):
+        (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
+        (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
+        (WebKit::FrameLoaderClient::createFrame):
+        (WebKit::FrameLoaderClient::createJavaAppletWidget):
+        (WebKit::FrameLoaderClient::registerForIconNotification):
+        (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
+        (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
+        (WebKit::FrameLoaderClient::frameLoadCompleted):
+        (WebKit::FrameLoaderClient::saveViewStateToItem):
+        (WebKit::FrameLoaderClient::restoreViewState):
+        (WebKit::FrameLoaderClient::shouldGoToHistoryItem):
+        (WebKit::FrameLoaderClient::setTitle):
+        * WebCoreSupport/FrameLoaderClientGtk.h:
+
 2007-11-22  Michael Natterer  <mitch@imendio.com>
 
         Reviewed by Alp Toker.
index b78b2d6cc729c92ba25301bc200f73d4b15b7054..8ba620710cc6c71583dc1ead08d20e1f149d96de 100644 (file)
@@ -85,7 +85,7 @@ void ChromeClient::unfocus()
 {
     notImplemented();
 }
-    
+
 Page* ChromeClient::createWindow(Frame*, const FrameLoadRequest&, const WindowFeatures& features)
 {
     if (features.dialog) {
index 8ae705722d276f762dceeed14867030c578c92c7..f2044869a5e6a987d00d5e04ec7ede199fd2350b 100644 (file)
@@ -35,7 +35,7 @@
 using namespace WebCore;
 
 namespace WebKit {
-    
+
 void ContextMenuClient::contextMenuDestroyed()
 {
     notImplemented();
index 2dca47c2e17472e648b541a01d2f4ac3685c9832..c0e80699453090329e7c5dfe6b0420f1fb9d17e5 100644 (file)
@@ -38,7 +38,7 @@ namespace WebKit {
     {
     public:
         virtual void contextMenuDestroyed();
-        
+
         virtual WebCore::PlatformMenuDescription getCustomMenuFromDefaultItems(WebCore::ContextMenu*);
         virtual void contextMenuItemSelected(WebCore::ContextMenuItem*, const WebCore::ContextMenu*);
 
index c3f94b3a5c99f37bf40b6c2a008aca931a557242..bc20a004f2b5ac4b8de5ef819a479cc70a6b92df 100644 (file)
@@ -43,7 +43,7 @@ namespace WebKit {
 
         virtual void startDrag(WebCore::DragImageRef dragImage, const WebCore::IntPoint& dragImageOrigin, const WebCore::IntPoint& eventPos, WebCore::Clipboard*, WebCore::Frame*, bool linkDrag = false);
         virtual WebCore::DragImageRef createDragImageForLink(WebCore::KURL&, const WebCore::String& label, WebCore::Frame*);
-        
+
         virtual void dragControllerDestroyed();
     };
 }
index ae3b024342cf4e6bdf89e958844df118d460a532..311b1a781f1095fbe7de0dad370ef1ae6360f6d7 100644 (file)
@@ -42,23 +42,22 @@ namespace WebCore {
 
 namespace WebKit {
 
-
     class EditorClient : public WebCore::EditorClient {
     public:
         EditorClient(WebKitPage*);
 
         // from EditorClient
         virtual void pageDestroyed();
-    
+
         virtual bool shouldDeleteRange(WebCore::Range*);
         virtual bool shouldShowDeleteInterface(WebCore::HTMLElement*);
-        virtual bool smartInsertDeleteEnabled(); 
+        virtual bool smartInsertDeleteEnabled();
         virtual bool isContinuousSpellCheckingEnabled();
         virtual void toggleContinuousSpellChecking();
         virtual bool isGrammarCheckingEnabled();
         virtual void toggleGrammarChecking();
         virtual int spellCheckerDocumentTag();
-    
+
         virtual bool isEditable();
 
         virtual bool shouldBeginEditing(WebCore::Range*);
@@ -77,14 +76,14 @@ namespace WebKit {
         virtual void didEndEditing();
         virtual void didWriteSelectionToPasteboard();
         virtual void didSetSelectionTypesForPasteboard();
-    
+
         virtual void registerCommandForUndo(WTF::PassRefPtr<WebCore::EditCommand>);
         virtual void registerCommandForRedo(WTF::PassRefPtr<WebCore::EditCommand>);
         virtual void clearUndoRedoOperations();
 
         virtual bool canUndo() const;
         virtual bool canRedo() const;
-    
+
         virtual void undo();
         virtual void redo();
 
index fdce5a1c774dbef8d6824c2160567324505486c3..aecd25e4747d3f0989da29f56bf6318aecc2978a 100644 (file)
@@ -30,7 +30,7 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
 #include "config.h"
 #include "FrameLoaderClientGtk.h"
 #include "DocumentLoader.h"
@@ -182,14 +182,14 @@ void FrameLoaderClient::dispatchDidCancelAuthenticationChallenge(DocumentLoader*
     notImplemented();
 }
 
-void FrameLoaderClient::dispatchWillSendRequest(DocumentLoader*, unsigned long , ResourceRequest&, const ResourceResponse&)
+void FrameLoaderClient::dispatchWillSendRequest(DocumentLoader*, unsigned long, ResourceRequest&, const ResourceResponse&)
 {
     notImplemented();
 }
 
 void FrameLoaderClient::assignIdentifierToInitialRequest(unsigned long identifier, DocumentLoader*, const ResourceRequest&)
 {
-    notImplemented();   
+    notImplemented();
 }
 
 void FrameLoaderClient::postProgressStartedNotification()
@@ -203,7 +203,7 @@ void FrameLoaderClient::postProgressEstimateChangedNotification()
     WebKitPage* kitPage = getPageFromFrame(m_frame);
     Page* corePage = core(kitPage);
 
-    g_signal_emit_by_name(kitPage, "load_progress_changed", lround(corePage->progress()->estimatedProgress()*100)); 
+    g_signal_emit_by_name(kitPage, "load_progress_changed", lround(corePage->progress()->estimatedProgress()*100));
 }
 
 void FrameLoaderClient::postProgressFinishedNotification()
@@ -272,7 +272,7 @@ Widget* FrameLoaderClient::createPlugin(const IntSize&, Element*, const KURL&, c
 }
 
 PassRefPtr<Frame> FrameLoaderClient::createFrame(const KURL& url, const String& name, HTMLFrameOwnerElement* ownerElement,
-                                        const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight)
+                                                 const String& referrer, bool allowsScrolling, int marginWidth, int marginHeight)
 {
     Frame* coreFrame = core(webFrame());
 
@@ -313,7 +313,7 @@ void FrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget)
 }
 
 Widget* FrameLoaderClient::createJavaAppletWidget(const IntSize&, Element*, const KURL& baseURL,
-                                                    const Vector<String>& paramNames, const Vector<String>& paramValues)
+                                                  const Vector<String>& paramNames, const Vector<String>& paramValues)
 {
     notImplemented();
     return 0;
@@ -352,13 +352,12 @@ void FrameLoaderClient::didPerformFirstNavigation() const
 {
 }
 
-void FrameLoaderClient::registerForIconNotification(bool) 
-{ 
-    notImplemented(); 
-} 
-    
+void FrameLoaderClient::registerForIconNotification(bool)
+{
+    notImplemented();
+}
 
-void FrameLoaderClient::setMainFrameDocumentReady(bool) 
+void FrameLoaderClient::setMainFrameDocumentReady(bool)
 {
     // this is only interesting once we provide an external API for the DOM
 }
@@ -375,27 +374,27 @@ bool FrameLoaderClient::hasFrameView() const
     return true;
 }
 
-void FrameLoaderClient::dispatchDidFinishLoad() 
-{ 
+void FrameLoaderClient::dispatchDidFinishLoad()
+{
     g_signal_emit_by_name(m_frame, "load_done", true);
 }
 
-void FrameLoaderClient::frameLoadCompleted() 
+void FrameLoaderClient::frameLoadCompleted()
 {
-    notImplemented(); 
+    notImplemented();
 }
 
 void FrameLoaderClient::saveViewStateToItem(HistoryItem*)
 {
-    notImplemented(); 
+    notImplemented();
 }
 
 void FrameLoaderClient::restoreViewState()
 {
-    notImplemented(); 
+    notImplemented();
 }
 
-bool FrameLoaderClient::shouldGoToHistoryItem(HistoryItem* item) const 
+bool FrameLoaderClient::shouldGoToHistoryItem(HistoryItem* item) const
 {
     // FIXME: This is a very simple implementation. More sophisticated
     // implementation would delegate the decision to a PolicyDelegate.
@@ -485,7 +484,7 @@ void FrameLoaderClient::setTitle(const String& title, const KURL& url)
 {
     WebKitPage* page = getPageFromFrame(m_frame);
 
-    CString titleString = title.utf8(); 
+    CString titleString = title.utf8();
     DeprecatedCString urlString = url.prettyURL().utf8();
     g_signal_emit_by_name(m_frame, "title_changed", titleString.data(), urlString.data());
 
index e1b497cefd83c944a4a1ff89a8ab6fa47e7318f7..fa4c01a245c213628ae036454b96e55ad34163af 100644 (file)
@@ -121,8 +121,8 @@ namespace WebKit {
         virtual void windowObjectCleared();
         virtual void didPerformFirstNavigation() const;
 
-        virtual void registerForIconNotification(bool); 
-        
+        virtual void registerForIconNotification(bool);
+
         virtual WebCore::ObjectContentType objectContentType(const WebCore::KURL& url, const WebCore::String& mimeType);
 
         virtual void setMainFrameDocumentReady(bool);