| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/page_click_tracker.h" | 5 #include "components/autofill/renderer/page_click_tracker.h" |
| 6 | 6 |
| 7 #include "components/autofill/renderer/form_autofill_util.h" | 7 #include "components/autofill/renderer/form_autofill_util.h" |
| 8 #include "components/autofill/renderer/page_click_listener.h" | 8 #include "components/autofill/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/Platform/chromium/public/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMouseEvent.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMouseEvent.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/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; |
| (...skipping 116 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 |