1. 22 Sep, 2013 1 commit
  2. 21 Oct, 2011 1 commit
    • abarth@webkit.org's avatar
      Event.h shouldn't need to know about every ifdef and feature that uses events · 090fa4b0
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70483
      
      Reviewed by Eric Seidel.
      
      This patch expands make_event_factory.pl to create a
      DOM_EVENT_INTERFACES_FOR_EACH macro that we can use to generate code
      for each Event interface.  We then apply that macro to removing a large
      number of virtual functions on Event.  Instead of having a Boolean
      virtual function for each subclass of Event, we have a single virtual
      interfaceName function, which returns an AtomicString.  We then use the
      AtomicString to jump through a HashMap to find the appropriate
      JavaScript wrapper type.
      
      This patch does not remove all of the Boolean virtual functions because
      I got exhausted making all of these edits, but I did remove all the
      ones that involve ifdefs.  A future patch will remove more.
      
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSEventCustom.cpp:
      (WebCore::toJS):
      * bindings/v8/custom/V8EventCustom.cpp:
      (WebCore::toV8):
      * dom/BeforeLoadEvent.h:
      (WebCore::BeforeLoadEvent::interfaceName):
      (WebCore::BeforeLoadEvent::isBeforeLoadEvent):
      * dom/BeforeTextInsertedEvent.cpp:
      (WebCore::BeforeTextInsertedEvent::interfaceName):
      * dom/BeforeTextInsertedEvent.h:
      * dom/ClipboardEvent.cpp:
      (WebCore::ClipboardEvent::interfaceName):
      * dom/ClipboardEvent.h:
      * dom/CompositionEvent.cpp:
      (WebCore::CompositionEvent::interfaceName):
      * dom/CompositionEvent.h:
      * dom/CustomEvent.cpp:
      (WebCore::CustomEvent::interfaceName):
      * dom/CustomEvent.h:
      * dom/DeviceMotionEvent.cpp:
      (WebCore::DeviceMotionEvent::interfaceName):
      * dom/DeviceMotionEvent.h:
      * dom/DeviceOrientationEvent.cpp:
      (WebCore::DeviceOrientationEvent::interfaceName):
      * dom/DeviceOrientationEvent.h:
      * dom/ErrorEvent.cpp:
      (WebCore::ErrorEvent::interfaceName):
      * dom/ErrorEvent.h:
      * dom/Event.cpp:
      (WebCore::Event::interfaceName):
      * dom/Event.h:
      * dom/EventNames.cpp:
      (WebCore::EventNames::EventNames):
      * dom/EventNames.h:
      * dom/HashChangeEvent.h:
      (WebCore::HashChangeEvent::interfaceName):
      * dom/KeyboardEvent.cpp:
      (WebCore::KeyboardEvent::interfaceName):
      * dom/KeyboardEvent.h:
      * dom/MessageEvent.cpp:
      (WebCore::MessageEvent::interfaceName):
      * dom/MessageEvent.h:
      * dom/MouseEvent.cpp:
      (WebCore::MouseEvent::interfaceName):
      * dom/MouseEvent.h:
      * dom/MutationEvent.cpp:
      (WebCore::MutationEvent::interfaceName):
      * dom/MutationEvent.h:
      * dom/OverflowEvent.cpp:
      (WebCore::OverflowEvent::interfaceName):
      * dom/OverflowEvent.h:
      * dom/PageTransitionEvent.cpp:
      (WebCore::PageTransitionEvent::interfaceName):
      * dom/PageTransitionEvent.h:
      * dom/PopStateEvent.cpp:
      (WebCore::PopStateEvent::interfaceName):
      * dom/PopStateEvent.h:
      * dom/ProgressEvent.cpp:
      (WebCore::ProgressEvent::interfaceName):
      * dom/ProgressEvent.h:
      * dom/TextEvent.cpp:
      (WebCore::TextEvent::interfaceName):
      * dom/TextEvent.h:
      * dom/TouchEvent.cpp:
      (WebCore::TouchEvent::interfaceName):
      * dom/TouchEvent.h:
      * dom/UIEvent.h:
      * dom/WebKitAnimationEvent.cpp:
      (WebCore::WebKitAnimationEvent::interfaceName):
      * dom/WebKitAnimationEvent.h:
      * dom/WebKitTransitionEvent.cpp:
      (WebCore::WebKitTransitionEvent::interfaceName):
      * dom/WebKitTransitionEvent.h:
      * dom/WheelEvent.cpp:
      (WebCore::WheelEvent::interfaceName):
      * dom/WheelEvent.h:
      * dom/make_event_factory.pl:
      (printFactoryFile):
      (printMacroFile):
      (printHeadersFile):
      * html/canvas/WebGLContextEvent.cpp:
      (WebCore::WebGLContextEvent::interfaceName):
      * html/canvas/WebGLContextEvent.h:
      * inspector/InspectorDOMStorageResource.cpp:
      (WebCore::InspectorDOMStorageResource::handleEvent):
      * p2p/MediaStreamEvent.cpp:
      (WebCore::MediaStreamEvent::interfaceName):
      * p2p/MediaStreamEvent.h:
      * page/SpeechInputEvent.cpp:
      (WebCore::SpeechInputEvent::interfaceName):
      * page/SpeechInputEvent.h:
      * storage/IDBVersionChangeEvent.cpp:
      (WebCore::IDBVersionChangeEvent::interfaceName):
      * storage/IDBVersionChangeEvent.h:
      * storage/StorageEvent.cpp:
      (WebCore::StorageEvent::interfaceName):
      * storage/StorageEvent.h:
      * svg/SVGZoomEvent.cpp:
      (WebCore::SVGZoomEvent::interfaceName):
      * svg/SVGZoomEvent.h:
      * webaudio/AudioProcessingEvent.cpp:
      (WebCore::AudioProcessingEvent::interfaceName):
      * webaudio/AudioProcessingEvent.h:
      * webaudio/OfflineAudioCompletionEvent.cpp:
      (WebCore::OfflineAudioCompletionEvent::interfaceName):
      * webaudio/OfflineAudioCompletionEvent.h:
      * websockets/CloseEvent.h:
      (WebCore::CloseEvent::interfaceName):
      * xml/XMLHttpRequestProgressEvent.h:
      (WebCore::XMLHttpRequestProgressEvent::interfaceName):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      090fa4b0
  3. 04 Sep, 2011 1 commit
    • weinig@apple.com's avatar
      Document.createEvent should support all the interfaces of Event we got · 1a8cc9d9
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=67568
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Updated fast/events/event-creation.html
      
      * dom/BeforeLoadEvent.h:
      (WebCore::BeforeLoadEvent::create):
      (WebCore::BeforeLoadEvent::BeforeLoadEvent):
      Added empty create.
              
      * dom/Document.cpp:
      (WebCore::Document::createEvent):
      Add missing interfaces.
      
      * dom/HashChangeEvent.h:
      (WebCore::HashChangeEvent::create):
      (WebCore::HashChangeEvent::HashChangeEvent):
      Added empty create.
      
      * page/SpeechInputEvent.cpp:
      (WebCore::SpeechInputEvent::create):
      (WebCore::SpeechInputEvent::SpeechInputEvent):
      (WebCore::SpeechInputEvent::~SpeechInputEvent):
      * page/SpeechInputEvent.h:
      Added empty create.
      
      LayoutTests: 
      
      * fast/events/event-creation.html:
      Converted to shouldBe style test, changed prototype check to us instanceof and constructor check,
      added enumeration based catchall.
      
      * fast/events/event-instanceof-expected.txt: Removed.
      * fast/events/event-instanceof.html: Removed.
      * fast/events/script-tests/event-instanceof.js: Removed.
      Moved contents to fast/events/event-creation.html.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a8cc9d9
  4. 08 Jan, 2011 1 commit
  5. 23 Nov, 2010 1 commit
    • satish@chromium.org's avatar
      2010-11-18 Satish Sampath <satish@chromium.org> · a739a241
      satish@chromium.org authored
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              * fast/speech/input-onspeechchange-event-expected.txt: Added.
              * fast/speech/input-onspeechchange-event.html: New test to check multiple results.
              * fast/speech/input-text-language-tag.html: Updated with new method signature.
              * fast/speech/input-text-speechbutton.html: Ditto.
              * fast/speech/speech-button-ignore-generated-events.html: Ditto.
      2010-11-18  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              Currently the speech input event 'onwebkitspeechchange' receives no parameters. WebCore already
              has the full list of recognition results and populates only the top result into the input field
              automatically. In this patch we pass a SpeechInputEvent object to the event handler, and the JS
              code can access the full list of results via "event.results.length", "results[i].utterance" and
              "results[i].confidence". Also updated mock object with appropriate methods to test multiple results.
      
              Test: fast/speech/input-onspeechchange-event.html
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pri:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS): Added new event
              * bindings/v8/custom/V8EventCustom.cpp:
              (WebCore::toV8): Added new event
              * dom/Event.cpp:
              (WebCore::Event::isSpeechInputEvent):
              * dom/Event.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLInputElement.h:
              * page/SpeechInputEvent.h: New file implementing SpeechInputEvent.idl
              (WebCore::SpeechInputEvent::~SpeechInputEvent):
              (WebCore::SpeechInputEvent::create):
              (WebCore::SpeechInputEvent::isSpeechInputEvent):
              (WebCore::SpeechInputEvent::results):
              (WebCore::SpeechInputEvent::SpeechInputEvent):
              * page/SpeechInputEvent.idl: New file defining SpeechInputEvent object
              * page/SpeechInputListener.h:
              * page/SpeechInputResult.cpp:
              (WebCore::SpeechInputResult::create):
              * page/SpeechInputResult.h:
              * page/SpeechInputResult.idl: New file defining a single SpeechInputResult object
              * page/SpeechInputResultList.h: New file implementing SpeechInputResultList.idl
              (WebCore::SpeechInputResultList::create):
              (WebCore::SpeechInputResultList::length):
              (WebCore::SpeechInputResultList::item):
              (WebCore::SpeechInputResultList::SpeechInputResultList):
              * page/SpeechInputResultList.idl: New file defining a list of SpeechInputResult objects
              * platform/mock/SpeechInputClientMock.cpp:
              (WebCore::SpeechInputClientMock::addRecognitionResult): Renamed method and added one parameter.
              (WebCore::SpeechInputClientMock::clearResults):
              (WebCore::SpeechInputClientMock::timerFired):
              * platform/mock/SpeechInputClientMock.h:
              * rendering/TextControlInnerElements.cpp:
              (WebCore::InputFieldSpeechButtonElement::setRecognitionResult): Pass new event object to handler.
      2010-11-18  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              Updated mock object's method to new signature.
      
              * public/WebSpeechInputControllerMock.h:
              * src/WebSpeechInputControllerMockImpl.cpp:
              (WebKit::WebSpeechInputControllerMockImpl::addMockRecognitionResult):
              * src/WebSpeechInputControllerMockImpl.h:
      2010-11-18  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Jeremy Orlow.
      
              For speech input event, send an event object containing all the recognition results and metadata.
              https://bugs.webkit.org/show_bug.cgi?id=49736
      
              Updated DRT by renaming the mock result method on all platforms to the new signature.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (addMockSpeechInputResultCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::addMockSpeechInputResult):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::addMockSpeechInputResult):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a739a241
  6. 26 Oct, 2010 1 commit
    • tkent@chromium.org's avatar
      2010-10-25 Kent Tamura <tkent@chromium.org> · 61684f1a
      tkent@chromium.org authored
              Reviewed by Darin Adler.
      
              Refactor HTMLInputElement: Move createRender(), appendFormData(),
              saveFormControlState() and restoreFormControlState() to InputTypes.
              https://bugs.webkit.org/show_bug.cgi?id=47834
      
              This change adds BaseButtonInputType and BaseCheckableInputType. They
              are super classes of some concrete InputType classes.
      
              No new tests. Just a code refactoring.
      
              * CMakeLists.txt: Add BaseButtonInputType and BaseCheckableInputType files.
              * GNUmakefile.am: ditto.
              * WebCore.gypi: ditto.
              * WebCore.pro: ditto.
              * WebCore.vcproj/WebCore.vcproj: ditto.
              * WebCore.xcodeproj/project.pbxproj: ditto.
              * html/BaseButtonInputType.cpp: Added.
              (WebCore::BaseButtonInputType::appendFormData):
              (WebCore::BaseButtonInputType::createRenderer):
              * html/BaseButtonInputType.h: Added.
              (WebCore::BaseButtonInputType::BaseButtonInputType):
              * html/BaseCheckableInputType.cpp: Added.
              (WebCore::BaseCheckableInputType::saveFormControlState):
              (WebCore::BaseCheckableInputType::restoreFormControlState):
              (WebCore::BaseCheckableInputType::appendFormData):
              * html/BaseCheckableInputType.h: Added.
              (WebCore::BaseCheckableInputType::BaseCheckableInputType):
              * html/ButtonInputType.h: Change the super class.
              (WebCore::ButtonInputType::ButtonInputType):
              * html/CheckboxInputType.h: Change the super class.
              (WebCore::CheckboxInputType::CheckboxInputType):
              * html/FileInputType.cpp:
              (WebCore::FileInputType::appendFormData):
              (WebCore::FileInputType::createRenderer):
              * html/FileInputType.h: Change the super class.
              (WebCore::FileInputType::FileInputType):
              * html/HTMLFormControlElement.h:
                Make placeholderShouldBeVisible() public for access from TextFieldInputType.
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::saveFormControlState):
              (WebCore::HTMLInputElement::restoreFormControlState):
              (WebCore::HTMLInputElement::createRenderer):
              (WebCore::HTMLInputElement::appendFormData):
              * html/HTMLInputElement.h:
                Add the following functions for ImageInputType and SubmitInputType.
              (WebCore::HTMLInputElement::xPosition):
              (WebCore::HTMLInputElement::yPosition):
              * html/HiddenInputType.cpp:
              (WebCore::HiddenInputType::createRenderer):
              * html/HiddenInputType.h:
              * html/ImageInputType.cpp:
              (WebCore::ImageInputType::isFormDataAppendable):
              (WebCore::ImageInputType::appendFormData):
              (WebCore::ImageInputType::createRenderer):
              * html/ImageInputType.h: Change the super class.
              (WebCore::ImageInputType::ImageInputType):
              * html/InputType.cpp:
              (WebCore::InputType::saveFormControlState):
              (WebCore::InputType::restoreFormControlState):
              (WebCore::InputType::isFormDataAppendable):
              (WebCore::InputType::appendFormData):
              (WebCore::InputType::createRenderer):
              * html/InputType.h:
              * html/PasswordInputType.cpp:
              (WebCore::PasswordInputType::saveFormControlState):
              (WebCore::PasswordInputType::restoreFormControlState):
              * html/PasswordInputType.h:
              * html/RadioInputType.h: Change the super class.
              (WebCore::RadioInputType::RadioInputType):
              * html/RangeInputType.cpp:
              (WebCore::RangeInputType::createRenderer):
              * html/RangeInputType.h:
              * html/ResetInputType.h:
              (WebCore::ResetInputType::ResetInputType):
              * html/SubmitInputType.cpp:
              (WebCore::SubmitInputType::appendFormData):
              * html/SubmitInputType.h: Change the super class.
              (WebCore::SubmitInputType::SubmitInputType):
              * html/TextFieldInputType.cpp:
              (WebCore::TextFieldInputType::createRenderer):
              * html/TextFieldInputType.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61684f1a
  7. 09 Oct, 2010 1 commit
    • tkent@chromium.org's avatar
      Refactor HTMLInputElement: Move typeMismatch(), valueMissing(), · 99c09d4c
      tkent@chromium.org authored
      isRequiredFormControl(), and recalcWillValidate()
      https://bugs.webkit.org/show_bug.cgi?id=47405
      
      Reviewed by Dimitri Glazkov.
      
      Also make checkedRadioButtons() an inline member function of
      HTMLInputElement in order that RadioInputType can use it.
      
      * html/BaseDateAndTimeInputType.cpp:
      (WebCore::BaseDateAndTimeInputType::typeMismatchFor):
      (WebCore::BaseDateAndTimeInputType::typeMismatch):
      * html/BaseDateAndTimeInputType.h:
      * html/ButtonInputType.cpp:
      (WebCore::ButtonInputType::supportsValidation):
      * html/ButtonInputType.h:
      * html/CheckboxInputType.cpp:
      (WebCore::CheckboxInputType::valueMissing):
      * html/CheckboxInputType.h:
      * html/ColorInputType.cpp:
      (WebCore::isValidColorString):
      (WebCore::ColorInputType::typeMismatchFor):
      (WebCore::ColorInputType::typeMismatch):
      (WebCore::ColorInputType::supportsRequired):
      * html/ColorInputType.h:
      * html/EmailInputType.cpp:
      (WebCore::isValidEmailAddress):
      (WebCore::EmailInputType::typeMismatchFor):
      (WebCore::EmailInputType::typeMismatch):
      * html/EmailInputType.h:
      * html/FileInputType.cpp:
      (WebCore::FileInputType::valueMissing):
      * html/FileInputType.h:
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::updateCheckedRadioButtons):
      (WebCore::HTMLInputElement::isValidValue):
      (WebCore::HTMLInputElement::typeMismatch):
      (WebCore::HTMLInputElement::valueMissing):
      (WebCore::HTMLInputElement::isKeyboardFocusable):
      (WebCore::HTMLInputElement::updateType):
      (WebCore::HTMLInputElement::parseMappedAttribute):
      (WebCore::HTMLInputElement::setChecked):
      (WebCore::HTMLInputElement::preDispatchEventHandler):
      (WebCore::HTMLInputElement::isRequiredFormControl):
      (WebCore::HTMLInputElement::recalcWillValidate):
      * html/HTMLInputElement.h:
      (WebCore::HTMLInputElement::checkedRadioButtons):
      * html/HiddenInputType.cpp:
      (WebCore::HiddenInputType::supportsValidation):
      * html/HiddenInputType.h:
      * html/ImageInputType.cpp:
      (WebCore::ImageInputType::supportsValidation):
      * html/ImageInputType.h:
      * html/InputType.cpp:
      (WebCore::InputType::supportsValidation):
      (WebCore::InputType::typeMismatchFor):
      (WebCore::InputType::typeMismatch):
      (WebCore::InputType::supportsRequired):
      (WebCore::InputType::valueMissing):
      * html/InputType.h:
      * html/IsIndexInputType.cpp:
      (WebCore::IsIndexInputType::supportsRequired):
      * html/IsIndexInputType.h:
      * html/NumberInputType.cpp:
      (WebCore::NumberInputType::typeMismatchFor):
      (WebCore::NumberInputType::typeMismatch):
      * html/NumberInputType.h:
      * html/RadioInputType.cpp:
      (WebCore::RadioInputType::valueMissing):
      * html/RadioInputType.h:
      * html/ResetInputType.cpp:
      (WebCore::ResetInputType::supportsValidation):
      * html/ResetInputType.h:
      * html/SubmitInputType.cpp:
      (WebCore::SubmitInputType::supportsValidation):
      * html/SubmitInputType.h:
      * html/TextFieldInputType.cpp:
      (WebCore::TextFieldInputType::valueMissing):
      * html/TextFieldInputType.h:
      * html/URLInputType.cpp:
      (WebCore::URLInputType::typeMismatchFor):
      (WebCore::URLInputType::typeMismatch):
      * html/URLInputType.h:
      * html/ValidityState.cpp:
      (WebCore::ValidityState::typeMismatch):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99c09d4c
  8. 29 Sep, 2010 1 commit
    • tkent@chromium.org's avatar
      Refactor HTMLInputElement: Introducing InputType class and classes · 970a1cb1
      tkent@chromium.org authored
      for each input element types.
      https://bugs.webkit.org/show_bug.cgi?id=45872
      
      Reviewed by Darin Adler.
      
      No new tests because this doesn't change any behavior.
      
      * Android.mk: Add new files.
      * CMakeLists.txt: ditto.
      * GNUmakefile.am: ditto.
      * WebCore.gypi: ditto.
      * WebCore.pro: ditto.
      * WebCore.vcproj/WebCore.vcproj: ditto.
      * WebCore.xcodeproj/project.pbxproj: ditto.
      * html/BaseTextInputType.cpp: Added.
      (WebCore::BaseTextInputType::isTextType):
      (WebCore::BaseTextInputType::patternMismatch):
      * html/BaseTextInputType.h: Added.
      (WebCore::BaseTextInputType::BaseTextInputType):
      * html/ButtonInputType.cpp: Added.
      (WebCore::ButtonInputType::create):
      (WebCore::ButtonInputType::formControlType):
      * html/ButtonInputType.h: Added.
      (WebCore::ButtonInputType::ButtonInputType):
      * html/CheckboxInputType.cpp: Added.
      (WebCore::CheckboxInputType::create):
      (WebCore::CheckboxInputType::formControlType):
      * html/CheckboxInputType.h: Added.
      (WebCore::CheckboxInputType::CheckboxInputType):
      * html/ColorInputType.cpp: Added.
      (WebCore::ColorInputType::create):
      (WebCore::ColorInputType::formControlType):
      * html/ColorInputType.h: Added.
      (WebCore::ColorInputType::ColorInputType):
      * html/DateInputType.cpp: Added.
      (WebCore::DateInputType::create):
      (WebCore::DateInputType::formControlType):
      * html/DateInputType.h: Added.
      (WebCore::DateInputType::DateInputType):
      * html/DateTimeInputType.cpp: Added.
      (WebCore::DateTimeInputType::create):
      (WebCore::DateTimeInputType::formControlType):
      * html/DateTimeInputType.h: Added.
      (WebCore::DateTimeInputType::DateTimeInputType):
      * html/DateTimeLocalInputType.cpp: Added.
      (WebCore::DateTimeLocalInputType::create):
      (WebCore::DateTimeLocalInputType::formControlType):
      * html/DateTimeLocalInputType.h: Added.
      (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
      * html/EmailInputType.cpp: Added.
      (WebCore::EmailInputType::create):
      (WebCore::EmailInputType::formControlType):
      * html/EmailInputType.h: Added.
      (WebCore::EmailInputType::EmailInputType):
      * html/FileInputType.cpp: Added.
      (WebCore::FileInputType::create):
      (WebCore::FileInputType::formControlType):
      * html/FileInputType.h: Added.
      (WebCore::FileInputType::FileInputType):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::HTMLInputElement): Initialize m_inputType.
      (WebCore::HTMLInputElement::patternMismatch): Delegate to InputType.
      (WebCore::HTMLInputElement::updateType): Update m_inputType with new type.
      (WebCore::HTMLInputElement::formControlType): Delegate to InputType.
      (WebCore::HTMLInputElement::isTextField): ditto.
      (WebCore::HTMLInputElement::isTextType): ditto.
      * html/HTMLInputElement.h:
      * html/HiddenInputType.cpp: Added.
      (WebCore::HiddenInputType::create):
      (WebCore::HiddenInputType::formControlType):
      * html/HiddenInputType.h: Added.
      (WebCore::HiddenInputType::HiddenInputType):
      * html/ImageInputType.cpp: Added.
      (WebCore::ImageInputType::create):
      (WebCore::ImageInputType::formControlType):
      * html/ImageInputType.h: Added.
      (WebCore::ImageInputType::ImageInputType):
      * html/InputType.cpp: Added.
      (WebCore::createInputTypeFactoryMap):
      (WebCore::InputType::create):
      (WebCore::InputType::createText):
      (WebCore::InputType::~InputType):
      (WebCore::InputType::isTextField):
      (WebCore::InputType::isTextType):
      (WebCore::InputType::patternMismatch):
      (WebCore::InputTypeNames::button):
      (WebCore::InputTypeNames::checkbox):
      (WebCore::InputTypeNames::color):
      (WebCore::InputTypeNames::date):
      (WebCore::InputTypeNames::datetime):
      (WebCore::InputTypeNames::datetimelocal):
      (WebCore::InputTypeNames::email):
      (WebCore::InputTypeNames::file):
      (WebCore::InputTypeNames::hidden):
      (WebCore::InputTypeNames::image):
      (WebCore::InputTypeNames::isindex):
      (WebCore::InputTypeNames::month):
      (WebCore::InputTypeNames::number):
      (WebCore::InputTypeNames::password):
      (WebCore::InputTypeNames::radio):
      (WebCore::InputTypeNames::range):
      (WebCore::InputTypeNames::reset):
      (WebCore::InputTypeNames::search):
      (WebCore::InputTypeNames::submit):
      (WebCore::InputTypeNames::telephone):
      (WebCore::InputTypeNames::text):
      (WebCore::InputTypeNames::time):
      (WebCore::InputTypeNames::url):
      (WebCore::InputTypeNames::week):
      * html/InputType.h: Added.
      (WebCore::InputType::InputType):
      (WebCore::InputType::element):
      * html/IsIndexInputType.cpp: Added.
      (WebCore::IsIndexInputType::create):
      (WebCore::IsIndexInputType::formControlType):
      * html/IsIndexInputType.h: Added.
      (WebCore::IsIndexInputType::IsIndexInputType):
      * html/MonthInputType.cpp: Added.
      (WebCore::MonthInputType::create):
      (WebCore::MonthInputType::formControlType):
      * html/MonthInputType.h: Added.
      (WebCore::MonthInputType::MonthInputType):
      * html/NumberInputType.cpp: Added.
      (WebCore::NumberInputType::create):
      (WebCore::NumberInputType::formControlType):
      * html/NumberInputType.h: Added.
      (WebCore::NumberInputType::NumberInputType):
      * html/PasswordInputType.cpp: Added.
      (WebCore::PasswordInputType::create):
      (WebCore::PasswordInputType::formControlType):
      * html/PasswordInputType.h: Added.
      (WebCore::PasswordInputType::PasswordInputType):
      * html/RadioInputType.cpp: Added.
      (WebCore::RadioInputType::create):
      (WebCore::RadioInputType::formControlType):
      * html/RadioInputType.h: Added.
      (WebCore::RadioInputType::RadioInputType):
      * html/RangeInputType.cpp: Added.
      (WebCore::RangeInputType::create):
      (WebCore::RangeInputType::formControlType):
      * html/RangeInputType.h: Added.
      (WebCore::RangeInputType::RangeInputType):
      * html/ResetInputType.cpp: Added.
      (WebCore::ResetInputType::create):
      (WebCore::ResetInputType::formControlType):
      * html/ResetInputType.h: Added.
      (WebCore::ResetInputType::ResetInputType):
      * html/SearchInputType.cpp: Added.
      (WebCore::SearchInputType::create):
      (WebCore::SearchInputType::formControlType):
      * html/SearchInputType.h: Added.
      (WebCore::SearchInputType::SearchInputType):
      * html/SubmitInputType.cpp: Added.
      (WebCore::SubmitInputType::create):
      (WebCore::SubmitInputType::formControlType):
      * html/SubmitInputType.h: Added.
      (WebCore::SubmitInputType::SubmitInputType):
      * html/TelephoneInputType.cpp: Added.
      (WebCore::TelephoneInputType::create):
      (WebCore::TelephoneInputType::formControlType):
      * html/TelephoneInputType.h: Added.
      (WebCore::TelephoneInputType::TelephoneInputType):
      * html/TextFieldInputType.cpp: Added.
      (WebCore::TextFieldInputType::isTextField):
      * html/TextFieldInputType.h: Added.
      (WebCore::TextFieldInputType::TextFieldInputType):
      * html/TextInputType.cpp: Added.
      (WebCore::TextInputType::create):
      (WebCore::TextInputType::formControlType):
      * html/TextInputType.h: Added.
      (WebCore::TextInputType::TextInputType):
      * html/TimeInputType.cpp: Added.
      (WebCore::TimeInputType::create):
      (WebCore::TimeInputType::formControlType):
      * html/TimeInputType.h: Added.
      (WebCore::TimeInputType::TimeInputType):
      * html/URLInputType.cpp: Added.
      (WebCore::URLInputType::create):
      (WebCore::URLInputType::formControlType):
      * html/URLInputType.h: Added.
      (WebCore::URLInputType::URLInputType):
      * html/WeekInputType.cpp: Added.
      (WebCore::WeekInputType::create):
      (WebCore::WeekInputType::formControlType):
      * html/WeekInputType.h: Added.
      (WebCore::WeekInputType::WeekInputType):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      970a1cb1
  9. 01 Feb, 2010 1 commit
    • japhet@chromium.org's avatar
      2010-02-01 Nate Chapin <japhet@chromium.org> · e8827984
      japhet@chromium.org authored
              Unreviewed, Chromium build fix.
      
              Failed to properly add new files for http://trac.webkit.org/changeset/54150.
      
              * bindings/v8/custom/V8BarInfoCustom.cpp: Added.
              * bindings/v8/custom/V8CSSRuleCustom.cpp: Added.
              * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Added.
              * bindings/v8/custom/V8CSSValueCustom.cpp: Added.
              * bindings/v8/custom/V8CanvasPixelArrayCustom.cpp: Added.
              * bindings/v8/custom/V8DOMSelectionCustom.cpp: Added.
              * bindings/v8/custom/V8HTMLElementCustom.cpp: Added.
              * bindings/v8/custom/V8SVGDocumentCustom.cpp: Added.
              * bindings/v8/custom/V8SVGElementCustom.cpp: Added.
              * bindings/v8/custom/V8SVGPathSegCustom.cpp: Added.
              * bindings/v8/custom/V8ScreenCustom.cpp: Added.
              * bindings/v8/custom/V8StyleSheetCustom.cpp: Added.
              * bindings/v8/custom/V8WebGLArrayCustom.cpp: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54153 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8827984
  10. 06 Jan, 2010 1 commit
  11. 10 Nov, 2009 1 commit
    • eric@webkit.org's avatar
      2009-11-09 Yaar Schnitman <yaar@chromium.org> · 59332324
      eric@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Up-streaming Chromium API src files: WebAccessibilty
      
              https://bugs.webkit.org/show_bug.cgi?id=31276
      
              * src/WebAccessibilityCache.cpp: Added.
              (WebKit::WebAccessibilityCache::enableAccessibility):
              * src/WebAccessibilityCacheImpl.cpp: Added.
              (WebKit::toAccessibilityObject):
              (WebKit::WebAccessibilityCache::create):
              (WebKit::WebAccessibilityCacheImpl::WeakHandle::create):
              (WebKit::WebAccessibilityCacheImpl::WeakHandle::WeakHandle):
              (WebKit::WebAccessibilityCacheImpl::WeakHandle::detach):
              (WebKit::WebAccessibilityCacheImpl::WebAccessibilityCacheImpl):
              (WebKit::WebAccessibilityCacheImpl::~WebAccessibilityCacheImpl):
              (WebKit::WebAccessibilityCacheImpl::initialize):
              (WebKit::WebAccessibilityCacheImpl::getObjectById):
              (WebKit::WebAccessibilityCacheImpl::isValidId):
              (WebKit::WebAccessibilityCacheImpl::remove):
              (WebKit::WebAccessibilityCacheImpl::clear):
              (WebKit::WebAccessibilityCacheImpl::addOrGetId):
              * src/WebAccessibilityCacheImpl.h: Added.
              (WebKit::WebAccessibilityCacheImpl::isInitialized):
              * src/WebAccessibilityObject.cpp: Added.
              (WebKit::WebAccessibilityObject::reset):
              (WebKit::WebAccessibilityObject::assign):
              (WebKit::WebAccessibilityObject::accessibilityDescription):
              (WebKit::WebAccessibilityObject::actionVerb):
              (WebKit::WebAccessibilityObject::canSetFocusAttribute):
              (WebKit::WebAccessibilityObject::childCount):
              (WebKit::WebAccessibilityObject::childAt):
              (WebKit::WebAccessibilityObject::firstChild):
              (WebKit::WebAccessibilityObject::focusedChild):
              (WebKit::WebAccessibilityObject::lastChild):
              (WebKit::WebAccessibilityObject::nextSibling):
              (WebKit::WebAccessibilityObject::parentObject):
              (WebKit::WebAccessibilityObject::previousSibling):
              (WebKit::WebAccessibilityObject::isAnchor):
              (WebKit::WebAccessibilityObject::isChecked):
              (WebKit::WebAccessibilityObject::isFocused):
              (WebKit::WebAccessibilityObject::isEnabled):
              (WebKit::WebAccessibilityObject::isHovered):
              (WebKit::WebAccessibilityObject::isIndeterminate):
              (WebKit::WebAccessibilityObject::isMultiSelect):
              (WebKit::WebAccessibilityObject::isOffScreen):
              (WebKit::WebAccessibilityObject::isPasswordField):
              (WebKit::WebAccessibilityObject::isPressed):
              (WebKit::WebAccessibilityObject::isReadOnly):
              (WebKit::WebAccessibilityObject::isVisited):
              (WebKit::WebAccessibilityObject::boundingBoxRect):
              (WebKit::WebAccessibilityObject::helpText):
              (WebKit::WebAccessibilityObject::hitTest):
              (WebKit::WebAccessibilityObject::keyboardShortcut):
              (WebKit::WebAccessibilityObject::performDefaultAction):
              (WebKit::WebAccessibilityObject::roleValue):
              (WebKit::WebAccessibilityObject::stringValue):
              (WebKit::WebAccessibilityObject::title):
              (WebKit::WebAccessibilityObject::WebAccessibilityObject):
              (WebKit::WebAccessibilityObject::operator=):
              (WebKit::WebAccessibilityObject::operator WTF::PassRefPtr<WebCore::AccessibilityObject>):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59332324
  12. 18 Aug, 2009 1 commit
    • atwilson@chromium.org's avatar
      WebCore: Need to extend DumpRenderTree to expose number of worker threads · 7ace1fbb
      atwilson@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Expose WorkerThread::workerThreadCount() for DumpRenderTree so we can write worker lifecycle tests.
      
      Tests: fast/workers/shared-worker-lifecycle.html-disabled
             fast/workers/worker-lifecycle.html
      
      * WebCore.base.exp:
      Exported WorkerThread::workerThreadCount().
      * WebCore.xcodeproj/project.pbxproj:
      * workers/WorkerThread.cpp:
      Added tracking of the number of worker threads.
      (WebCore::threadCountMutex):
      (WebCore::WorkerThread::workerThreadCount):
      (WebCore::WorkerThread::WorkerThread):
      (WebCore::WorkerThread::~WorkerThread):
      * workers/WorkerThread.h:
      
      WebKit: Need to extend DumpRenderTree to expose number of worker threads.
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      * WebKit.xcodeproj/project.pbxproj:
      Added WebWorkersPrivate APIs to mac WebKit to expose workerThreadCount() for DumpRenderTree.
      
      WebKit/gtk: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      * webkit/webkitprivate.h:
      * webkit/webkitworkers.cpp: Added.
      (webkit_worker_thread_count):
      Exposed WebCore::WorkerThread::workerThreadCount() for the gtk version of DumpRenderTree.
      
      WebKit/mac: Need to extend DumpRenderTree to expose number of worker threads.
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      * WebKit.exp:
      Exported WebWorkersPrivate so DumpRenderTree can access it.
      * Workers/WebWorkersPrivate.h: Added.
      * Workers/WebWorkersPrivate.mm: Added.
      (+[WebWorkersPrivate workerThreadCount]):
      Added WebWorkersPrivate::workerThreadCount() API for DumpRenderTree.
      
      WebKit/win: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Defined/implemented COM interfaces to expose WorkerThread::workerThreadCount() for DumpRenderTree.
      
      * ForEachCoClass.h:
      Added WebWorkersPrivate.
      * Interfaces/IWebWorkersPrivate.idl: Added.
      * Interfaces/WebKit.idl:
      Added WebWorkersPrivate.
      * WebKit.vcproj/Interfaces.vcproj:
      * WebKit.vcproj/WebKit.vcproj:
      * WebWorkersPrivate.cpp: Added.
      Implementation of the IWebWorkersPrivate COM interface, to expose workerThreadCount() for DumpRenderTree.
      (WebWorkersPrivate::QueryInterface):
      (WebWorkersPrivate::AddRef):
      (WebWorkersPrivate::Release):
      (WebWorkersPrivate::workerThreadCount):
      (WebWorkersPrivate::createInstance):
      (WebWorkersPrivate::WebWorkersPrivate):
      (WebWorkersPrivate::~WebWorkersPrivate):
      * WebWorkersPrivate.h: Added.
      
      WebKitTools: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Added layoutTestController.workerThreadCount, and implementations on various platforms that call into WebKit.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (getWorkerThreadCountCallback):
      (LayoutTestController::staticValues):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::workerThreadCount):
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::workerThreadCount):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::workerThreadCount):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::workerThreadCount):
      
      LayoutTests: Need to extend DumpRenderTree to expose number of worker threads
      https://bugs.webkit.org/show_bug.cgi?id=28292
      
      Reviewed by Eric Seidel.
      
      Added simple layout tests that use the new layoutTestController.workerThreadCount() API
      
      * fast/workers/resources/shared-worker-common.js:
      Added support for "close" command to match worker-common.js.
      * fast/workers/resources/worker-lifecycle.js: Added.
      * fast/workers/shared-worker-lifecycle-expected.txt: Added.
      * fast/workers/shared-worker-lifecycle.html-disabled: Added.
      * fast/workers/worker-lifecycle-expected.txt: Added.
      * fast/workers/worker-lifecycle.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ace1fbb
  13. 04 Aug, 2009 1 commit
    • jorlow@chromium.org's avatar
      2009-08-03 Jeremy Orlow <jorlow@chromium.org> · bcda25b8
      jorlow@chromium.org authored
              Reviewed by Darin Fisher.
      
              Chromium code sometimes isn't sandboxed and needs to access the FS.
              https://bugs.webkit.org/show_bug.cgi?id=27954
      
              These changes are the WebKit side of http://codereview.chromium.org/159778 which
              aims to make LocalStorage persistent.
      
              This change runs all FileSystem routines through the ChromiumBridge so that
              WebKitClients can handle them if they choose to.  For now, the only such client
              will be the one running in the browser process.
      
              It also adds a method called sandboxEnabled to the Chromium bridge so that the
              SQLite file system code can shift its behavior depending on whether we're
              inside a sandbox or not.
      
              * platform/chromium/ChromiumBridge.h:
              * platform/chromium/FileSystemChromium.cpp:
              (WebCore::deleteFile):
              (WebCore::deleteEmptyDirectory):
              (WebCore::getFileModificationTime):
              (WebCore::directoryName):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
              (WebCore::fileExists):
              * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
              (WebCore::SQLiteFileSystem::openDatabase):
              * platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp:
              (WebCore::SQLiteFileSystem::registerSQLiteVFS):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bcda25b8
  14. 20 Jul, 2009 1 commit
  15. 13 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-13 Darin Fisher <darin@chromium.org> · 0e8acfa7
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              Landing portions of platform/chromium/, taken from here:
              http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/WebKit/WebCore/platform/chromium/
      
              * platform/chromium/ChromiumBridge.h: Added.
              * platform/chromium/ChromiumDataObject.cpp: Added.
              (WebCore::ChromiumDataObject::clear):
              (WebCore::ChromiumDataObject::hasData):
              * platform/chromium/ChromiumDataObject.h: Added.
              (WebCore::ChromiumDataObject::create):
              (WebCore::ChromiumDataObject::ChromiumDataObject):
              * platform/chromium/ClipboardChromium.cpp: Added.
              (WebCore::):
              (WebCore::clipboardTypeFromMIMEType):
              (WebCore::ClipboardChromium::ClipboardChromium):
              (WebCore::ClipboardChromium::create):
              (WebCore::ClipboardChromium::clearData):
              (WebCore::ClipboardChromium::clearAllData):
              (WebCore::ClipboardChromium::getData):
              (WebCore::ClipboardChromium::setData):
              (WebCore::ClipboardChromium::types):
              (WebCore::ClipboardChromium::setDragImage):
              (WebCore::ClipboardChromium::setDragImageElement):
              (WebCore::ClipboardChromium::createDragImage):
              (WebCore::imageToMarkup):
              (WebCore::getCachedImage):
              (WebCore::writeImageToDataObject):
              (WebCore::ClipboardChromium::declareAndWriteDragImage):
              (WebCore::ClipboardChromium::writeURL):
              (WebCore::ClipboardChromium::writeRange):
              (WebCore::ClipboardChromium::hasData):
              * platform/chromium/ClipboardChromium.h: Added.
              (WebCore::ClipboardChromium::~ClipboardChromium):
              (WebCore::ClipboardChromium::dataObject):
              * platform/chromium/ClipboardUtilitiesChromium.cpp: Added.
              (WebCore::replaceNewlinesWithWindowsStyleNewlines):
              (WebCore::replaceNBSPWithSpace):
              (WebCore::urlToMarkup):
              * platform/chromium/ClipboardUtilitiesChromium.h: Added.
              * platform/chromium/ContextMenuChromium.cpp: Added.
              (WebCore::ContextMenu::ContextMenu):
              (WebCore::ContextMenu::~ContextMenu):
              (WebCore::ContextMenu::itemCount):
              (WebCore::ContextMenu::insertItem):
              (WebCore::ContextMenu::appendItem):
              (WebCore::ContextMenu::itemWithAction):
              (WebCore::ContextMenu::itemAtIndex):
              (WebCore::ContextMenu::setPlatformDescription):
              (WebCore::ContextMenu::platformDescription):
              (WebCore::ContextMenu::releasePlatformDescription):
              * platform/chromium/ContextMenuItemChromium.cpp: Added.
              (WebCore::ContextMenuItem::ContextMenuItem):
              (WebCore::ContextMenuItem::~ContextMenuItem):
              (WebCore::ContextMenuItem::releasePlatformDescription):
              (WebCore::ContextMenuItem::type):
              (WebCore::ContextMenuItem::action):
              (WebCore::ContextMenuItem::title):
              (WebCore::ContextMenuItem::platformSubMenu):
              (WebCore::ContextMenuItem::setType):
              (WebCore::ContextMenuItem::setAction):
              (WebCore::ContextMenuItem::setTitle):
              (WebCore::ContextMenuItem::setSubMenu):
              (WebCore::ContextMenuItem::setChecked):
              (WebCore::ContextMenuItem::setEnabled):
              (WebCore::ContextMenuItem::enabled):
              * platform/chromium/CursorChromium.cpp: Added.
              (WebCore::Cursor::Cursor):
              (WebCore::Cursor::~Cursor):
              (WebCore::Cursor::operator=):
              (WebCore::pointerCursor):
              (WebCore::crossCursor):
              (WebCore::handCursor):
              (WebCore::iBeamCursor):
              (WebCore::waitCursor):
              (WebCore::helpCursor):
              (WebCore::eastResizeCursor):
              (WebCore::northResizeCursor):
              (WebCore::northEastResizeCursor):
              (WebCore::northWestResizeCursor):
              (WebCore::southResizeCursor):
              (WebCore::southEastResizeCursor):
              (WebCore::southWestResizeCursor):
              (WebCore::westResizeCursor):
              (WebCore::northSouthResizeCursor):
              (WebCore::eastWestResizeCursor):
              (WebCore::northEastSouthWestResizeCursor):
              (WebCore::northWestSouthEastResizeCursor):
              (WebCore::columnResizeCursor):
              (WebCore::rowResizeCursor):
              (WebCore::middlePanningCursor):
              (WebCore::eastPanningCursor):
              (WebCore::northPanningCursor):
              (WebCore::northEastPanningCursor):
              (WebCore::northWestPanningCursor):
              (WebCore::southPanningCursor):
              (WebCore::southEastPanningCursor):
              (WebCore::southWestPanningCursor):
              (WebCore::westPanningCursor):
              (WebCore::moveCursor):
              (WebCore::verticalTextCursor):
              (WebCore::cellCursor):
              (WebCore::contextMenuCursor):
              (WebCore::aliasCursor):
              (WebCore::progressCursor):
              (WebCore::noDropCursor):
              (WebCore::copyCursor):
              (WebCore::noneCursor):
              (WebCore::notAllowedCursor):
              (WebCore::zoomInCursor):
              (WebCore::zoomOutCursor):
              (WebCore::grabCursor):
              (WebCore::grabbingCursor):
              * platform/chromium/DragDataChromium.cpp: Added.
              (WebCore::containsHTML):
              (WebCore::DragData::createClipboard):
              (WebCore::DragData::containsURL):
              (WebCore::DragData::asURL):
              (WebCore::DragData::containsFiles):
              (WebCore::DragData::asFilenames):
              (WebCore::DragData::containsPlainText):
              (WebCore::DragData::asPlainText):
              (WebCore::DragData::containsColor):
              (WebCore::DragData::canSmartReplace):
              (WebCore::DragData::containsCompatibleContent):
              (WebCore::DragData::asFragment):
              (WebCore::DragData::asColor):
              * platform/chromium/EditorChromium.cpp: Added.
              (WebCore::Editor::newGeneralClipboard):
              * platform/chromium/FileChooserChromium.cpp: Added.
              (WebCore::FileChooser::basenameForWidth):
              * platform/chromium/FileSystemChromium.cpp: Added.
              (WebCore::deleteFile):
              (WebCore::deleteEmptyDirectory):
              (WebCore::getFileSize):
              (WebCore::getFileModificationTime):
              (WebCore::directoryName):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
              (WebCore::fileExists):
              * platform/chromium/FileSystemChromiumLinux.cpp: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FileSystemChromiumMac.mm: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FileSystemChromiumWin.cpp: Added.
              (WebCore::pathGetFileName):
              * platform/chromium/FramelessScrollView.cpp: Added.
              (WebCore::FramelessScrollView::~FramelessScrollView):
              (WebCore::FramelessScrollView::invalidateScrollbarRect):
              (WebCore::FramelessScrollView::isActive):
              (WebCore::FramelessScrollView::invalidateRect):
              (WebCore::FramelessScrollView::hostWindow):
              (WebCore::FramelessScrollView::windowClipRect):
              (WebCore::FramelessScrollView::paintContents):
              (WebCore::FramelessScrollView::contentsResized):
              (WebCore::FramelessScrollView::visibleContentsResized):
              * platform/chromium/FramelessScrollView.h: Added.
              (WebCore::FramelessScrollView::FramelessScrollView):
              (WebCore::FramelessScrollView::client):
              (WebCore::FramelessScrollView::setClient):
              * platform/chromium/FramelessScrollViewClient.h: Added.
              * platform/chromium/ScrollbarThemeChromiumWin.cpp: Added.
              (WebCore::):
              (WebCore::ScrollbarThemeChromium::scrollbarThickness):
              (WebCore::ScrollbarThemeChromium::invalidateOnMouseEnterExit):
              (WebCore::ScrollbarThemeChromium::paintTrackPiece):
              (WebCore::ScrollbarThemeChromium::paintButton):
              (WebCore::ScrollbarThemeChromium::paintThumb):
              (WebCore::ScrollbarThemeChromium::getThemeState):
              (WebCore::ScrollbarThemeChromium::getThemeArrowState):
              (WebCore::ScrollbarThemeChromium::getClassicThemeState):
              * platform/chromium/SoundChromiumPosix.cpp: Added.
              (WebCore::systemBeep):
              * platform/chromium/SoundChromiumWin.cpp: Added.
              (WebCore::systemBeep):
              * platform/chromium/SystemTimeChromium.cpp: Added.
              (WebCore::currentTime):
              (WebCore::userIdleTime):
              * platform/chromium/WidgetChromium.cpp: Added.
              (WebCore::Widget::Widget):
              (WebCore::Widget::~Widget):
              (WebCore::Widget::show):
              (WebCore::Widget::hide):
              (WebCore::Widget::setCursor):
              (WebCore::Widget::paint):
              (WebCore::Widget::setFocus):
              (WebCore::Widget::setIsSelected):
              (WebCore::Widget::frameRect):
              (WebCore::Widget::setFrameRect):
              * platform/chromium/WindowsVersion.cpp: Added.
              (WebCore::isVistaOrNewer):
              * platform/chromium/WindowsVersion.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e8acfa7
  16. 09 Jan, 2009 1 commit
    • darin@chromium.org's avatar
      2009-01-09 Darin Fisher <darin@chromium.org> · 45f77239
      darin@chromium.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=23214
              Upstream platform/network/chromium/
      
              * platform/network/chromium/AuthenticationChallenge.h: Added.
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::sourceHandle):
              * platform/network/chromium/AuthenticationChallengeChromium.cpp: Added.
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/chromium/CookieJarChromium.cpp: Added.
              (WebCore::setCookies):
              (WebCore::cookies):
              (WebCore::cookiesEnabled):
              * platform/network/chromium/DNSChromium.cpp: Added.
              (WebCore::prefetchDNS):
              * platform/network/chromium/NetworkStateNotifierChromium.cpp: Added.
              (WebCore::NetworkStateNotifier::updateState):
              (WebCore::NetworkStateNotifier::NetworkStateNotifier):
              * platform/network/chromium/NetworkStateNotifierPrivate.h: Added.
              * platform/network/chromium/ResourceError.h: Added.
              (WebCore::ResourceError::ResourceError):
              * platform/network/chromium/ResourceRequest.h: Added.
              (WebCore::ResourceRequest::):
              (WebCore::ResourceRequest::ResourceRequest):
              (WebCore::ResourceRequest::frame):
              (WebCore::ResourceRequest::setFrame):
              (WebCore::ResourceRequest::setTargetType):
              (WebCore::ResourceRequest::targetType):
              (WebCore::ResourceRequest::originPid):
              (WebCore::ResourceRequest::setOriginPid):
              (WebCore::ResourceRequest::securityInfo):
              (WebCore::ResourceRequest::setSecurityInfo):
              (WebCore::ResourceRequest::doUpdatePlatformRequest):
              (WebCore::ResourceRequest::doUpdateResourceRequest):
              * platform/network/chromium/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              (WebCore::ResourceResponse::getSecurityInfo):
              (WebCore::ResourceResponse::setSecurityInfo):
              (WebCore::ResourceResponse::isContentFiltered):
              (WebCore::ResourceResponse::setIsContentFiltered):
              (WebCore::ResourceResponse::doUpdateResourceResponse):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45f77239
  17. 07 Jan, 2009 1 commit
    • eric@webkit.org's avatar
      Reviewed by Gavin Barraclough. · f39bd282
      eric@webkit.org authored
              Upstream 3 more files to get the WebCore-Chromium build a bit further.
      
              * WebCore.scons:
              * page/chromium/AccessibilityObjectChromium.cpp: Added.
              (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
              * page/chromium/AccessibilityObjectWrapper.h: Added.
              (WebCore::AccessibilityObjectWrapper::~AccessibilityObjectWrapper):
              (WebCore::AccessibilityObjectWrapper::attached):
              (WebCore::AccessibilityObjectWrapper::accessibilityObject):
              (WebCore::AccessibilityObjectWrapper::AccessibilityObjectWrapper):
              * platform/chromium/PasteboardPrivate.h: Added.
              (WebCore::PasteboardPrivate::):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f39bd282
  18. 26 Nov, 2008 1 commit
  19. 24 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-24 Darin Fisher <darin@chromium.org> · 6b41247a
      darin@chromium.org authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=22448
              Create an abstraction for JSC::SourceCode
      
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/CachedScriptSourceProvider.h:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptSourceCode.h: Added.
              (WebCore::ScriptSourceCode::ScriptSourceCode):
              (WebCore::ScriptSourceCode::length):
              (WebCore::ScriptSourceCode::jsSourceCode):
              * bindings/js/WorkerScriptController.cpp:
              (WebCore::Workevn ScriptController::evaluate):
              * bindings/js/WorkerScriptController.h:
              * dom/ScriptElement.cpp:
              (WebCore::ScriptElement::insertedIntoDocument):
              (WebCore::ScriptElement::childrenChanged):
              (WebCore::ScriptElementData::evaluateScript):
              (WebCore::ScriptElementData::notifyFinished):
              * dom/ScriptElement.h:
              * dom/WorkerThread.cpp:
              (WebCore::WorkerThread::workerThread):
              * dom/WorkerThread.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::notifyFinished):
              * dom/XMLTokenizerLibxml2.cpp:
              (WebCore::XMLTokenizer::endElementNs):
              * dom/XMLTokenizerQt.cpp:
              (WebCore::XMLTokenizer::parseEndElement):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::notifyFinished):
              * html/HTMLTokenizer.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b41247a
  20. 20 Nov, 2008 1 commit
    • darin@chromium.org's avatar
      2008-11-18 Darin Fisher <darin@chromium.org> · cd84840e
      darin@chromium.org authored
              Reviewed by Geoff Garen.
      
              https://bugs.webkit.org/show_bug.cgi?id=22345
              Define ScriptValue as a thin container for a JSC::Value*.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScheduledAction.cpp:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::evaluate):
              * bindings/js/ScriptController.h:
              * bindings/js/ScriptValue.cpp: Added.
              (WebCore::ScriptValue::getString):
              * bindings/js/ScriptValue.h: Added.
              (WebCore::ScriptValue::ScriptValue):
              (WebCore::ScriptValue::jsValue):
              * dom/ScriptElement.cpp:
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizerLibxml2.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeIfJavaScriptURL):
              (WebCore::FrameLoader::executeScript):
              * loader/FrameLoader.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd84840e