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

Side by Side Diff: Source/core/page/Page.cpp

Issue 1008113002: Remove LifecycleNotifier<>::m_context. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/page/PageLifecycleNotifier.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 { 106 {
107 if (!frame) 107 if (!frame)
108 return 1; 108 return 1;
109 Page* page = frame->page(); 109 Page* page = frame->page();
110 if (!page) 110 if (!page)
111 return 1; 111 return 1;
112 return page->deviceScaleFactor(); 112 return page->deviceScaleFactor();
113 } 113 }
114 114
115 Page::Page(PageClients& pageClients) 115 Page::Page(PageClients& pageClients)
116 : PageLifecycleNotifier(this) 116 : SettingsDelegate(Settings::create())
117 , SettingsDelegate(Settings::create())
118 , m_animator(PageAnimator::create(*this)) 117 , m_animator(PageAnimator::create(*this))
119 , m_autoscrollController(AutoscrollController::create(*this)) 118 , m_autoscrollController(AutoscrollController::create(*this))
120 , m_chrome(Chrome::create(this, pageClients.chromeClient)) 119 , m_chrome(Chrome::create(this, pageClients.chromeClient))
121 , m_dragCaretController(DragCaretController::create()) 120 , m_dragCaretController(DragCaretController::create())
122 , m_dragController(DragController::create(this, pageClients.dragClient)) 121 , m_dragController(DragController::create(this, pageClients.dragClient))
123 , m_focusController(FocusController::create(this)) 122 , m_focusController(FocusController::create(this))
124 , m_contextMenuController(ContextMenuController::create(this, pageClients.co ntextMenuClient)) 123 , m_contextMenuController(ContextMenuController::create(this, pageClients.co ntextMenuClient))
125 , m_pointerLockController(PointerLockController::create(this)) 124 , m_pointerLockController(PointerLockController::create(this))
126 , m_undoStack(UndoStack::create()) 125 , m_undoStack(UndoStack::create())
127 , m_instrumentingAgents(InstrumentingAgents::create()) 126 , m_instrumentingAgents(InstrumentingAgents::create())
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 , dragClient(nullptr) 625 , dragClient(nullptr)
627 , spellCheckerClient(nullptr) 626 , spellCheckerClient(nullptr)
628 { 627 {
629 } 628 }
630 629
631 Page::PageClients::~PageClients() 630 Page::PageClients::~PageClients()
632 { 631 {
633 } 632 }
634 633
635 } // namespace blink 634 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/page/PageLifecycleNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698