| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 { | 77 { |
| 78 setAttribute(HTMLNames::spellcheckAttr, enable ? "true" : "false"); | 78 setAttribute(HTMLNames::spellcheckAttr, enable ? "true" : "false"); |
| 79 } | 79 } |
| 80 | 80 |
| 81 | 81 |
| 82 void HTMLElement::click() | 82 void HTMLElement::click() |
| 83 { | 83 { |
| 84 dispatchSimulatedClick(0, SendNoEvents); | 84 dispatchSimulatedClick(0, SendNoEvents); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void HTMLElement::accessKeyAction(bool sendMouseEvents) | |
| 88 { | |
| 89 dispatchSimulatedClick(0, sendMouseEvents ? SendMouseUpDownEvents : SendNoEv
ents); | |
| 90 } | |
| 91 | |
| 92 String HTMLElement::title() const | 87 String HTMLElement::title() const |
| 93 { | 88 { |
| 94 return getAttribute(HTMLNames::titleAttr); | 89 return getAttribute(HTMLNames::titleAttr); |
| 95 } | 90 } |
| 96 | 91 |
| 97 short HTMLElement::tabIndex() const | 92 short HTMLElement::tabIndex() const |
| 98 { | 93 { |
| 99 if (supportsFocus()) | 94 if (supportsFocus()) |
| 100 return Element::tabIndex(); | 95 return Element::tabIndex(); |
| 101 return -1; | 96 return -1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 123 const AtomicString& HTMLElement::dir() | 118 const AtomicString& HTMLElement::dir() |
| 124 { | 119 { |
| 125 return toValidDirValue(getAttribute(HTMLNames::dirAttr)); | 120 return toValidDirValue(getAttribute(HTMLNames::dirAttr)); |
| 126 } | 121 } |
| 127 | 122 |
| 128 void HTMLElement::setDir(const AtomicString& value) | 123 void HTMLElement::setDir(const AtomicString& value) |
| 129 { | 124 { |
| 130 setAttribute(HTMLNames::dirAttr, value); | 125 setAttribute(HTMLNames::dirAttr, value); |
| 131 } | 126 } |
| 132 | 127 |
| 133 bool HTMLElement::isInteractiveContent() const | |
| 134 { | |
| 135 return false; | |
| 136 } | |
| 137 | |
| 138 const AtomicString& HTMLElement::eventParameterName() | |
| 139 { | |
| 140 DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString:
:ConstructFromLiteral)); | |
| 141 return eventString; | |
| 142 } | |
| 143 | |
| 144 v8::Handle<v8::Object> HTMLElement::wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) | 128 v8::Handle<v8::Object> HTMLElement::wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) |
| 145 { | 129 { |
| 146 return createV8HTMLWrapper(this, creationContext, isolate); | 130 return createV8HTMLWrapper(this, creationContext, isolate); |
| 147 } | 131 } |
| 148 | 132 |
| 149 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |