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

Unified Diff: content/browser/tab_contents/web_drag_utils_win.cc

Issue 10014024: TabContents -> WebContentsImpl, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tab_contents/web_drag_utils_win.h ('k') | content/browser/web_contents/web_drag_dest_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/web_drag_utils_win.cc
diff --git a/content/browser/tab_contents/web_drag_utils_win.cc b/content/browser/tab_contents/web_drag_utils_win.cc
deleted file mode 100644
index 53c40b0e4f5182ffa703d41ac8b28a90692494d5..0000000000000000000000000000000000000000
--- a/content/browser/tab_contents/web_drag_utils_win.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/tab_contents/web_drag_utils_win.h"
-
-#include <oleidl.h>
-#include "base/logging.h"
-
-using WebKit::WebDragOperation;
-using WebKit::WebDragOperationsMask;
-using WebKit::WebDragOperationNone;
-using WebKit::WebDragOperationCopy;
-using WebKit::WebDragOperationLink;
-using WebKit::WebDragOperationMove;
-using WebKit::WebDragOperationGeneric;
-
-namespace web_drag_utils_win {
-
-WebDragOperation WinDragOpToWebDragOp(DWORD effect) {
- DCHECK(effect == DROPEFFECT_NONE || effect == DROPEFFECT_COPY ||
- effect == DROPEFFECT_LINK || effect == DROPEFFECT_MOVE);
-
- return WinDragOpMaskToWebDragOpMask(effect);
-}
-
-WebDragOperationsMask WinDragOpMaskToWebDragOpMask(DWORD effects) {
- WebDragOperationsMask ops = WebDragOperationNone;
- if (effects & DROPEFFECT_COPY)
- ops = static_cast<WebDragOperationsMask>(ops | WebDragOperationCopy);
- if (effects & DROPEFFECT_LINK)
- ops = static_cast<WebDragOperationsMask>(ops | WebDragOperationLink);
- if (effects & DROPEFFECT_MOVE)
- ops = static_cast<WebDragOperationsMask>(ops | WebDragOperationMove |
- WebDragOperationGeneric);
- return ops;
-}
-
-DWORD WebDragOpToWinDragOp(WebDragOperation op) {
- DCHECK(op == WebDragOperationNone ||
- op == WebDragOperationCopy ||
- op == WebDragOperationLink ||
- op == WebDragOperationMove ||
- op == (WebDragOperationMove | WebDragOperationGeneric));
-
- return WebDragOpMaskToWinDragOpMask(op);
-}
-
-DWORD WebDragOpMaskToWinDragOpMask(WebDragOperationsMask ops) {
- DWORD win_ops = DROPEFFECT_NONE;
- if (ops & WebDragOperationCopy)
- win_ops |= DROPEFFECT_COPY;
- if (ops & WebDragOperationLink)
- win_ops |= DROPEFFECT_LINK;
- if (ops & (WebDragOperationMove | WebDragOperationGeneric))
- win_ops |= DROPEFFECT_MOVE;
- return win_ops;
-}
-
-} // namespace web_drag_utils_win
-
« no previous file with comments | « content/browser/tab_contents/web_drag_utils_win.h ('k') | content/browser/web_contents/web_drag_dest_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698