Chromium Code Reviews| Index: Source/core/page/FocusController.h |
| diff --git a/Source/core/page/FocusController.h b/Source/core/page/FocusController.h |
| index f12d1a0d738e38327a99abeefbd46d7ded4fe986..f6ac082c873dac5f6c23e605abf2c10d29a665b8 100644 |
| --- a/Source/core/page/FocusController.h |
| +++ b/Source/core/page/FocusController.h |
| @@ -77,6 +77,8 @@ public: |
| bool advanceFocus(FocusType type) { return advanceFocus(type, false); } |
| bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusType = FocusTypeNone); |
| + bool setWasFocusedByMouse(bool); |
| + bool wasFocusedByMouse() const { return m_wasFocusedByMouse; } |
| void setActive(bool); |
| bool isActive() const { return m_isActive; } |
| @@ -116,6 +118,7 @@ private: |
| Page* m_page; |
| RefPtr<Frame> m_focusedFrame; |
| + bool m_wasFocusedByMouse; |
|
pdr.
2014/08/12 02:02:22
It may be clearer to rename this "m_elementWasFocu
|
| bool m_isActive; |
| bool m_isFocused; |
| bool m_isChangingFocusedFrame; |