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

Unified Diff: webkit/common/cursors/webcursor_aurawin.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 | « webkit/common/cursors/webcursor_aura.cc ('k') | webkit/common/cursors/webcursor_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/cursors/webcursor_aurawin.cc
diff --git a/webkit/common/cursors/webcursor_aurawin.cc b/webkit/common/cursors/webcursor_aurawin.cc
deleted file mode 100644
index 3fcf4c4d6df9f68721b0c7516d5a8cd71b1ea8c4..0000000000000000000000000000000000000000
--- a/webkit/common/cursors/webcursor_aurawin.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 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 "webkit/common/cursors/webcursor.h"
-
-#include <windows.h>
-
-#include "third_party/WebKit/public/platform/WebCursorInfo.h"
-#include "ui/gfx/icon_util.h"
-
-const ui::PlatformCursor WebCursor::GetPlatformCursor() {
- if (!IsCustom())
- return LoadCursor(NULL, IDC_ARROW);
-
- if (custom_cursor_)
- return custom_cursor_;
-
- custom_cursor_ =
- IconUtil::CreateCursorFromDIB(
- custom_size_,
- hotspot_,
- !custom_data_.empty() ? &custom_data_[0] : NULL,
- custom_data_.size());
- return custom_cursor_;
-}
-
-void WebCursor::SetDisplayInfo(const gfx::Display& display) {
- // TODO(winguru): Add support for scaling the cursor.
-}
-
-void WebCursor::InitPlatformData() {
- custom_cursor_ = NULL;
-}
-
-bool WebCursor::SerializePlatformData(Pickle* pickle) const {
- return true;
-}
-
-bool WebCursor::DeserializePlatformData(PickleIterator* iter) {
- return true;
-}
-
-bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const {
- return true;
-}
-
-void WebCursor::CleanupPlatformData() {
- if (custom_cursor_) {
- DestroyIcon(custom_cursor_);
- custom_cursor_ = NULL;
- }
-}
-
-void WebCursor::CopyPlatformData(const WebCursor& other) {
-}
« no previous file with comments | « webkit/common/cursors/webcursor_aura.cc ('k') | webkit/common/cursors/webcursor_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698