| 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 #include "components/autofill/content/renderer/page_click_tracker.h" | 5 #include "components/autofill/content/renderer/page_click_tracker.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "components/autofill/content/renderer/form_autofill_util.h" | 8 #include "components/autofill/content/renderer/form_autofill_util.h" |
| 9 #include "components/autofill/content/renderer/page_click_listener.h" | 9 #include "components/autofill/content/renderer/page_click_listener.h" |
| 10 #include "components/autofill/core/common/autofill_util.h" | 10 #include "components/autofill/core/common/autofill_util.h" |
| 11 #include "content/public/renderer/render_frame.h" | 11 #include "content/public/renderer/render_frame.h" |
| 12 #include "content/public/renderer/render_view.h" | 12 #include "content/public/renderer/render_view.h" |
| 13 #include "third_party/WebKit/public/platform/WebInputEvent.h" | |
| 14 #include "third_party/WebKit/public/platform/WebPoint.h" | 13 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 15 #include "third_party/WebKit/public/platform/WebSize.h" | 14 #include "third_party/WebKit/public/platform/WebSize.h" |
| 16 #include "third_party/WebKit/public/web/WebDocument.h" | 15 #include "third_party/WebKit/public/web/WebDocument.h" |
| 17 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 16 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
| 18 #include "third_party/WebKit/public/web/WebHitTestResult.h" | 17 #include "third_party/WebKit/public/web/WebHitTestResult.h" |
| 19 #include "third_party/WebKit/public/web/WebInputElement.h" | 18 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 20 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 19 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 21 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 20 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
| 22 #include "third_party/WebKit/public/web/WebView.h" | 21 #include "third_party/WebKit/public/web/WebView.h" |
| 23 | 22 |
| 24 using blink::WebElement; | 23 using blink::WebElement; |
| 25 using blink::WebFormControlElement; | 24 using blink::WebFormControlElement; |
| 26 using blink::WebGestureEvent; | 25 using blink::WebGestureEvent; |
| 27 using blink::WebInputElement; | 26 using blink::WebInputElement; |
| 28 using blink::WebInputEvent; | |
| 29 using blink::WebMouseEvent; | |
| 30 using blink::WebNode; | 27 using blink::WebNode; |
| 31 using blink::WebPoint; | 28 using blink::WebPoint; |
| 32 using blink::WebSize; | 29 using blink::WebSize; |
| 33 using blink::WebUserGestureIndicator; | 30 using blink::WebUserGestureIndicator; |
| 34 | 31 |
| 35 namespace autofill { | 32 namespace autofill { |
| 36 | 33 |
| 37 namespace { | 34 namespace { |
| 38 | 35 |
| 39 // Casts |element| to a WebFormControlElement, but only if it's a text field. | 36 // Casts |element| to a WebFormControlElement, but only if it's a text field. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 117 |
| 121 void PageClickTracker::Legacy::OnMouseDown(const WebNode& mouse_down_node) { | 118 void PageClickTracker::Legacy::OnMouseDown(const WebNode& mouse_down_node) { |
| 122 tracker_->OnMouseDown(mouse_down_node); | 119 tracker_->OnMouseDown(mouse_down_node); |
| 123 } | 120 } |
| 124 | 121 |
| 125 void PageClickTracker::Legacy::FocusChangeComplete() { | 122 void PageClickTracker::Legacy::FocusChangeComplete() { |
| 126 tracker_->FocusChangeComplete(); | 123 tracker_->FocusChangeComplete(); |
| 127 } | 124 } |
| 128 | 125 |
| 129 } // namespace autofill | 126 } // namespace autofill |
| OLD | NEW |