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

Side by Side Diff: webkit/glue/webcursor_gtk.cc

Issue 2931011: linux: use some more GDK_ cursor constants for panning cursors (Closed)
Patch Set: license Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // source code is governed by a BSD-style license that can be found in the 2 // Use of this source code is governed by a BSD-style license that can be
3 // LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/webcursor.h" 5 #include "webkit/glue/webcursor.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
11 11
12 using WebKit::WebCursorInfo; 12 using WebKit::WebCursorInfo;
13 13
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 79 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
80 case WebCursorInfo::TypeNorthEastSouthWestResize: 80 case WebCursorInfo::TypeNorthEastSouthWestResize:
81 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 81 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
82 case WebCursorInfo::TypeNorthWestSouthEastResize: 82 case WebCursorInfo::TypeNorthWestSouthEastResize:
83 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 83 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
84 case WebCursorInfo::TypeColumnResize: 84 case WebCursorInfo::TypeColumnResize:
85 return GDK_SB_H_DOUBLE_ARROW; // TODO(evanm): is this correct? 85 return GDK_SB_H_DOUBLE_ARROW; // TODO(evanm): is this correct?
86 case WebCursorInfo::TypeRowResize: 86 case WebCursorInfo::TypeRowResize:
87 return GDK_SB_V_DOUBLE_ARROW; // TODO(evanm): is this correct? 87 return GDK_SB_V_DOUBLE_ARROW; // TODO(evanm): is this correct?
88 case WebCursorInfo::TypeMiddlePanning: 88 case WebCursorInfo::TypeMiddlePanning:
89 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 89 return GDK_FLEUR;
90 case WebCursorInfo::TypeEastPanning: 90 case WebCursorInfo::TypeEastPanning:
91 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 91 return GDK_SB_RIGHT_ARROW;
92 case WebCursorInfo::TypeNorthPanning: 92 case WebCursorInfo::TypeNorthPanning:
93 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 93 return GDK_SB_UP_ARROW;
94 case WebCursorInfo::TypeNorthEastPanning: 94 case WebCursorInfo::TypeNorthEastPanning:
95 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 95 return GDK_TOP_RIGHT_CORNER;
96 case WebCursorInfo::TypeNorthWestPanning: 96 case WebCursorInfo::TypeNorthWestPanning:
97 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 97 return GDK_TOP_LEFT_CORNER;
98 case WebCursorInfo::TypeSouthPanning: 98 case WebCursorInfo::TypeSouthPanning:
99 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 99 return GDK_SB_DOWN_ARROW;
100 case WebCursorInfo::TypeSouthEastPanning: 100 case WebCursorInfo::TypeSouthEastPanning:
101 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 101 return GDK_BOTTOM_RIGHT_CORNER;
102 case WebCursorInfo::TypeSouthWestPanning: 102 case WebCursorInfo::TypeSouthWestPanning:
103 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 103 return GDK_BOTTOM_LEFT_CORNER;
104 case WebCursorInfo::TypeWestPanning: 104 case WebCursorInfo::TypeWestPanning:
105 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 105 return GDK_SB_LEFT_ARROW;
106 case WebCursorInfo::TypeMove: 106 case WebCursorInfo::TypeMove:
107 return GDK_FLEUR; 107 return GDK_FLEUR;
108 case WebCursorInfo::TypeVerticalText: 108 case WebCursorInfo::TypeVerticalText:
109 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 109 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
110 case WebCursorInfo::TypeCell: 110 case WebCursorInfo::TypeCell:
111 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 111 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
112 case WebCursorInfo::TypeContextMenu: 112 case WebCursorInfo::TypeContextMenu:
113 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 113 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
114 case WebCursorInfo::TypeAlias: 114 case WebCursorInfo::TypeAlias:
115 NOTIMPLEMENTED(); return GDK_LAST_CURSOR; 115 NOTIMPLEMENTED(); return GDK_LAST_CURSOR;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 return true; 183 return true;
184 } 184 }
185 185
186 void WebCursor::CleanupPlatformData() { 186 void WebCursor::CleanupPlatformData() {
187 return; 187 return;
188 } 188 }
189 189
190 void WebCursor::CopyPlatformData(const WebCursor& other) { 190 void WebCursor::CopyPlatformData(const WebCursor& other) {
191 return; 191 return;
192 } 192 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698