| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // The Mac interface forwards most of these commands to the application layer, | 5 // The Mac interface forwards most of these commands to the application layer, |
| 6 // and I'm not really sure what to do about most of them. | 6 // and I'm not really sure what to do about most of them. |
| 7 | 7 |
| 8 #include "config.h" | 8 #include "config.h" |
| 9 #include "webkit/glue/editor_client_impl.h" | 9 #include "webkit/glue/editor_client_impl.h" |
| 10 | 10 |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 web_view_->HideAutoCompletePopup(); | 696 web_view_->HideAutoCompletePopup(); |
| 697 | 697 |
| 698 // Notify any password-listener of the focus change. | 698 // Notify any password-listener of the focus change. |
| 699 WebCore::HTMLInputElement* input_element = | 699 WebCore::HTMLInputElement* input_element = |
| 700 webkit_glue::ElementToHTMLInputElement(element); | 700 webkit_glue::ElementToHTMLInputElement(element); |
| 701 if (!input_element) | 701 if (!input_element) |
| 702 return; | 702 return; |
| 703 | 703 |
| 704 WebFrameImpl* webframe = | 704 WebFrameImpl* webframe = |
| 705 WebFrameImpl::FromFrame(input_element->document()->frame()); | 705 WebFrameImpl::FromFrame(input_element->document()->frame()); |
| 706 if (webframe->GetView() && !webframe->GetView()->GetDelegate()) | 706 if (webframe->GetWebViewImpl() && !webframe->GetWebViewImpl()->GetDelegate()) |
| 707 return; // The page is getting closed, don't fill the password. | 707 return; // The page is getting closed, don't fill the password. |
| 708 | 708 |
| 709 webkit_glue::PasswordAutocompleteListener* listener = | 709 webkit_glue::PasswordAutocompleteListener* listener = |
| 710 webframe->GetPasswordListener(input_element); | 710 webframe->GetPasswordListener(input_element); |
| 711 if (!listener) | 711 if (!listener) |
| 712 return; | 712 return; |
| 713 | 713 |
| 714 std::wstring value = | 714 std::wstring value = |
| 715 webkit_glue::StringToStdWString(input_element->value()); | 715 webkit_glue::StringToStdWString(input_element->value()); |
| 716 listener->OnBlur(input_element, value); | 716 listener->OnBlur(input_element, value); |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 } | 1018 } |
| 1019 return L"(UNKNOWN AFFINITY)"; | 1019 return L"(UNKNOWN AFFINITY)"; |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 std::wstring EditorClientImpl::Describe(WebCore::CSSStyleDeclaration* style) { | 1022 std::wstring EditorClientImpl::Describe(WebCore::CSSStyleDeclaration* style) { |
| 1023 // TODO(pamg): Implement me. It's not clear what WebKit produces for this | 1023 // TODO(pamg): Implement me. It's not clear what WebKit produces for this |
| 1024 // (their [style description] method), and none of the layout tests provide | 1024 // (their [style description] method), and none of the layout tests provide |
| 1025 // an example. But because none of them use it, it's not yet important. | 1025 // an example. But because none of them use it, it's not yet important. |
| 1026 return std::wstring(); | 1026 return std::wstring(); |
| 1027 } | 1027 } |
| OLD | NEW |