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 "components/autofill/content/renderer/form_autofill_util.h" | 7 #include "components/autofill/content/renderer/form_autofill_util.h" |
8 #include "components/autofill/content/renderer/page_click_listener.h" | 8 #include "components/autofill/content/renderer/page_click_listener.h" |
9 #include "content/public/renderer/render_view.h" | 9 #include "content/public/renderer/render_view.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMouseEvent.h" | |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | |
16 #include "third_party/WebKit/public/platform/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
| 11 #include "third_party/WebKit/public/web/WebDOMMouseEvent.h" |
| 12 #include "third_party/WebKit/public/web/WebDocument.h" |
| 13 #include "third_party/WebKit/public/web/WebFrame.h" |
| 14 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 15 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 16 #include "third_party/WebKit/public/web/WebView.h" |
17 | 17 |
18 using WebKit::WebDOMEvent; | 18 using WebKit::WebDOMEvent; |
19 using WebKit::WebDOMMouseEvent; | 19 using WebKit::WebDOMMouseEvent; |
20 using WebKit::WebElement; | 20 using WebKit::WebElement; |
21 using WebKit::WebFormControlElement; | 21 using WebKit::WebFormControlElement; |
22 using WebKit::WebFrame; | 22 using WebKit::WebFrame; |
23 using WebKit::WebInputElement; | 23 using WebKit::WebInputElement; |
24 using WebKit::WebInputEvent; | 24 using WebKit::WebInputEvent; |
25 using WebKit::WebMouseEvent; | 25 using WebKit::WebMouseEvent; |
26 using WebKit::WebNode; | 26 using WebKit::WebNode; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 was_focused_ = (node.document().focusedNode() == last_node_clicked_); | 137 was_focused_ = (node.document().focusedNode() == last_node_clicked_); |
138 } | 138 } |
139 | 139 |
140 void PageClickTracker::HandleTextFieldMaybeLosingFocus( | 140 void PageClickTracker::HandleTextFieldMaybeLosingFocus( |
141 const WebNode& newly_clicked_node) { | 141 const WebNode& newly_clicked_node) { |
142 if (DidSelectedTextFieldLoseFocus(newly_clicked_node)) | 142 if (DidSelectedTextFieldLoseFocus(newly_clicked_node)) |
143 listener_->InputElementLostFocus(); | 143 listener_->InputElementLostFocus(); |
144 } | 144 } |
145 | 145 |
146 } // namespace autofill | 146 } // namespace autofill |
OLD | NEW |