1 // Copyright 2013 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.
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_LISTENER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_LISTENER_H_
9 class WebFormControlElement;
14 // Interface that should be implemented by classes interested in getting
15 // notifications for clicks or taps on a page.
16 // Register on the PageListenerTracker object.
17 class PageClickListener {
19 // Notification that |element| was clicked.
20 // |was_focused| is true if |element| had focus BEFORE the click.
21 virtual void FormControlElementClicked(
22 const blink::WebFormControlElement& element,
23 bool was_focused) = 0;
26 virtual ~PageClickListener() {}
29 } // namespace autofill
31 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_LISTENER_H_