| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 void WebFrameImpl::EndPrint() { | 1928 void WebFrameImpl::EndPrint() { |
| 1929 DCHECK(print_context_.get()); | 1929 DCHECK(print_context_.get()); |
| 1930 if (print_context_.get()) | 1930 if (print_context_.get()) |
| 1931 print_context_->end(); | 1931 print_context_->end(); |
| 1932 print_context_.reset(NULL); | 1932 print_context_.reset(NULL); |
| 1933 } | 1933 } |
| 1934 | 1934 |
| 1935 int WebFrameImpl::PendingFrameUnloadEventCount() const { | 1935 int WebFrameImpl::PendingFrameUnloadEventCount() const { |
| 1936 return frame()->eventHandler()->pendingFrameUnloadEventCount(); | 1936 return frame()->domWindow()->pendingUnloadEventListeners(); |
| 1937 } | 1937 } |
| 1938 | 1938 |
| 1939 void WebFrameImpl::RegisterPasswordListener( | 1939 void WebFrameImpl::RegisterPasswordListener( |
| 1940 PassRefPtr<WebCore::HTMLInputElement> input_element, | 1940 PassRefPtr<WebCore::HTMLInputElement> input_element, |
| 1941 webkit_glue::PasswordAutocompleteListener* listener) { | 1941 webkit_glue::PasswordAutocompleteListener* listener) { |
| 1942 RefPtr<WebCore::HTMLInputElement> element = input_element; | 1942 RefPtr<WebCore::HTMLInputElement> element = input_element; |
| 1943 DCHECK(password_listeners_.find(element) == password_listeners_.end()); | 1943 DCHECK(password_listeners_.find(element) == password_listeners_.end()); |
| 1944 password_listeners_.set(element, listener); | 1944 password_listeners_.set(element, listener); |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 webkit_glue::PasswordAutocompleteListener* WebFrameImpl::GetPasswordListener( | 1947 webkit_glue::PasswordAutocompleteListener* WebFrameImpl::GetPasswordListener( |
| 1948 WebCore::HTMLInputElement* input_element) { | 1948 WebCore::HTMLInputElement* input_element) { |
| 1949 return password_listeners_.get(input_element); | 1949 return password_listeners_.get(input_element); |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 void WebFrameImpl::ClearPasswordListeners() { | 1952 void WebFrameImpl::ClearPasswordListeners() { |
| 1953 for (PasswordListenerMap::iterator iter = password_listeners_.begin(); | 1953 for (PasswordListenerMap::iterator iter = password_listeners_.begin(); |
| 1954 iter != password_listeners_.end(); ++iter) { | 1954 iter != password_listeners_.end(); ++iter) { |
| 1955 delete iter->second; | 1955 delete iter->second; |
| 1956 } | 1956 } |
| 1957 password_listeners_.clear(); | 1957 password_listeners_.clear(); |
| 1958 } | 1958 } |
| OLD | NEW |