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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 void updateFocusAppearance(bool restorePreviousSelection); 235 void updateFocusAppearance(bool restorePreviousSelection);
236 void blur(); 236 void blur();
237 // Whether this element can receive focus at all. Most elements are not 237 // Whether this element can receive focus at all. Most elements are not
238 // focusable but some elements, such as form controls and links, are. Unlike 238 // focusable but some elements, such as form controls and links, are. Unlike
239 // rendererIsFocusable(), this method may be called when layout is not up to 239 // rendererIsFocusable(), this method may be called when layout is not up to
240 // date, so it must not use the renderer to determine focusability. 240 // date, so it must not use the renderer to determine focusability.
241 virtual bool supportsFocus() const; 241 virtual bool supportsFocus() const;
242 // Whether the node can actually be focused. 242 // Whether the node can actually be focused.
243 bool isFocusable() const; 243 bool isFocusable() const;
244 bool isKeyboardFocusable() const; 244 bool isKeyboardFocusable() const;
245 bool isMouseFocusable() const;
246 void dispatchFocusEvent(Element* oldFocusedElement, FocusType); 245 void dispatchFocusEvent(Element* oldFocusedElement, FocusType);
247 void dispatchBlurEvent(Element* newFocusedElement); 246 void dispatchBlurEvent(Element* newFocusedElement);
248 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element); 247 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element);
249 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement); 248 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement);
250 249
251 bool matches(const String& selectors, ExceptionState&); 250 bool matches(const String& selectors, ExceptionState&);
252 251
253 DOMTokenList& classList(); 252 DOMTokenList& classList();
254 253
255 virtual bool canContainRangeEndPoint() const override { return true; } 254 virtual bool canContainRangeEndPoint() const override { return true; }
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 static PassRefPtr<T> create(const QualifiedName&, Document&) 588 static PassRefPtr<T> create(const QualifiedName&, Document&)
590 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 589 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
591 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 590 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
592 { \ 591 { \
593 return adoptRef(new T(tagName, document)); \ 592 return adoptRef(new T(tagName, document)); \
594 } 593 }
595 594
596 } // namespace 595 } // namespace
597 596
598 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 597 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698