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

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

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/page/Page.h ('k') | sky/engine/core/rendering/RenderBlock.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 17 matching lines...) Expand all
28 #include "sky/engine/core/editing/UndoStack.h" 28 #include "sky/engine/core/editing/UndoStack.h"
29 #include "sky/engine/core/events/Event.h" 29 #include "sky/engine/core/events/Event.h"
30 #include "sky/engine/core/fetch/ResourceFetcher.h" 30 #include "sky/engine/core/fetch/ResourceFetcher.h"
31 #include "sky/engine/core/frame/DOMTimer.h" 31 #include "sky/engine/core/frame/DOMTimer.h"
32 #include "sky/engine/core/frame/FrameConsole.h" 32 #include "sky/engine/core/frame/FrameConsole.h"
33 #include "sky/engine/core/frame/FrameHost.h" 33 #include "sky/engine/core/frame/FrameHost.h"
34 #include "sky/engine/core/frame/FrameView.h" 34 #include "sky/engine/core/frame/FrameView.h"
35 #include "sky/engine/core/frame/LocalDOMWindow.h" 35 #include "sky/engine/core/frame/LocalDOMWindow.h"
36 #include "sky/engine/core/frame/LocalFrame.h" 36 #include "sky/engine/core/frame/LocalFrame.h"
37 #include "sky/engine/core/frame/Settings.h" 37 #include "sky/engine/core/frame/Settings.h"
38 #include "sky/engine/core/page/AutoscrollController.h"
39 #include "sky/engine/core/page/ChromeClient.h" 38 #include "sky/engine/core/page/ChromeClient.h"
40 #include "sky/engine/core/page/FocusController.h" 39 #include "sky/engine/core/page/FocusController.h"
41 #include "sky/engine/core/page/PageLifecycleNotifier.h" 40 #include "sky/engine/core/page/PageLifecycleNotifier.h"
42 #include "sky/engine/core/rendering/RenderView.h" 41 #include "sky/engine/core/rendering/RenderView.h"
43 #include "sky/engine/platform/geometry/FloatRect.h" 42 #include "sky/engine/platform/geometry/FloatRect.h"
44 #include "sky/engine/public/platform/WebScreenInfo.h" 43 #include "sky/engine/public/platform/WebScreenInfo.h"
45 #include "sky/engine/wtf/HashMap.h" 44 #include "sky/engine/wtf/HashMap.h"
46 #include "sky/engine/wtf/PassRefPtr.h" 45 #include "sky/engine/wtf/PassRefPtr.h"
47 #include "sky/engine/wtf/RefCountedLeakCounter.h" 46 #include "sky/engine/wtf/RefCountedLeakCounter.h"
48 #include "sky/engine/wtf/StdLibExtras.h" 47 #include "sky/engine/wtf/StdLibExtras.h"
(...skipping 10 matching lines...) Expand all
59 return 1; 58 return 1;
60 Page* page = frame->page(); 59 Page* page = frame->page();
61 if (!page) 60 if (!page)
62 return 1; 61 return 1;
63 return page->deviceScaleFactor(); 62 return page->deviceScaleFactor();
64 } 63 }
65 64
66 Page::Page(PageClients& pageClients, ServiceProvider& services) 65 Page::Page(PageClients& pageClients, ServiceProvider& services)
67 : SettingsDelegate(Settings::create()) 66 : SettingsDelegate(Settings::create())
68 , m_animator(this) 67 , m_animator(this)
69 , m_autoscrollController(AutoscrollController::create(*this))
70 , m_chromeClient(pageClients.chromeClient) 68 , m_chromeClient(pageClients.chromeClient)
71 , m_dragCaretController(DragCaretController::create()) 69 , m_dragCaretController(DragCaretController::create())
72 , m_focusController(FocusController::create(this)) 70 , m_focusController(FocusController::create(this))
73 , m_undoStack(UndoStack::create()) 71 , m_undoStack(UndoStack::create())
74 , m_mainFrame(0) 72 , m_mainFrame(0)
75 , m_editorClient(pageClients.editorClient) 73 , m_editorClient(pageClients.editorClient)
76 , m_spellCheckerClient(pageClients.spellCheckerClient) 74 , m_spellCheckerClient(pageClients.spellCheckerClient)
77 , m_deviceScaleFactor(1) 75 , m_deviceScaleFactor(1)
78 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()) 76 , m_timerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval())
79 , m_visibilityState(PageVisibilityStateVisible) 77 , m_visibilityState(PageVisibilityStateVisible)
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 , editorClient(0) 350 , editorClient(0)
353 , spellCheckerClient(0) 351 , spellCheckerClient(0)
354 { 352 {
355 } 353 }
356 354
357 Page::PageClients::~PageClients() 355 Page::PageClients::~PageClients()
358 { 356 {
359 } 357 }
360 358
361 } // namespace blink 359 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/page/Page.h ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698