<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>45016</bug_id>
          
          <creation_ts>2010-08-31 21:15:23 -0700</creation_ts>
          <short_desc>[Chromium] Add WebKitClient::callOnMainThreadWithDelay()</short_desc>
          <delta_ts>2010-09-01 17:26:36 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit API</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>36641</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Kent Tamura">tkent</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>fishd</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>272615</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-08-31 21:15:23 -0700</bug_when>
    <thetext>[Chromium] Add WebKitClient::callOnMainThreadWithDelay()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272616</commentid>
    <comment_count>1</comment_count>
      <attachid>66164</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-08-31 21:16:59 -0700</bug_when>
    <thetext>Created attachment 66164
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272617</commentid>
    <comment_count>2</comment_count>
      <attachid>66164</attachid>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2010-08-31 21:18:16 -0700</bug_when>
    <thetext>Comment on attachment 66164
Patch

ok. I am assuming you&apos;re adding callers of this after rolling chromium?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272618</commentid>
    <comment_count>3</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-08-31 21:24:26 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 66164 [details])
&gt; ok. I am assuming you&apos;re adding callers of this after rolling chromium?

Right.
1. commit this.
2. commit an implementation of callOnMainThreadWithDelay() in Chromium
3. roll Chromium revision and use callOnMainThreadWithDelay() in DRT</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272645</commentid>
    <comment_count>4</comment_count>
      <attachid>66164</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-08-31 22:46:32 -0700</bug_when>
    <thetext>Comment on attachment 66164
Patch

Clearing flags on attachment: 66164

Committed r66576: &lt;http://trac.webkit.org/changeset/66576&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272646</commentid>
    <comment_count>5</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-08-31 22:46:41 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272842</commentid>
    <comment_count>6</comment_count>
      <attachid>66164</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-09-01 09:28:05 -0700</bug_when>
    <thetext>Comment on attachment 66164
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=66164&amp;action=prettypatch

&gt; WebKit/chromium/public/WebKitClient.h:263
&gt; +    virtual void callOnMainThreadWithDelay(void (*func)(void*), void* context, long long delayMilliseconds) { }
delayMilliseconds does not need to be &apos;long long&apos;.  a simple int would do here.

i&apos;m curious... what are the consumers that require this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273044</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-09-01 14:57:42 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 66164 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=66164&amp;action=prettypatch
&gt; 
&gt; &gt; WebKit/chromium/public/WebKitClient.h:263
&gt; &gt; +    virtual void callOnMainThreadWithDelay(void (*func)(void*), void* context, long long delayMilliseconds) { }
&gt; delayMilliseconds does not need to be &apos;long long&apos;.  a simple int would do here.
&gt; 
&gt; i&apos;m curious... what are the consumers that require this?

I used &quot;long long&quot; because MessageLoop::postDelayedTask() uses int64 though int is enough for my purpose.

http://trac.webkit.org/browser/trunk/WebKitTools/DumpRenderTree/chromium/LayoutTestController.cpp#L324 will be replaced with code using callOnMainThreadWithDelay().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273098</commentid>
    <comment_count>8</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-09-01 16:24:32 -0700</bug_when>
    <thetext>I have change my mind :-)
The function can be implemented in webkit_support and we don&apos;t need to pollute WebKit API.
I&apos;ll revert r66576.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>273122</commentid>
    <comment_count>9</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-09-01 17:25:53 -0700</bug_when>
    <thetext>Reverted r66576 for reason:

This change is not needed.

Committed r66627: &lt;http://trac.webkit.org/changeset/66627&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66164</attachid>
            <date>2010-08-31 21:16:59 -0700</date>
            <delta_ts>2010-09-01 09:28:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-45016-20100901131657.patch</filename>
            <type>text/plain</type>
            <size>1371</size>
            <attacher name="Kent Tamura">tkent</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC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