Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / autofill / content / renderer / page_click_listener.h
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.
4
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_LISTENER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_LISTENER_H_
7
8 namespace blink {
9 class WebFormControlElement;
10 }
11
12 namespace autofill {
13
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 {
18  public:
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;
24
25  protected:
26   virtual ~PageClickListener() {}
27 };
28
29 }  // namespace autofill
30
31 #endif  // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_LISTENER_H_