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

Side by Side Diff: sky/engine/core/rendering/style/RenderStyleConstants.h

Issue 1076623002: Remove our impressive amount of CSS Cursor code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 }; 289 };
290 290
291 enum ECaptionSide { 291 enum ECaptionSide {
292 CAPTOP, CAPBOTTOM, CAPLEFT, CAPRIGHT 292 CAPTOP, CAPBOTTOM, CAPLEFT, CAPRIGHT
293 }; 293 };
294 294
295 enum EListStylePosition { OUTSIDE, INSIDE }; 295 enum EListStylePosition { OUTSIDE, INSIDE };
296 296
297 enum EVisibility { VISIBLE, HIDDEN, COLLAPSE }; 297 enum EVisibility { VISIBLE, HIDDEN, COLLAPSE };
298 298
299 enum ECursor {
300 // The following must match the order in CSSValueKeywords.in.
301 CURSOR_AUTO,
302 CURSOR_CROSS,
303 CURSOR_DEFAULT,
304 CURSOR_POINTER,
305 CURSOR_MOVE,
306 CURSOR_VERTICAL_TEXT,
307 CURSOR_CELL,
308 CURSOR_CONTEXT_MENU,
309 CURSOR_ALIAS,
310 CURSOR_PROGRESS,
311 CURSOR_NO_DROP,
312 CURSOR_NOT_ALLOWED,
313 CURSOR_ZOOM_IN,
314 CURSOR_ZOOM_OUT,
315 CURSOR_E_RESIZE,
316 CURSOR_NE_RESIZE,
317 CURSOR_NW_RESIZE,
318 CURSOR_N_RESIZE,
319 CURSOR_SE_RESIZE,
320 CURSOR_SW_RESIZE,
321 CURSOR_S_RESIZE,
322 CURSOR_W_RESIZE,
323 CURSOR_EW_RESIZE,
324 CURSOR_NS_RESIZE,
325 CURSOR_NESW_RESIZE,
326 CURSOR_NWSE_RESIZE,
327 CURSOR_COL_RESIZE,
328 CURSOR_ROW_RESIZE,
329 CURSOR_TEXT,
330 CURSOR_WAIT,
331 CURSOR_HELP,
332 CURSOR_ALL_SCROLL,
333 CURSOR_WEBKIT_GRAB,
334 CURSOR_WEBKIT_GRABBING,
335
336 // The following are handled as exceptions so don't need to match.
337 CURSOR_COPY,
338 CURSOR_NONE
339 };
340
341 // The order of this enum must match the order of the display values in CSSValue Keywords.in. 299 // The order of this enum must match the order of the display values in CSSValue Keywords.in.
342 enum EDisplay { 300 enum EDisplay {
343 INLINE, PARAGRAPH, 301 INLINE, PARAGRAPH,
344 FLEX, INLINE_FLEX, 302 FLEX, INLINE_FLEX,
345 NONE, 303 NONE,
346 }; 304 };
347 305
348 enum EPointerEvents { 306 enum EPointerEvents {
349 PE_NONE, PE_AUTO, PE_STROKE, PE_FILL, PE_PAINTED, PE_VISIBLE, 307 PE_NONE, PE_AUTO, PE_STROKE, PE_FILL, PE_PAINTED, PE_VISIBLE,
350 PE_VISIBLE_STROKE, PE_VISIBLE_FILL, PE_VISIBLE_PAINTED, PE_BOUNDINGBOX, 308 PE_VISIBLE_STROKE, PE_VISIBLE_FILL, PE_VISIBLE_PAINTED, PE_BOUNDINGBOX,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 static const float maximumAllowedFontSize = 1000000.0f; 389 static const float maximumAllowedFontSize = 1000000.0f;
432 390
433 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine }; 391 enum TextIndentLine { TextIndentFirstLine, TextIndentEachLine };
434 enum TextIndentType { TextIndentNormal, TextIndentHanging }; 392 enum TextIndentType { TextIndentNormal, TextIndentHanging };
435 393
436 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox } ; 394 enum CSSBoxType { BoxMissing = 0, MarginBox, BorderBox, PaddingBox, ContentBox } ;
437 395
438 } // namespace blink 396 } // namespace blink
439 397
440 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLECONSTANTS_H_ 398 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_RENDERSTYLECONSTANTS_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/style/RenderStyle.cpp ('k') | sky/engine/core/rendering/style/StylePendingImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698