Chromium Code Reviews| Index: third_party/WebKit/Source/core/page/FocusChangedObserver.h |
| diff --git a/third_party/WebKit/Source/core/page/FocusChangedObserver.h b/third_party/WebKit/Source/core/page/FocusChangedObserver.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..01753b70236244d04571779ba11f439b35b7aff4 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/page/FocusChangedObserver.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2017 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 FocusChangedObserver_h |
| +#define FocusChangedObserver_h |
| + |
| +#include "core/CoreExport.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace blink { |
| + |
| +class LocalFrame; |
| +class Page; |
| + |
| +class CORE_EXPORT FocusChangedObserver : public GarbageCollectedMixin { |
| + public: |
| + virtual void focusedFrameChanged() = 0; |
| + |
| + protected: |
| + bool isFrameFocused(LocalFrame*); |
| + void observe(Page*); |
|
haraken
2017/02/06 01:33:17
Maybe can we remove the observe() method by making
mthiesse
2017/02/06 16:37:47
Done.
|
| + virtual ~FocusChangedObserver() {} |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // FocusChangedObserver_h |