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

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

Issue 125280: Send port-closed notification when a frame with ports unloads.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/webframe_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 return NULL; 680 return NULL;
681 } 681 }
682 682
683 WebFrame* WebFrameImpl::GetTop() const { 683 WebFrame* WebFrameImpl::GetTop() const {
684 if (frame_) 684 if (frame_)
685 return FromFrame(frame_->tree()->top()); 685 return FromFrame(frame_->tree()->top());
686 686
687 return NULL; 687 return NULL;
688 } 688 }
689 689
690 WebFrame* WebFrameImpl::GetFirstChild() const {
691 if (frame_ && frame_->tree()->firstChild())
692 return FromFrame(frame_->tree()->firstChild());
693
694 return NULL;
695 }
696
697 WebFrame* WebFrameImpl::GetNextSibling() const {
698 if (frame_ && frame_->tree()->nextSibling())
699 return FromFrame(frame_->tree()->nextSibling());
700
701 return NULL;
702 }
703
690 WebFrame* WebFrameImpl::GetChildFrame(const std::wstring& xpath) const { 704 WebFrame* WebFrameImpl::GetChildFrame(const std::wstring& xpath) const {
691 // xpath string can represent a frame deep down the tree (across multiple 705 // xpath string can represent a frame deep down the tree (across multiple
692 // frame DOMs). 706 // frame DOMs).
693 // Example, /html/body/table/tbody/tr/td/iframe\n/frameset/frame[0] 707 // Example, /html/body/table/tbody/tr/td/iframe\n/frameset/frame[0]
694 // should break into 2 xpaths 708 // should break into 2 xpaths
695 // /html/body/table/tbody/tr/td/iframe & /frameset/frame[0] 709 // /html/body/table/tbody/tr/td/iframe & /frameset/frame[0]
696 710
697 if (xpath.empty()) 711 if (xpath.empty())
698 return NULL; 712 return NULL;
699 713
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1924 return password_listeners_.get(input_element); 1938 return password_listeners_.get(input_element);
1925 } 1939 }
1926 1940
1927 void WebFrameImpl::ClearPasswordListeners() { 1941 void WebFrameImpl::ClearPasswordListeners() {
1928 for (PasswordListenerMap::iterator iter = password_listeners_.begin(); 1942 for (PasswordListenerMap::iterator iter = password_listeners_.begin();
1929 iter != password_listeners_.end(); ++iter) { 1943 iter != password_listeners_.end(); ++iter) {
1930 delete iter->second; 1944 delete iter->second;
1931 } 1945 }
1932 password_listeners_.clear(); 1946 password_listeners_.clear();
1933 } 1947 }
OLDNEW
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698