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

Side by Side Diff: sky/engine/core/page/Page.cpp

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/page/Page.h ('k') | sky/engine/platform/LifecycleContext.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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 PageLifecycleNotifier& Page::lifecycleNotifier() 352 PageLifecycleNotifier& Page::lifecycleNotifier()
353 { 353 {
354 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle Notifier()); 354 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle Notifier());
355 } 355 }
356 356
357 PassOwnPtr<LifecycleNotifier<Page> > Page::createLifecycleNotifier() 357 PassOwnPtr<LifecycleNotifier<Page> > Page::createLifecycleNotifier()
358 { 358 {
359 return PageLifecycleNotifier::create(this); 359 return PageLifecycleNotifier::create(this);
360 } 360 }
361 361
362 void Page::trace(Visitor* visitor)
363 {
364 #if ENABLE(OILPAN)
365 visitor->trace(m_dragCaretController);
366 visitor->trace(m_undoStack);
367 visitor->trace(m_multisamplingChangedObservers);
368 visitor->trace(m_frameHost);
369 #endif
370 Supplementable<Page>::trace(visitor);
371 LifecycleContext<Page>::trace(visitor);
372 }
373
374 void Page::willBeDestroyed() 362 void Page::willBeDestroyed()
375 { 363 {
376 RefPtr<LocalFrame> mainFrame = m_mainFrame; 364 RefPtr<LocalFrame> mainFrame = m_mainFrame;
377 365
378 mainFrame->detach(); 366 mainFrame->detach();
379 mainFrame->setView(nullptr); 367 mainFrame->setView(nullptr);
380 368
381 allPages().remove(this); 369 allPages().remove(this);
382 if (ordinaryPages().contains(this)) 370 if (ordinaryPages().contains(this))
383 ordinaryPages().remove(this); 371 ordinaryPages().remove(this);
(...skipping 14 matching lines...) Expand all
398 , editorClient(0) 386 , editorClient(0)
399 , spellCheckerClient(0) 387 , spellCheckerClient(0)
400 { 388 {
401 } 389 }
402 390
403 Page::PageClients::~PageClients() 391 Page::PageClients::~PageClients()
404 { 392 {
405 } 393 }
406 394
407 } // namespace blink 395 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/page/Page.h ('k') | sky/engine/platform/LifecycleContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698