Advertisement
Guest User

Source/core/dom/FocusableElement.h

a guest
Aug 22nd, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4.  
  5. #ifndef FocusableElement_h
  6. #define FocusableElement_h
  7.  
  8. #include "core/dom/Element.h"
  9.  
  10. namespace blink {
  11.  
  12. template <class ElementT>
  13. class FocusableElement : public ElementT {
  14. protected:
  15.     virtual bool shouldShowFocusRingOnMouseFocus() const = 0;
  16.     virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL;
  17.     virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) OVERRIDE;
  18.     virtual void willCallDefaultEventHandler(const Event&) OVERRIDE FINAL;
  19.  
  20. private:
  21.      bool m_wasFocusedByMouse;
  22. };
  23.  
  24. } // namespace blink
  25.  
  26. #endif // FocusableElement_h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement