Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: webkit/glue/editor_client_impl.cc

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/dom_serializer_unittest.cc ('k') | webkit/glue/glue_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/dom_serializer_unittest.cc ('k') | webkit/glue/glue_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698