| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "sky/engine/core/dom/ExceptionCode.h" | 38 #include "sky/engine/core/dom/ExceptionCode.h" |
| 39 #include "sky/engine/core/dom/Node.h" | 39 #include "sky/engine/core/dom/Node.h" |
| 40 #include "sky/engine/core/editing/TextAffinity.h" | 40 #include "sky/engine/core/editing/TextAffinity.h" |
| 41 #include "sky/engine/core/frame/ConsoleTypes.h" | 41 #include "sky/engine/core/frame/ConsoleTypes.h" |
| 42 #include "sky/engine/core/frame/Settings.h" | 42 #include "sky/engine/core/frame/Settings.h" |
| 43 #include "sky/engine/core/loader/FrameLoaderTypes.h" | 43 #include "sky/engine/core/loader/FrameLoaderTypes.h" |
| 44 #include "sky/engine/core/loader/NavigationPolicy.h" | 44 #include "sky/engine/core/loader/NavigationPolicy.h" |
| 45 #include "sky/engine/core/page/PageVisibilityState.h" | 45 #include "sky/engine/core/page/PageVisibilityState.h" |
| 46 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" | 46 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 47 #include "sky/engine/platform/Cursor.h" | 47 #include "sky/engine/platform/Cursor.h" |
| 48 #include "sky/engine/platform/PlatformMouseEvent.h" | |
| 49 #include "sky/engine/platform/fonts/FontDescription.h" | 48 #include "sky/engine/platform/fonts/FontDescription.h" |
| 50 #include "sky/engine/platform/fonts/FontSmoothingMode.h" | 49 #include "sky/engine/platform/fonts/FontSmoothingMode.h" |
| 51 #include "sky/engine/platform/graphics/filters/FilterOperation.h" | 50 #include "sky/engine/platform/graphics/filters/FilterOperation.h" |
| 52 #include "sky/engine/platform/network/ResourceLoadPriority.h" | 51 #include "sky/engine/platform/network/ResourceLoadPriority.h" |
| 53 #include "sky/engine/platform/network/ResourceResponse.h" | 52 #include "sky/engine/platform/network/ResourceResponse.h" |
| 54 #include "sky/engine/platform/scroll/ScrollTypes.h" | 53 #include "sky/engine/platform/scroll/ScrollTypes.h" |
| 55 #include "sky/engine/platform/text/TextChecking.h" | 54 #include "sky/engine/platform/text/TextChecking.h" |
| 56 #include "sky/engine/platform/text/TextDecoration.h" | 55 #include "sky/engine/platform/text/TextDecoration.h" |
| 57 #include "sky/engine/platform/weborigin/ReferrerPolicy.h" | 56 #include "sky/engine/platform/weborigin/ReferrerPolicy.h" |
| 58 #include "sky/engine/public/platform/WebClipboard.h" | 57 #include "sky/engine/public/platform/WebClipboard.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight800, FontWeight800); | 151 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight800, FontWeight800); |
| 153 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight900, FontWeight900); | 152 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight900, FontWeight900); |
| 154 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightNormal, FontWeightNormal)
; | 153 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightNormal, FontWeightNormal)
; |
| 155 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightBold, FontWeightBold); | 154 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightBold, FontWeightBold); |
| 156 | 155 |
| 157 COMPILE_ASSERT_MATCHING_ENUM(WebNode::ElementNode, Node::ELEMENT_NODE); | 156 COMPILE_ASSERT_MATCHING_ENUM(WebNode::ElementNode, Node::ELEMENT_NODE); |
| 158 COMPILE_ASSERT_MATCHING_ENUM(WebNode::TextNode, Node::TEXT_NODE); | 157 COMPILE_ASSERT_MATCHING_ENUM(WebNode::TextNode, Node::TEXT_NODE); |
| 159 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentNode, Node::DOCUMENT_NODE); | 158 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentNode, Node::DOCUMENT_NODE); |
| 160 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentFragmentNode, Node::DOCUMENT_FRAGM
ENT_NODE); | 159 COMPILE_ASSERT_MATCHING_ENUM(WebNode::DocumentFragmentNode, Node::DOCUMENT_FRAGM
ENT_NODE); |
| 161 | 160 |
| 162 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonNone, NoButton); | |
| 163 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonLeft, LeftButton); | |
| 164 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonMiddle, MiddleButton); | |
| 165 COMPILE_ASSERT_MATCHING_ENUM(WebMouseEvent::ButtonRight, RightButton); | |
| 166 | |
| 167 COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityUpstream, UPSTREAM); | 161 COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityUpstream, UPSTREAM); |
| 168 COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityDownstream, DOWNSTREAM); | 162 COMPILE_ASSERT_MATCHING_ENUM(WebTextAffinityDownstream, DOWNSTREAM); |
| 169 | 163 |
| 170 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelli
ng); | 164 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelli
ng); |
| 171 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar
); | 165 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar
); |
| 172 | 166 |
| 173 // TODO(rouslan): Remove these comparisons between text-checking and text-decora
tion enum values after removing the | 167 // TODO(rouslan): Remove these comparisons between text-checking and text-decora
tion enum values after removing the |
| 174 // deprecated constructor WebTextCheckingResult(WebTextCheckingType). | 168 // deprecated constructor WebTextCheckingResult(WebTextCheckingType). |
| 175 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpel
ling); | 169 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpel
ling); |
| 176 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGramm
ar); | 170 COMPILE_ASSERT_MATCHING_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGramm
ar); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsCode, V8CacheOptionsCode
); | 219 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::V8CacheOptionsCode, V8CacheOptionsCode
); |
| 226 | 220 |
| 227 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone); | 221 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeNone, PointerTypeNone); |
| 228 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse); | 222 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeCoarse, PointerTypeCoarse); |
| 229 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine); | 223 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::PointerTypeFine, PointerTypeFine); |
| 230 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone); | 224 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeNone, HoverTypeNone); |
| 231 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand); | 225 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeOnDemand, HoverTypeOnDemand); |
| 232 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover); | 226 COMPILE_ASSERT_MATCHING_ENUM(WebSettings::HoverTypeHover, HoverTypeHover); |
| 233 | 227 |
| 234 } // namespace blink | 228 } // namespace blink |
| OLD | NEW |