OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 WebFormElementObserver_h |
| 6 #define WebFormElementObserver_h |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "public/platform/WebCommon.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class WebFormElement; |
| 15 class WebFormElementObserverCallback; |
| 16 class WebInputElement; |
| 17 |
| 18 class BLINK_EXPORT WebFormElementObserver { |
| 19 public: |
| 20 // Creates a WebFormElementObserver. Delete this WebFormElementObsrver by |
| 21 // calling WebFormElementObserver::Disconnect. |
| 22 static WebFormElementObserver* Create( |
| 23 WebFormElement&, |
| 24 std::unique_ptr<WebFormElementObserverCallback>); |
| 25 static WebFormElementObserver* Create( |
| 26 WebInputElement&, |
| 27 std::unique_ptr<WebFormElementObserverCallback>); |
| 28 |
| 29 virtual void Disconnect() = 0; |
| 30 |
| 31 protected: |
| 32 WebFormElementObserver() = default; |
| 33 virtual ~WebFormElementObserver() = default; |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // WebFormElementObserver_h |
OLD | NEW |