OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/cursors/webcursor.h" | 5 #include "content/common/cursors/webcursor.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "third_party/WebKit/public/platform/WebCursorInfo.h" | 9 #include "third_party/WebKit/public/platform/WebCursorInfo.h" |
10 #include "ui/gfx/icon_util.h" | 10 #include "ui/gfx/icon_util.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 void WebCursor::SetDisplayInfo(const gfx::Display& display) { | 30 void WebCursor::SetDisplayInfo(const gfx::Display& display) { |
31 // TODO(winguru): Add support for scaling the cursor. | 31 // TODO(winguru): Add support for scaling the cursor. |
32 } | 32 } |
33 | 33 |
34 void WebCursor::InitPlatformData() { | 34 void WebCursor::InitPlatformData() { |
35 custom_cursor_ = NULL; | 35 custom_cursor_ = NULL; |
36 } | 36 } |
37 | 37 |
38 bool WebCursor::SerializePlatformData(Pickle* pickle) const { | 38 bool WebCursor::SerializePlatformData(base::Pickle* pickle) const { |
39 return true; | 39 return true; |
40 } | 40 } |
41 | 41 |
42 bool WebCursor::DeserializePlatformData(PickleIterator* iter) { | 42 bool WebCursor::DeserializePlatformData(base::PickleIterator* iter) { |
43 return true; | 43 return true; |
44 } | 44 } |
45 | 45 |
46 bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const { | 46 bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const { |
47 return true; | 47 return true; |
48 } | 48 } |
49 | 49 |
50 void WebCursor::CleanupPlatformData() { | 50 void WebCursor::CleanupPlatformData() { |
51 if (custom_cursor_) { | 51 if (custom_cursor_) { |
52 DestroyIcon(custom_cursor_); | 52 DestroyIcon(custom_cursor_); |
53 custom_cursor_ = NULL; | 53 custom_cursor_ = NULL; |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 void WebCursor::CopyPlatformData(const WebCursor& other) { | 57 void WebCursor::CopyPlatformData(const WebCursor& other) { |
58 } | 58 } |
59 | 59 |
60 } // namespace content | 60 } // namespace content |
OLD | NEW |