| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "content/public/renderer/render_view_observer.h" | 11 #include "content/public/renderer/render_view_observer.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMEventListener.h
" | 12 #include "third_party/WebKit/public/web/WebDOMEventListener.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 13 #include "third_party/WebKit/public/web/WebNode.h" |
| 14 | 14 |
| 15 namespace autofill { | 15 namespace autofill { |
| 16 | 16 |
| 17 class PageClickListener; | 17 class PageClickListener; |
| 18 | 18 |
| 19 // This class is responsible for tracking clicks on elements in web pages and | 19 // This class is responsible for tracking clicks on elements in web pages and |
| 20 // notifiying the associated listener when a node is clicked. | 20 // notifiying the associated listener when a node is clicked. |
| 21 // Compared to a simple WebDOMEventListener, it offers the added capability of | 21 // Compared to a simple WebDOMEventListener, it offers the added capability of |
| 22 // notifying the listeners of whether the clicked node was already focused | 22 // notifying the listeners of whether the clicked node was already focused |
| 23 // before it was clicked. | 23 // before it was clicked. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // The listener getting the actual notifications. | 63 // The listener getting the actual notifications. |
| 64 PageClickListener* listener_; | 64 PageClickListener* listener_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(PageClickTracker); | 66 DISALLOW_COPY_AND_ASSIGN(PageClickTracker); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace autofill | 69 } // namespace autofill |
| 70 | 70 |
| 71 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ | 71 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PAGE_CLICK_TRACKER_H_ |
| OLD | NEW |