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

Issue 10703171: Migrate drag&drop code in test_shell to new WebKit API (Closed)

Created:
8 years, 5 months ago by tony
Modified:
8 years, 5 months ago
Reviewers:
abarth-chromium, ojan
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, dcheng
Visibility:
Public.

Description

Migrate drag&drop code in test_shell to new WebKit API In http://webkit.org/b/90996 , I tried to remove the old API, but some code in test_shell Win was still using the old API. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146381

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M webkit/tools/test_shell/drop_delegate.cc View 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
tony
8 years, 5 months ago (2012-07-12 17:08:18 UTC) #1
ojan
8 years, 5 months ago (2012-07-12 17:10:16 UTC) #2
LGTM


On Thu, Jul 12, 2012 at 10:08 AM, <tony@chromium.org> wrote:

> Reviewers: ojan, abarth,
>
> Description:
> Migrate drag&drop code in test_shell to new WebKit API
>
> In http://webkit.org/b/90996 , I tried to remove the old API, but
> some code in test_shell Win was still using the old API.
>
> BUG=None
>
>
> Please review this at
https://chromiumcodereview.**appspot.com/10703171/<https://chromiumcodereview...
>
> SVN Base:
svn://svn.chromium.org/chrome/**trunk/src<http://svn.chromium.org/chrome/trunk/src>
>
> Affected files:
>   M webkit/tools/test_shell/drop_**delegate.cc
>
>
> Index: webkit/tools/test_shell/drop_**delegate.cc
> diff --git a/webkit/tools/test_shell/**drop_delegate.cc
> b/webkit/tools/test_shell/**drop_delegate.cc
> index 4f577043536efe98ac10487fb77c07**2d01ba3842..**
> aff7116e7a37f40e704dbe926c295c**dd8a64d9df 100644
> --- a/webkit/tools/test_shell/**drop_delegate.cc
> +++ b/webkit/tools/test_shell/**drop_delegate.cc
> @@ -32,7 +32,8 @@ DWORD TestDropDelegate::OnDragEnter(**IDataObject*
> data_object,
>        drop_data.ToDragData(),
>        WebPoint(client_pt.x, client_pt.y),
>        WebPoint(cursor_position.x, cursor_position.y),
> -      WebDragOperationCopy);
> +      WebDragOperationCopy,
> +      0);
>    // TODO(snej): Pass the real drag operation instead
>    return op ? DROPEFFECT_COPY : DROPEFFECT_NONE;
>    // TODO(snej): Return the real drop effect constant matching 'op'
> @@ -47,7 +48,8 @@ DWORD TestDropDelegate::OnDragOver(**IDataObject*
> data_object,
>    WebDragOperation op = webview_->dragTargetDragOver(
>        WebPoint(client_pt.x, client_pt.y),
>        WebPoint(cursor_position.x, cursor_position.y),
> -      WebDragOperationCopy);
> +      WebDragOperationCopy,
> +      0);
>    // TODO(snej): Pass the real drag operation instead
>    return op ? DROPEFFECT_COPY : DROPEFFECT_NONE;
>    // TODO(snej): Return the real drop effect constant matching 'op'
> @@ -65,7 +67,8 @@ DWORD TestDropDelegate::OnDrop(**IDataObject*
> data_object,
>    ScreenToClient(GetHWND(), &client_pt);
>    webview_->dragTargetDrop(
>        WebPoint(client_pt.x, client_pt.y),
> -      WebPoint(cursor_position.x, cursor_position.y));
> +      WebPoint(cursor_position.x, cursor_position.y),
> +      0);
>
>    // webkit win port always returns DROPEFFECT_NONE
>    return DROPEFFECT_NONE;
>
>
>

Powered by Google App Engine
This is Rietveld 408576698