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

Unified Diff: content/common/cursors/webcursor.cc

Issue 201473002: Move webcursors code from webkit/ to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gfx image include Created 6 years, 9 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/common/cursors/webcursor.h ('k') | content/common/cursors/webcursor_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cursors/webcursor.cc
diff --git a/webkit/common/cursors/webcursor.cc b/content/common/cursors/webcursor.cc
similarity index 98%
rename from webkit/common/cursors/webcursor.cc
rename to content/common/cursors/webcursor.cc
index b3036a7bad4ffc982e9985eded2caec347ac313d..e2b0442f955266ee31a30d07b726af61a1e2c20b 100644
--- a/webkit/common/cursors/webcursor.cc
+++ b/content/common/cursors/webcursor.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 "webkit/common/cursors/webcursor.h"
+#include "content/common/cursors/webcursor.h"
#include "base/logging.h"
#include "base/pickle.h"
@@ -12,6 +12,8 @@ using blink::WebCursorInfo;
static const int kMaxCursorDimension = 1024;
+namespace content {
+
WebCursor::WebCursor()
: type_(WebCursorInfo::TypePointer),
custom_scale_(1) {
@@ -259,3 +261,5 @@ void WebCursor::ClampHotspot() {
hotspot_.set_y(std::max(0,
std::min(custom_size_.height() - 1, hotspot_.y())));
}
+
+} // namespace content
« no previous file with comments | « content/common/cursors/webcursor.h ('k') | content/common/cursors/webcursor_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698