<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[27156] trunk/WebKit/win</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/27156">27156</a></dd>
<dt>Author</dt> <dd>kmccullo</dd>
<dt>Date</dt> <dd>2007-10-27 16:26:58 -0700 (Sat, 27 Oct 2007)</dd>
</dl>

<h3>Log Message</h3>
<pre>        Reviewed by Adam.

        - Stubbed out IWebScriptCallFrame for Drosera.

        * Interfaces/IWebScriptCallFrame.idl: Added function declarations.
        * WebKit.vcproj/WebKit.vcproj: Added .h/.cpp files to the project.
        * WebScriptCallFrame.cpp: Added.
        (WebScriptCallFrame::WebScriptCallFrame):
        (WebScriptCallFrame::~WebScriptCallFrame):
        (WebScriptCallFrame::createInstance):
        (WebScriptCallFrame::QueryInterface):
        (WebScriptCallFrame::AddRef):
        (WebScriptCallFrame::Release):
        (WebScriptCallFrame::caller):
        (WebScriptCallFrame::scopeChain):
        (WebScriptCallFrame::functionName):
        (WebScriptCallFrame::evaluateWebScript):
        * WebScriptCallFrame.h: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebKitwinChangeLog">trunk/WebKit/win/ChangeLog</a></li>
<li><a href="#trunkWebKitwinInterfacesIWebScriptCallFrameidl">trunk/WebKit/win/Interfaces/IWebScriptCallFrame.idl</a></li>
<li><a href="#trunkWebKitwinWebKitvcprojWebKitvcproj">trunk/WebKit/win/WebKit.vcproj/WebKit.vcproj</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkWebKitwinWebScriptCallFramecpp">trunk/WebKit/win/WebScriptCallFrame.cpp</a></li>
<li><a href="#trunkWebKitwinWebScriptCallFrameh">trunk/WebKit/win/WebScriptCallFrame.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebKitwinChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/win/ChangeLog (27155 => 27156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/ChangeLog        2007-10-27 23:25:24 UTC (rev 27155)
+++ trunk/WebKit/win/ChangeLog        2007-10-27 23:26:58 UTC (rev 27156)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2007-10-27  Kevin McCullough  &lt;kmccullough@apple.com&gt;
+
+        Reviewed by Adam.
+
+        - Stubbed out IWebScriptCallFrame for Drosera.
+
+        * Interfaces/IWebScriptCallFrame.idl: Added function declarations.
+        * WebKit.vcproj/WebKit.vcproj: Added .h/.cpp files to the project.
+        * WebScriptCallFrame.cpp: Added.
+        (WebScriptCallFrame::WebScriptCallFrame):
+        (WebScriptCallFrame::~WebScriptCallFrame):
+        (WebScriptCallFrame::createInstance):
+        (WebScriptCallFrame::QueryInterface):
+        (WebScriptCallFrame::AddRef):
+        (WebScriptCallFrame::Release):
+        (WebScriptCallFrame::caller):
+        (WebScriptCallFrame::scopeChain):
+        (WebScriptCallFrame::functionName):
+        (WebScriptCallFrame::evaluateWebScript):
+        * WebScriptCallFrame.h: Added.
+
</ins><span class="cx"> 2007-10-26  Kevin McCullough  &lt;kmccullough@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Sam and Steve.
</span></span></pre></div>
<a id="trunkWebKitwinInterfacesIWebScriptCallFrameidl"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/win/Interfaces/IWebScriptCallFrame.idl (27155 => 27156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/Interfaces/IWebScriptCallFrame.idl        2007-10-27 23:25:24 UTC (rev 27155)
+++ trunk/WebKit/win/Interfaces/IWebScriptCallFrame.idl        2007-10-27 23:26:58 UTC (rev 27156)
</span><span class="lines">@@ -65,4 +65,8 @@
</span><span class="cx"> ]
</span><span class="cx"> interface IWebScriptCallFrame : IUnknown
</span><span class="cx"> {
</span><del>-}
</del><ins>+    HRESULT caller([out, retval] IWebScriptCallFrame**);
+    HRESULT scopeChain([out, retval] VARIANT*);
+    HRESULT functionName([out, retval] BSTR*);
+    HRESULT evaluateWebScript([in] BSTR script, [out, retval] VARIANT*);
+}
</ins></span></pre></div>
<a id="trunkWebKitwinWebKitvcprojWebKitvcproj"></a>
<div class="modfile"><h4>Modified: trunk/WebKit/win/WebKit.vcproj/WebKit.vcproj (27155 => 27156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/WebKit.vcproj/WebKit.vcproj        2007-10-27 23:25:24 UTC (rev 27155)
+++ trunk/WebKit/win/WebKit.vcproj/WebKit.vcproj        2007-10-27 23:26:58 UTC (rev 27156)
</span><span class="lines">@@ -546,6 +546,10 @@
</span><span class="cx">                                 &gt;
</span><span class="cx">                         &lt;/File&gt;
</span><span class="cx">                         &lt;File
</span><ins>+                                RelativePath=&quot;..\WebScriptCallFrame.h&quot;
+                                &gt;
+                        &lt;/File&gt;
+                        &lt;File
</ins><span class="cx">                                 RelativePath=&quot;..\WebScriptDebugServer.h&quot;
</span><span class="cx">                                 &gt;
</span><span class="cx">                         &lt;/File&gt;
</span><span class="lines">@@ -738,6 +742,10 @@
</span><span class="cx">                                 &gt;
</span><span class="cx">                         &lt;/File&gt;
</span><span class="cx">                         &lt;File
</span><ins>+                                RelativePath=&quot;..\WebScriptCallFrame.cpp&quot;
+                                &gt;
+                        &lt;/File&gt;
+                        &lt;File
</ins><span class="cx">                                 RelativePath=&quot;..\WebScriptDebugServer.cpp&quot;
</span><span class="cx">                                 &gt;
</span><span class="cx">                         &lt;/File&gt;
</span></span></pre></div>
<a id="trunkWebKitwinWebScriptCallFramecpp"></a>
<div class="addfile"><h4>Added: trunk/WebKit/win/WebScriptCallFrame.cpp (0 => 27156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/WebScriptCallFrame.cpp                                (rev 0)
+++ trunk/WebKit/win/WebScriptCallFrame.cpp        2007-10-27 23:26:58 UTC (rev 27156)
</span><span class="lines">@@ -0,0 +1,108 @@
</span><ins>+/*
+ * Copyright (C) 2007 Apple Inc.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer. 
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution. 
+ * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
+ *     its contributors may be used to endorse or promote products derived
+ *     from this software without specific prior written permission. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (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 &quot;config.h&quot;
+#include &quot;WebKitDLL.h&quot;
+#include &quot;WebScriptCallFrame.h&quot;
+
+// WebScriptCallFrame ------------------------------------------------------------
+
+WebScriptCallFrame::WebScriptCallFrame()
+    : m_refCount(0)
+{
+    gClassCount++;
+}
+
+WebScriptCallFrame::~WebScriptCallFrame()
+{
+    gClassCount--;
+}
+
+WebScriptCallFrame* WebScriptCallFrame::createInstance()
+{
+    WebScriptCallFrame* instance = new WebScriptCallFrame();
+    instance-&gt;AddRef();
+    return instance;
+}
+
+// IUnknown -------------------------------------------------------------------
+
+HRESULT STDMETHODCALLTYPE WebScriptCallFrame::QueryInterface(REFIID riid, void** ppvObject)
+{
+    *ppvObject = 0;
+    if (IsEqualGUID(riid, IID_IUnknown))
+        *ppvObject = static_cast&lt;IWebScriptCallFrame*&gt;(this);
+    else if (IsEqualGUID(riid, IID_IWebScriptCallFrame))
+        *ppvObject = static_cast&lt;IWebScriptCallFrame*&gt;(this);
+    else
+        return E_NOINTERFACE;
+
+    AddRef();
+    return S_OK;
+}
+
+ULONG STDMETHODCALLTYPE WebScriptCallFrame::AddRef(void)
+{
+    return ++m_refCount;
+}
+
+ULONG STDMETHODCALLTYPE WebScriptCallFrame::Release(void)
+{
+    ULONG newRef = --m_refCount;
+    if (!newRef)
+        delete(this);
+
+    return newRef;
+}
+
+// IWebScriptCallFrame -----------------------------------------------------------
+
+HRESULT STDMETHODCALLTYPE WebScriptCallFrame::caller(
+    /* [out, retval] */ IWebScriptCallFrame**)
+{
+    return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebScriptCallFrame::scopeChain(
+    /* [out, retval] */ VARIANT*)
+{
+    return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebScriptCallFrame::functionName(
+    /* [out, retval] */ BSTR*)
+{
+    return S_OK;
+}
+
+HRESULT STDMETHODCALLTYPE WebScriptCallFrame::evaluateWebScript(
+    /* [in] */ BSTR,
+    /* [out, retval] */ VARIANT*)
+{
+    return S_OK;
+}
</ins></span></pre></div>
<a id="trunkWebKitwinWebScriptCallFrameh"></a>
<div class="addfile"><h4>Added: trunk/WebKit/win/WebScriptCallFrame.h (0 => 27156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKit/win/WebScriptCallFrame.h                                (rev 0)
+++ trunk/WebKit/win/WebScriptCallFrame.h        2007-10-27 23:26:58 UTC (rev 27156)
</span><span class="lines">@@ -0,0 +1,70 @@
</span><ins>+/*
+ * Copyright (C) 2007 Apple Inc.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer. 
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution. 
+ * 3.  Neither the name of Apple Computer, Inc. (&quot;Apple&quot;) nor the names of
+ *     its contributors may be used to endorse or promote products derived
+ *     from this software without specific prior written permission. 
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS &quot;AS IS&quot; AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef WebScriptCallFrame_h
+#define WebScriptCallFrame_h
+
+#include &quot;IWebScriptCallFrame.h&quot;
+
+class WebScriptCallFrame : public IWebScriptCallFrame {
+public:
+    static WebScriptCallFrame* createInstance();
+
+private:
+    WebScriptCallFrame();
+    ~WebScriptCallFrame();
+
+public:
+    // IUnknown
+    virtual HRESULT STDMETHODCALLTYPE QueryInterface( 
+        /* [in] */ REFIID riid,
+        /* [retval][out] */ void** ppvObject);
+    
+    virtual ULONG STDMETHODCALLTYPE AddRef( void);
+
+    virtual ULONG STDMETHODCALLTYPE Release( void);
+
+    // IWebScriptCallFrame
+    virtual HRESULT STDMETHODCALLTYPE caller(
+        /* [out, retval] */ IWebScriptCallFrame**);
+
+    virtual HRESULT STDMETHODCALLTYPE scopeChain(
+        /* [out, retval] */ VARIANT*);
+
+    virtual HRESULT STDMETHODCALLTYPE functionName(
+        /* [out, retval] */ BSTR*);
+
+    virtual HRESULT STDMETHODCALLTYPE evaluateWebScript(
+        /* [in] */ BSTR script,
+        /* [out, retval] */ VARIANT*);
+
+private:
+    ULONG m_refCount;
+};
+
+#endif
</ins></span></pre>
</div>
</div>

</body>
</html>