| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 STATIC_ASSERT_ENUM(WebAXDescriptionFromUninitialized, AXDescriptionFromUninitial
ized); | 373 STATIC_ASSERT_ENUM(WebAXDescriptionFromUninitialized, AXDescriptionFromUninitial
ized); |
| 374 STATIC_ASSERT_ENUM(WebAXDescriptionFromAttribute, AXDescriptionFromAttribute); | 374 STATIC_ASSERT_ENUM(WebAXDescriptionFromAttribute, AXDescriptionFromAttribute); |
| 375 STATIC_ASSERT_ENUM(WebAXDescriptionFromContents, AXDescriptionFromContents); | 375 STATIC_ASSERT_ENUM(WebAXDescriptionFromContents, AXDescriptionFromContents); |
| 376 STATIC_ASSERT_ENUM(WebAXDescriptionFromPlaceholder, AXDescriptionFromPlaceholder
); | 376 STATIC_ASSERT_ENUM(WebAXDescriptionFromPlaceholder, AXDescriptionFromPlaceholder
); |
| 377 STATIC_ASSERT_ENUM(WebAXDescriptionFromRelatedElement, AXDescriptionFromRelatedE
lement); | 377 STATIC_ASSERT_ENUM(WebAXDescriptionFromRelatedElement, AXDescriptionFromRelatedE
lement); |
| 378 | 378 |
| 379 STATIC_ASSERT_ENUM(WebAXTextAffinityUpstream, TextAffinity::Upstream); | 379 STATIC_ASSERT_ENUM(WebAXTextAffinityUpstream, TextAffinity::Upstream); |
| 380 STATIC_ASSERT_ENUM(WebAXTextAffinityDownstream, TextAffinity::Downstream); | 380 STATIC_ASSERT_ENUM(WebAXTextAffinityDownstream, TextAffinity::Downstream); |
| 381 | 381 |
| 382 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Uncached, ApplicationCacheHost::UNCA
CHED); | 382 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Uncached, ApplicationCacheHost::kUnc
ached); |
| 383 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Idle, ApplicationCacheHost::IDLE); | 383 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Idle, ApplicationCacheHost::kIdle); |
| 384 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Checking, ApplicationCacheHost::CHEC
KING); | 384 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Checking, ApplicationCacheHost::kChe
cking); |
| 385 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Downloading, ApplicationCacheHost::D
OWNLOADING); | 385 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Downloading, ApplicationCacheHost::k
Downloading); |
| 386 STATIC_ASSERT_ENUM(WebApplicationCacheHost::UpdateReady, ApplicationCacheHost::U
PDATEREADY); | 386 STATIC_ASSERT_ENUM(WebApplicationCacheHost::UpdateReady, ApplicationCacheHost::k
Updateready); |
| 387 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Obsolete, ApplicationCacheHost::OBSO
LETE); | 387 STATIC_ASSERT_ENUM(WebApplicationCacheHost::Obsolete, ApplicationCacheHost::kObs
olete); |
| 388 STATIC_ASSERT_ENUM(WebApplicationCacheHost::CheckingEvent, ApplicationCacheHost:
:CHECKING_EVENT); | 388 STATIC_ASSERT_ENUM(WebApplicationCacheHost::CheckingEvent, ApplicationCacheHost:
:kCheckingEvent); |
| 389 STATIC_ASSERT_ENUM(WebApplicationCacheHost::ErrorEvent, ApplicationCacheHost::ER
ROR_EVENT); | 389 STATIC_ASSERT_ENUM(WebApplicationCacheHost::ErrorEvent, ApplicationCacheHost::kE
rrorEvent); |
| 390 STATIC_ASSERT_ENUM(WebApplicationCacheHost::NoUpdateEvent, ApplicationCacheHost:
:NOUPDATE_EVENT); | 390 STATIC_ASSERT_ENUM(WebApplicationCacheHost::NoUpdateEvent, ApplicationCacheHost:
:kNoupdateEvent); |
| 391 STATIC_ASSERT_ENUM(WebApplicationCacheHost::DownloadingEvent, ApplicationCacheHo
st::DOWNLOADING_EVENT); | 391 STATIC_ASSERT_ENUM(WebApplicationCacheHost::DownloadingEvent, ApplicationCacheHo
st::kDownloadingEvent); |
| 392 STATIC_ASSERT_ENUM(WebApplicationCacheHost::ProgressEvent, ApplicationCacheHost:
:PROGRESS_EVENT); | 392 STATIC_ASSERT_ENUM(WebApplicationCacheHost::ProgressEvent, ApplicationCacheHost:
:kProgressEvent); |
| 393 STATIC_ASSERT_ENUM(WebApplicationCacheHost::UpdateReadyEvent, ApplicationCacheHo
st::UPDATEREADY_EVENT); | 393 STATIC_ASSERT_ENUM(WebApplicationCacheHost::UpdateReadyEvent, ApplicationCacheHo
st::kUpdatereadyEvent); |
| 394 STATIC_ASSERT_ENUM(WebApplicationCacheHost::CachedEvent, ApplicationCacheHost::C
ACHED_EVENT); | 394 STATIC_ASSERT_ENUM(WebApplicationCacheHost::CachedEvent, ApplicationCacheHost::k
CachedEvent); |
| 395 STATIC_ASSERT_ENUM(WebApplicationCacheHost::ObsoleteEvent, ApplicationCacheHost:
:OBSOLETE_EVENT); | 395 STATIC_ASSERT_ENUM(WebApplicationCacheHost::ObsoleteEvent, ApplicationCacheHost:
:kObsoleteEvent); |
| 396 | 396 |
| 397 STATIC_ASSERT_ENUM(WebClientRedirectPolicy::NotClientRedirect, ClientRedirectPol
icy::NotClientRedirect); | 397 STATIC_ASSERT_ENUM(WebClientRedirectPolicy::NotClientRedirect, ClientRedirectPol
icy::NotClientRedirect); |
| 398 STATIC_ASSERT_ENUM(WebClientRedirectPolicy::ClientRedirect, ClientRedirectPolicy
::ClientRedirect); | 398 STATIC_ASSERT_ENUM(WebClientRedirectPolicy::ClientRedirect, ClientRedirectPolicy
::ClientRedirect); |
| 399 | 399 |
| 400 STATIC_ASSERT_ENUM(WebCursorInfo::TypePointer, Cursor::Pointer); | 400 STATIC_ASSERT_ENUM(WebCursorInfo::TypePointer, Cursor::Pointer); |
| 401 STATIC_ASSERT_ENUM(WebCursorInfo::TypeCross, Cursor::Cross); | 401 STATIC_ASSERT_ENUM(WebCursorInfo::TypeCross, Cursor::Cross); |
| 402 STATIC_ASSERT_ENUM(WebCursorInfo::TypeHand, Cursor::Hand); | 402 STATIC_ASSERT_ENUM(WebCursorInfo::TypeHand, Cursor::Hand); |
| 403 STATIC_ASSERT_ENUM(WebCursorInfo::TypeIBeam, Cursor::IBeam); | 403 STATIC_ASSERT_ENUM(WebCursorInfo::TypeIBeam, Cursor::IBeam); |
| 404 STATIC_ASSERT_ENUM(WebCursorInfo::TypeWait, Cursor::Wait); | 404 STATIC_ASSERT_ENUM(WebCursorInfo::TypeWait, Cursor::Wait); |
| 405 STATIC_ASSERT_ENUM(WebCursorInfo::TypeHelp, Cursor::Help); | 405 STATIC_ASSERT_ENUM(WebCursorInfo::TypeHelp, Cursor::Help); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 STATIC_ASSERT_ENUM(WebInputEvent::IsRight, PlatformEvent::IsRight); | 489 STATIC_ASSERT_ENUM(WebInputEvent::IsRight, PlatformEvent::IsRight); |
| 490 STATIC_ASSERT_ENUM(WebInputEvent::IsTouchAccessibility, PlatformEvent::IsTouchAc
cessibility); | 490 STATIC_ASSERT_ENUM(WebInputEvent::IsTouchAccessibility, PlatformEvent::IsTouchAc
cessibility); |
| 491 STATIC_ASSERT_ENUM(WebInputEvent::IsComposing, PlatformEvent::IsComposing); | 491 STATIC_ASSERT_ENUM(WebInputEvent::IsComposing, PlatformEvent::IsComposing); |
| 492 STATIC_ASSERT_ENUM(WebInputEvent::LeftButtonDown, PlatformEvent::LeftButtonDown)
; | 492 STATIC_ASSERT_ENUM(WebInputEvent::LeftButtonDown, PlatformEvent::LeftButtonDown)
; |
| 493 STATIC_ASSERT_ENUM(WebInputEvent::MiddleButtonDown, PlatformEvent::MiddleButtonD
own); | 493 STATIC_ASSERT_ENUM(WebInputEvent::MiddleButtonDown, PlatformEvent::MiddleButtonD
own); |
| 494 STATIC_ASSERT_ENUM(WebInputEvent::RightButtonDown, PlatformEvent::RightButtonDow
n); | 494 STATIC_ASSERT_ENUM(WebInputEvent::RightButtonDown, PlatformEvent::RightButtonDow
n); |
| 495 STATIC_ASSERT_ENUM(WebInputEvent::CapsLockOn, PlatformEvent::CapsLockOn); | 495 STATIC_ASSERT_ENUM(WebInputEvent::CapsLockOn, PlatformEvent::CapsLockOn); |
| 496 STATIC_ASSERT_ENUM(WebInputEvent::NumLockOn, PlatformEvent::NumLockOn); | 496 STATIC_ASSERT_ENUM(WebInputEvent::NumLockOn, PlatformEvent::NumLockOn); |
| 497 STATIC_ASSERT_ENUM(WebInputEvent::ScrollLockOn, PlatformEvent::ScrollLockOn); | 497 STATIC_ASSERT_ENUM(WebInputEvent::ScrollLockOn, PlatformEvent::ScrollLockOn); |
| 498 | 498 |
| 499 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveNothing, HTMLMediaElement::HAVE
_NOTHING); | 499 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveNothing, HTMLMediaElement::kHav
eNothing); |
| 500 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveMetadata, HTMLMediaElement::HAV
E_METADATA); | 500 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveMetadata, HTMLMediaElement::kHa
veMetadata); |
| 501 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveCurrentData, HTMLMediaElement::
HAVE_CURRENT_DATA); | 501 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveCurrentData, HTMLMediaElement::
kHaveCurrentData); |
| 502 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveFutureData, HTMLMediaElement::H
AVE_FUTURE_DATA); | 502 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveFutureData, HTMLMediaElement::k
HaveFutureData); |
| 503 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveEnoughData, HTMLMediaElement::H
AVE_ENOUGH_DATA); | 503 STATIC_ASSERT_ENUM(WebMediaPlayer::ReadyStateHaveEnoughData, HTMLMediaElement::k
HaveEnoughData); |
| 504 | 504 |
| 505 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonNone, NoButton); | 505 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonNone, NoButton); |
| 506 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonLeft, LeftButton); | 506 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonLeft, LeftButton); |
| 507 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonMiddle, MiddleButton); | 507 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonMiddle, MiddleButton); |
| 508 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonRight, RightButton); | 508 STATIC_ASSERT_ENUM(WebMouseEvent::ButtonRight, RightButton); |
| 509 | 509 |
| 510 STATIC_ASSERT_ENUM(WebScrollbar::Horizontal, HorizontalScrollbar); | 510 STATIC_ASSERT_ENUM(WebScrollbar::Horizontal, HorizontalScrollbar); |
| 511 STATIC_ASSERT_ENUM(WebScrollbar::Vertical, VerticalScrollbar); | 511 STATIC_ASSERT_ENUM(WebScrollbar::Vertical, VerticalScrollbar); |
| 512 | 512 |
| 513 STATIC_ASSERT_ENUM(WebScrollbar::ScrollByLine, ScrollByLine); | 513 STATIC_ASSERT_ENUM(WebScrollbar::ScrollByLine, ScrollByLine); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 STATIC_ASSERT_ENUM(WebIDBMetadata::NoVersion, IDBDatabaseMetadata::NoVersion); | 568 STATIC_ASSERT_ENUM(WebIDBMetadata::NoVersion, IDBDatabaseMetadata::NoVersion); |
| 569 | 569 |
| 570 STATIC_ASSERT_ENUM(WebFileSystem::TypeTemporary, FileSystemTypeTemporary); | 570 STATIC_ASSERT_ENUM(WebFileSystem::TypeTemporary, FileSystemTypeTemporary); |
| 571 STATIC_ASSERT_ENUM(WebFileSystem::TypePersistent, FileSystemTypePersistent); | 571 STATIC_ASSERT_ENUM(WebFileSystem::TypePersistent, FileSystemTypePersistent); |
| 572 STATIC_ASSERT_ENUM(WebFileSystem::TypeExternal, FileSystemTypeExternal); | 572 STATIC_ASSERT_ENUM(WebFileSystem::TypeExternal, FileSystemTypeExternal); |
| 573 STATIC_ASSERT_ENUM(WebFileSystem::TypeIsolated, FileSystemTypeIsolated); | 573 STATIC_ASSERT_ENUM(WebFileSystem::TypeIsolated, FileSystemTypeIsolated); |
| 574 STATIC_ASSERT_ENUM(WebFileInfo::TypeUnknown, FileMetadata::TypeUnknown); | 574 STATIC_ASSERT_ENUM(WebFileInfo::TypeUnknown, FileMetadata::TypeUnknown); |
| 575 STATIC_ASSERT_ENUM(WebFileInfo::TypeFile, FileMetadata::TypeFile); | 575 STATIC_ASSERT_ENUM(WebFileInfo::TypeFile, FileMetadata::TypeFile); |
| 576 STATIC_ASSERT_ENUM(WebFileInfo::TypeDirectory, FileMetadata::TypeDirectory); | 576 STATIC_ASSERT_ENUM(WebFileInfo::TypeDirectory, FileMetadata::TypeDirectory); |
| 577 | 577 |
| 578 STATIC_ASSERT_ENUM(WebFileErrorNotFound, FileError::NOT_FOUND_ERR); | 578 STATIC_ASSERT_ENUM(WebFileErrorNotFound, FileError::kNotFoundErr); |
| 579 STATIC_ASSERT_ENUM(WebFileErrorSecurity, FileError::SECURITY_ERR); | 579 STATIC_ASSERT_ENUM(WebFileErrorSecurity, FileError::kSecurityErr); |
| 580 STATIC_ASSERT_ENUM(WebFileErrorAbort, FileError::ABORT_ERR); | 580 STATIC_ASSERT_ENUM(WebFileErrorAbort, FileError::kAbortErr); |
| 581 STATIC_ASSERT_ENUM(WebFileErrorNotReadable, FileError::NOT_READABLE_ERR); | 581 STATIC_ASSERT_ENUM(WebFileErrorNotReadable, FileError::kNotReadableErr); |
| 582 STATIC_ASSERT_ENUM(WebFileErrorEncoding, FileError::ENCODING_ERR); | 582 STATIC_ASSERT_ENUM(WebFileErrorEncoding, FileError::kEncodingErr); |
| 583 STATIC_ASSERT_ENUM(WebFileErrorNoModificationAllowed, FileError::NO_MODIFICATION
_ALLOWED_ERR); | 583 STATIC_ASSERT_ENUM(WebFileErrorNoModificationAllowed, FileError::kNoModification
AllowedErr); |
| 584 STATIC_ASSERT_ENUM(WebFileErrorInvalidState, FileError::INVALID_STATE_ERR); | 584 STATIC_ASSERT_ENUM(WebFileErrorInvalidState, FileError::kInvalidStateErr); |
| 585 STATIC_ASSERT_ENUM(WebFileErrorSyntax, FileError::SYNTAX_ERR); | 585 STATIC_ASSERT_ENUM(WebFileErrorSyntax, FileError::kSyntaxErr); |
| 586 STATIC_ASSERT_ENUM(WebFileErrorInvalidModification, FileError::INVALID_MODIFICAT
ION_ERR); | 586 STATIC_ASSERT_ENUM(WebFileErrorInvalidModification, FileError::kInvalidModificat
ionErr); |
| 587 STATIC_ASSERT_ENUM(WebFileErrorQuotaExceeded, FileError::QUOTA_EXCEEDED_ERR); | 587 STATIC_ASSERT_ENUM(WebFileErrorQuotaExceeded, FileError::kQuotaExceededErr); |
| 588 STATIC_ASSERT_ENUM(WebFileErrorTypeMismatch, FileError::TYPE_MISMATCH_ERR); | 588 STATIC_ASSERT_ENUM(WebFileErrorTypeMismatch, FileError::kTypeMismatchErr); |
| 589 STATIC_ASSERT_ENUM(WebFileErrorPathExists, FileError::PATH_EXISTS_ERR); | 589 STATIC_ASSERT_ENUM(WebFileErrorPathExists, FileError::kPathExistsErr); |
| 590 | 590 |
| 591 STATIC_ASSERT_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelling); | 591 STATIC_ASSERT_ENUM(WebTextCheckingTypeSpelling, TextCheckingTypeSpelling); |
| 592 STATIC_ASSERT_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar); | 592 STATIC_ASSERT_ENUM(WebTextCheckingTypeGrammar, TextCheckingTypeGrammar); |
| 593 | 593 |
| 594 // TODO(rouslan): Remove these comparisons between text-checking and text-decora
tion enum values after removing the | 594 // TODO(rouslan): Remove these comparisons between text-checking and text-decora
tion enum values after removing the |
| 595 // deprecated constructor WebTextCheckingResult(WebTextCheckingType). | 595 // deprecated constructor WebTextCheckingResult(WebTextCheckingType). |
| 596 STATIC_ASSERT_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpelling); | 596 STATIC_ASSERT_ENUM(WebTextCheckingTypeSpelling, TextDecorationTypeSpelling); |
| 597 STATIC_ASSERT_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGrammar); | 597 STATIC_ASSERT_ENUM(WebTextCheckingTypeGrammar, TextDecorationTypeGrammar); |
| 598 | 598 |
| 599 STATIC_ASSERT_ENUM(WebTextDecorationTypeSpelling, TextDecorationTypeSpelling); | 599 STATIC_ASSERT_ENUM(WebTextDecorationTypeSpelling, TextDecorationTypeSpelling); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 STATIC_ASSERT_ENUM(FrameDetachType::Swap, WebRemoteFrameClient::DetachType::Swap
); | 757 STATIC_ASSERT_ENUM(FrameDetachType::Swap, WebRemoteFrameClient::DetachType::Swap
); |
| 758 | 758 |
| 759 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::LoadEvent, ProgressBarCom
pletion::LoadEvent); | 759 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::LoadEvent, ProgressBarCom
pletion::LoadEvent); |
| 760 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::ResourcesBeforeDCL, Progr
essBarCompletion::ResourcesBeforeDCL); | 760 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::ResourcesBeforeDCL, Progr
essBarCompletion::ResourcesBeforeDCL); |
| 761 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::DOMContentLoaded, Progres
sBarCompletion::DOMContentLoaded); | 761 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::DOMContentLoaded, Progres
sBarCompletion::DOMContentLoaded); |
| 762 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::ResourcesBeforeDCLAndSame
OriginIFrames, ProgressBarCompletion::ResourcesBeforeDCLAndSameOriginIFrames); | 762 STATIC_ASSERT_ENUM(WebSettings::ProgressBarCompletion::ResourcesBeforeDCLAndSame
OriginIFrames, ProgressBarCompletion::ResourcesBeforeDCLAndSameOriginIFrames); |
| 763 | 763 |
| 764 static_assert(kSerializedScriptValueVersion == SerializedScriptValue::wireFormat
Version, ""); | 764 static_assert(kSerializedScriptValueVersion == SerializedScriptValue::wireFormat
Version, ""); |
| 765 | 765 |
| 766 } // namespace blink | 766 } // namespace blink |
| OLD | NEW |