Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copyright 2014 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef FocusableElement_h
- #define FocusableElement_h
- #include "core/dom/Element.h"
- namespace blink {
- template <class ElementT>
- class FocusableElement : public ElementT {
- protected:
- virtual bool shouldShowFocusRingOnMouseFocus() const = 0;
- virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL;
- virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) OVERRIDE;
- virtual void willCallDefaultEventHandler(const Event&) OVERRIDE FINAL;
- private:
- bool m_wasFocusedByMouse;
- };
- } // namespace blink
- #endif // FocusableElement_h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement