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

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

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/DEPS ('k') | content/common/cursors/webcursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cursors/webcursor.h
diff --git a/webkit/common/cursors/webcursor.h b/content/common/cursors/webcursor.h
similarity index 95%
rename from webkit/common/cursors/webcursor.h
rename to content/common/cursors/webcursor.h
index 7682a0a6992aff72efdd6e1428a13670765e57a7..d717be3ccfab304aae59b6fc18035bffaff7b025 100644
--- a/webkit/common/cursors/webcursor.h
+++ b/content/common/cursors/webcursor.h
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_COMMON_CURSORS_WEBCURSOR_H_
-#define WEBKIT_COMMON_CURSORS_WEBCURSOR_H_
+#ifndef CONTENT_COMMON_CURSORS_WEBCURSOR_H_
+#define CONTENT_COMMON_CURSORS_WEBCURSOR_H_
+
+#include <vector>
#include "base/basictypes.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebCursorInfo.h"
#include "ui/gfx/display.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/point.h"
#include "ui/gfx/size.h"
-#include "webkit/common/webkit_common_export.h"
-
-#include <vector>
#if defined(USE_AURA)
#include "ui/base/cursor/cursor.h"
@@ -36,11 +36,13 @@ class NSCursor;
class Pickle;
class PickleIterator;
+namespace content {
+
// This class encapsulates a cross-platform description of a cursor. Platform
// specific methods are provided to translate the cross-platform cursor into a
// platform specific cursor. It is also possible to serialize / de-serialize a
// WebCursor.
-class WEBKIT_COMMON_EXPORT WebCursor {
+class CONTENT_EXPORT WebCursor {
public:
struct CursorInfo {
explicit CursorInfo(blink::WebCursorInfo::Type cursor_type)
@@ -192,4 +194,6 @@ class WEBKIT_COMMON_EXPORT WebCursor {
#endif
};
-#endif // WEBKIT_COMMON_CURSORS_WEBCURSOR_H_
+} // namespace content
+
+#endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_
« no previous file with comments | « content/common/cursors/DEPS ('k') | content/common/cursors/webcursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698