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

Side by Side Diff: Source/core/frame/LocalFrame.cpp

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix incorrect assumption Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 visitor->trace(m_selection); 234 visitor->trace(m_selection);
235 visitor->trace(m_eventHandler); 235 visitor->trace(m_eventHandler);
236 visitor->trace(m_console); 236 visitor->trace(m_console);
237 visitor->trace(m_inputMethodController); 237 visitor->trace(m_inputMethodController);
238 visitor->registerWeakMembers<LocalFrame, &LocalFrame::clearWeakMembers>(this ); 238 visitor->registerWeakMembers<LocalFrame, &LocalFrame::clearWeakMembers>(this );
239 HeapSupplementable<LocalFrame>::trace(visitor); 239 HeapSupplementable<LocalFrame>::trace(visitor);
240 #endif 240 #endif
241 Frame::trace(visitor); 241 Frame::trace(visitor);
242 } 242 }
243 243
244 LocalDOMWindow* LocalFrame::domWindow() const 244 DOMWindow* LocalFrame::domWindow() const
haraken 2014/11/08 09:17:25 Can we remove this method? DOMWindow* window = lo
dcheng 2014/11/08 23:59:56 The main reason we have localDOMWindow() is becaus
haraken 2014/11/10 08:58:20 Makes sense.
245 { 245 {
246 return m_domWindow.get(); 246 return m_domWindow.get();
247 } 247 }
248 248
249 void LocalFrame::navigate(Document& originDocument, const KURL& url, bool lockBa ckForwardList) 249 void LocalFrame::navigate(Document& originDocument, const KURL& url, bool lockBa ckForwardList)
250 { 250 {
251 m_navigationScheduler.scheduleLocationChange(&originDocument, url.string(), lockBackForwardList); 251 m_navigationScheduler.scheduleLocationChange(&originDocument, url.string(), lockBackForwardList);
252 } 252 }
253 253
254 void LocalFrame::detach() 254 void LocalFrame::detach()
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // We detach the FrameView's custom scroll bars as early as 788 // We detach the FrameView's custom scroll bars as early as
789 // possible to prevent m_doc->detach() from messing with the view 789 // possible to prevent m_doc->detach() from messing with the view
790 // such that its scroll bars won't be torn down. 790 // such that its scroll bars won't be torn down.
791 // 791 //
792 // FIXME: We should revisit this. 792 // FIXME: We should revisit this.
793 if (m_view) 793 if (m_view)
794 m_view->prepareForDetach(); 794 m_view->prepareForDetach();
795 } 795 }
796 796
797 } // namespace blink 797 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698