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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.h

Issue 2743523002: Move FrameHost::m_globalRootScrollerController to Page (Closed)
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 30 matching lines...) Expand all
41 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
42 #include "wtf/Forward.h" 42 #include "wtf/Forward.h"
43 #include "wtf/HashSet.h" 43 #include "wtf/HashSet.h"
44 #include "wtf/Noncopyable.h" 44 #include "wtf/Noncopyable.h"
45 #include "wtf/text/WTFString.h" 45 #include "wtf/text/WTFString.h"
46 46
47 namespace blink { 47 namespace blink {
48 48
49 class AutoscrollController; 49 class AutoscrollController;
50 class BrowserControls; 50 class BrowserControls;
51 class TopDocumentRootScrollerController;
slangley 2017/03/09 04:18:28 nit: sort
sashab 2017/03/09 04:27:46 Ty, weird how git cl format didn't do that.
51 class ChromeClient; 52 class ChromeClient;
52 class ClientRectList; 53 class ClientRectList;
53 class ContextMenuClient; 54 class ContextMenuClient;
54 class ContextMenuController; 55 class ContextMenuController;
55 class Document; 56 class Document;
56 class DragCaret; 57 class DragCaret;
57 class DragController; 58 class DragController;
58 class EditorClient; 59 class EditorClient;
59 class FocusController; 60 class FocusController;
60 class Frame; 61 class Frame;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 UseCounter& useCounter() { return m_useCounter; } 183 UseCounter& useCounter() { return m_useCounter; }
183 Deprecation& deprecation() { return m_deprecation; } 184 Deprecation& deprecation() { return m_deprecation; }
184 HostsUsingFeatures& hostsUsingFeatures() { return m_hostsUsingFeatures; } 185 HostsUsingFeatures& hostsUsingFeatures() { return m_hostsUsingFeatures; }
185 186
186 PageScaleConstraintsSet& pageScaleConstraintsSet(); 187 PageScaleConstraintsSet& pageScaleConstraintsSet();
187 const PageScaleConstraintsSet& pageScaleConstraintsSet() const; 188 const PageScaleConstraintsSet& pageScaleConstraintsSet() const;
188 189
189 BrowserControls& browserControls(); 190 BrowserControls& browserControls();
190 const BrowserControls& browserControls() const; 191 const BrowserControls& browserControls() const;
191 192
193 TopDocumentRootScrollerController& globalRootScrollerController() const;
slangley 2017/03/09 04:18:28 why not inline?
sashab 2017/03/09 04:27:46 Prevent a #include? Copied from Page where it wasn
194
192 void setTabKeyCyclesThroughElements(bool b) { 195 void setTabKeyCyclesThroughElements(bool b) {
193 m_tabKeyCyclesThroughElements = b; 196 m_tabKeyCyclesThroughElements = b;
194 } 197 }
195 bool tabKeyCyclesThroughElements() const { 198 bool tabKeyCyclesThroughElements() const {
196 return m_tabKeyCyclesThroughElements; 199 return m_tabKeyCyclesThroughElements;
197 } 200 }
198 201
199 // Suspension is used to implement the "Optionally, pause while waiting for 202 // Suspension is used to implement the "Optionally, pause while waiting for
200 // the user to acknowledge the message" step of simple dialog processing: 203 // the user to acknowledge the message" step of simple dialog processing:
201 // https://html.spec.whatwg.org/multipage/webappapis.html#simple-dialogs 204 // https://html.spec.whatwg.org/multipage/webappapis.html#simple-dialogs
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 const Member<AutoscrollController> m_autoscrollController; 271 const Member<AutoscrollController> m_autoscrollController;
269 Member<ChromeClient> m_chromeClient; 272 Member<ChromeClient> m_chromeClient;
270 const Member<DragCaret> m_dragCaret; 273 const Member<DragCaret> m_dragCaret;
271 const Member<DragController> m_dragController; 274 const Member<DragController> m_dragController;
272 const Member<FocusController> m_focusController; 275 const Member<FocusController> m_focusController;
273 const Member<ContextMenuController> m_contextMenuController; 276 const Member<ContextMenuController> m_contextMenuController;
274 const std::unique_ptr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; 277 const std::unique_ptr<PageScaleConstraintsSet> m_pageScaleConstraintsSet;
275 const Member<PointerLockController> m_pointerLockController; 278 const Member<PointerLockController> m_pointerLockController;
276 Member<ScrollingCoordinator> m_scrollingCoordinator; 279 Member<ScrollingCoordinator> m_scrollingCoordinator;
277 const Member<BrowserControls> m_browserControls; 280 const Member<BrowserControls> m_browserControls;
281 const Member<TopDocumentRootScrollerController>
282 m_globalRootScrollerController;
278 283
279 // Typically, the main frame and Page should both be owned by the embedder, 284 // Typically, the main frame and Page should both be owned by the embedder,
280 // which must call Page::willBeDestroyed() prior to destroying Page. This 285 // which must call Page::willBeDestroyed() prior to destroying Page. This
281 // call detaches the main frame and clears this pointer, thus ensuring that 286 // call detaches the main frame and clears this pointer, thus ensuring that
282 // this field only references a live main frame. 287 // this field only references a live main frame.
283 // 288 //
284 // However, there are several locations (InspectorOverlay, SVGImage, and 289 // However, there are several locations (InspectorOverlay, SVGImage, and
285 // WebPagePopupImpl) which don't hold a reference to the main frame at all 290 // WebPagePopupImpl) which don't hold a reference to the main frame at all
286 // after creating it. These are still safe because they always create a 291 // after creating it. These are still safe because they always create a
287 // Frame with a FrameView. FrameView and Frame hold references to each 292 // Frame with a FrameView. FrameView and Frame hold references to each
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // Page. 330 // Page.
326 // FIXME: Most of the members of Page should move onto FrameHost. 331 // FIXME: Most of the members of Page should move onto FrameHost.
327 Member<FrameHost> m_frameHost; 332 Member<FrameHost> m_frameHost;
328 }; 333 };
329 334
330 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; 335 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>;
331 336
332 } // namespace blink 337 } // namespace blink
333 338
334 #endif // Page_h 339 #endif // Page_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698