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

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

Issue 2701983002: Implement complete lifecycle transition for IdleSpellCheckCallback (Closed)
Patch Set: Fix compiler error Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp ('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) 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 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
9 * rights reserved. 9 * rights reserved.
10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 DCHECK(m_loader.stateMachine()->creatingInitialEmptyDocument() || document()); 507 DCHECK(m_loader.stateMachine()->creatingInitialEmptyDocument() || document());
508 508
509 if (Document* document = this->document()) 509 if (Document* document = this->document())
510 ChildFrameDisconnector(*document).disconnect(); 510 ChildFrameDisconnector(*document).disconnect();
511 } 511 }
512 512
513 void LocalFrame::documentAttached() { 513 void LocalFrame::documentAttached() {
514 DCHECK(document()); 514 DCHECK(document());
515 selection().documentAttached(document()); 515 selection().documentAttached(document());
516 inputMethodController().documentAttached(document()); 516 inputMethodController().documentAttached(document());
517 spellChecker().documentAttached(document());
517 } 518 }
518 519
519 LocalDOMWindow* LocalFrame::domWindow() const { 520 LocalDOMWindow* LocalFrame::domWindow() const {
520 return toLocalDOMWindow(m_domWindow); 521 return toLocalDOMWindow(m_domWindow);
521 } 522 }
522 523
523 void LocalFrame::setDOMWindow(LocalDOMWindow* domWindow) { 524 void LocalFrame::setDOMWindow(LocalDOMWindow* domWindow) {
524 if (domWindow) 525 if (domWindow)
525 script().clearWindowProxy(); 526 script().clearWindowProxy();
526 527
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 916 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
916 m_frame->client()->frameBlameContext()->Enter(); 917 m_frame->client()->frameBlameContext()->Enter();
917 } 918 }
918 919
919 ScopedFrameBlamer::~ScopedFrameBlamer() { 920 ScopedFrameBlamer::~ScopedFrameBlamer() {
920 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) 921 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
921 m_frame->client()->frameBlameContext()->Leave(); 922 m_frame->client()->frameBlameContext()->Leave();
922 } 923 }
923 924
924 } // namespace blink 925 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698