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

Unified Diff: ui/views/drag_utils.cc

Issue 8735009: views: Move some random files from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « ui/views/drag_utils.h ('k') | ui/views/drag_utils_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/drag_utils.cc
diff --git a/views/drag_utils.cc b/ui/views/drag_utils.cc
similarity index 93%
rename from views/drag_utils.cc
rename to ui/views/drag_utils.cc
index 1ab4c79a52cc5a09ec4fa2415b7d189395ddccb3..181a59906cf791e1df16ab0fc85ac3f9d2bc311e 100644
--- a/views/drag_utils.cc
+++ b/ui/views/drag_utils.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "views/drag_utils.h"
+#include "ui/views/drag_utils.h"
#include "base/file_util.h"
#include "base/logging.h"
@@ -15,8 +15,6 @@
#include "ui/gfx/font.h"
#include "ui/views/controls/button/text_button.h"
-using ui::OSExchangeData;
-
namespace drag_utils {
// Maximum width of the link drag image in pixels.
@@ -30,7 +28,7 @@ static const SkColor kFileDragImageTextColor = SK_ColorBLACK;
void SetURLAndDragImage(const GURL& url,
const string16& title,
const SkBitmap& icon,
- OSExchangeData* data) {
+ ui::OSExchangeData* data) {
DCHECK(url.is_valid() && data);
data->SetURL(url, title);
@@ -57,7 +55,7 @@ void SetURLAndDragImage(const GURL& url,
void CreateDragImageForFile(const FilePath& file_name,
const SkBitmap* icon,
- OSExchangeData* data_object) {
+ ui::OSExchangeData* data_object) {
DCHECK(icon);
DCHECK(data_object);
@@ -95,9 +93,9 @@ void CreateDragImageForFile(const FilePath& file_name,
void SetDragImageOnDataObject(const gfx::Canvas& canvas,
const gfx::Size& size,
const gfx::Point& cursor_offset,
- OSExchangeData* data_object) {
+ ui::OSExchangeData* data_object) {
SetDragImageOnDataObject(
canvas.AsCanvasSkia()->ExtractBitmap(), size, cursor_offset, data_object);
}
-} // namespace drag_utils
+} // namespace drag_utils
« no previous file with comments | « ui/views/drag_utils.h ('k') | ui/views/drag_utils_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698