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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 2764313002: Move plugins to be stored in HTMLPlugInElement. (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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 21 matching lines...) Expand all
32 #include "core/frame/FrameViewAutoSizeInfo.h" 32 #include "core/frame/FrameViewAutoSizeInfo.h"
33 #include "core/frame/LayoutSubtreeRootList.h" 33 #include "core/frame/LayoutSubtreeRootList.h"
34 #include "core/frame/RootFrameViewport.h" 34 #include "core/frame/RootFrameViewport.h"
35 #include "core/layout/MapCoordinatesFlags.h" 35 #include "core/layout/MapCoordinatesFlags.h"
36 #include "core/layout/ScrollAnchor.h" 36 #include "core/layout/ScrollAnchor.h"
37 #include "core/paint/FirstMeaningfulPaintDetector.h" 37 #include "core/paint/FirstMeaningfulPaintDetector.h"
38 #include "core/paint/ObjectPaintProperties.h" 38 #include "core/paint/ObjectPaintProperties.h"
39 #include "core/paint/PaintInvalidationCapableScrollableArea.h" 39 #include "core/paint/PaintInvalidationCapableScrollableArea.h"
40 #include "core/paint/PaintPhase.h" 40 #include "core/paint/PaintPhase.h"
41 #include "core/paint/ScrollbarManager.h" 41 #include "core/paint/ScrollbarManager.h"
42 #include "core/plugins/PluginView.h"
42 #include "platform/FrameViewBase.h" 43 #include "platform/FrameViewBase.h"
43 #include "platform/RuntimeEnabledFeatures.h" 44 #include "platform/RuntimeEnabledFeatures.h"
44 #include "platform/animation/CompositorAnimationHost.h" 45 #include "platform/animation/CompositorAnimationHost.h"
45 #include "platform/animation/CompositorAnimationTimeline.h" 46 #include "platform/animation/CompositorAnimationTimeline.h"
46 #include "platform/geometry/IntRect.h" 47 #include "platform/geometry/IntRect.h"
47 #include "platform/geometry/LayoutRect.h" 48 #include "platform/geometry/LayoutRect.h"
48 #include "platform/graphics/Color.h" 49 #include "platform/graphics/Color.h"
49 #include "platform/graphics/GraphicsLayerClient.h" 50 #include "platform/graphics/GraphicsLayerClient.h"
50 #include "platform/scroll/ScrollTypes.h" 51 #include "platform/scroll/ScrollTypes.h"
51 #include "platform/scroll/Scrollbar.h" 52 #include "platform/scroll/Scrollbar.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 LayoutRect scrollIntoView(const LayoutRect& rectInContent, 453 LayoutRect scrollIntoView(const LayoutRect& rectInContent,
453 const ScrollAlignment& alignX, 454 const ScrollAlignment& alignX,
454 const ScrollAlignment& alignY, 455 const ScrollAlignment& alignY,
455 ScrollType = ProgrammaticScroll) override; 456 ScrollType = ProgrammaticScroll) override;
456 457
457 // The window that hosts the FrameView. The FrameView will communicate scrolls 458 // The window that hosts the FrameView. The FrameView will communicate scrolls
458 // and repaints to the host window in the window's coordinate space. 459 // and repaints to the host window in the window's coordinate space.
459 HostWindow* getHostWindow() const; 460 HostWindow* getHostWindow() const;
460 461
461 typedef HeapHashSet<Member<FrameViewBase>> ChildrenSet; 462 typedef HeapHashSet<Member<FrameViewBase>> ChildrenSet;
463 typedef HeapHashSet<Member<PluginView>> PluginsSet;
462 464
463 // Functions for child manipulation and inspection. 465 // Functions for child manipulation and inspection.
464 void setParent(FrameViewBase*) override; 466 void setParent(FrameViewBase*) override;
465 void removeChild(FrameViewBase*); 467 void removeChild(FrameViewBase*);
466 void addChild(FrameViewBase*); 468 void addChild(FrameViewBase*);
467 const ChildrenSet* children() const { return &m_children; } 469 const ChildrenSet* children() const { return &m_children; }
470 void removePlugin(PluginView*);
471 void addPlugin(PluginView*);
472 const PluginsSet* plugins() const { return &m_plugins; }
468 473
469 // If the scroll view does not use a native widget, then it will have 474 // If the scroll view does not use a native widget, then it will have
470 // cross-platform Scrollbars. These functions can be used to obtain those 475 // cross-platform Scrollbars. These functions can be used to obtain those
471 // scrollbars. 476 // scrollbars.
472 Scrollbar* horizontalScrollbar() const override { 477 Scrollbar* horizontalScrollbar() const override {
473 return m_scrollbarManager.horizontalScrollbar(); 478 return m_scrollbarManager.horizontalScrollbar();
474 } 479 }
475 Scrollbar* verticalScrollbar() const override { 480 Scrollbar* verticalScrollbar() const override {
476 return m_scrollbarManager.verticalScrollbar(); 481 return m_scrollbarManager.verticalScrollbar();
477 } 482 }
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 bool m_hasBeenDisposed = false; 1135 bool m_hasBeenDisposed = false;
1131 #endif 1136 #endif
1132 1137
1133 ScrollbarMode m_horizontalScrollbarMode; 1138 ScrollbarMode m_horizontalScrollbarMode;
1134 ScrollbarMode m_verticalScrollbarMode; 1139 ScrollbarMode m_verticalScrollbarMode;
1135 1140
1136 bool m_horizontalScrollbarLock; 1141 bool m_horizontalScrollbarLock;
1137 bool m_verticalScrollbarLock; 1142 bool m_verticalScrollbarLock;
1138 1143
1139 ChildrenSet m_children; 1144 ChildrenSet m_children;
1145 PluginsSet m_plugins;
haraken 2017/03/22 15:32:33 You don't need to address this in this CL but it l
joelhockey 2017/03/27 06:42:21 I'm curious what you think is weird. I don't real
haraken 2017/03/28 07:39:41 Ah, thanks! That makes sense :)
1140 1146
1141 ScrollOffset m_pendingScrollDelta; 1147 ScrollOffset m_pendingScrollDelta;
1142 ScrollOffset m_scrollOffset; 1148 ScrollOffset m_scrollOffset;
1143 IntSize m_contentsSize; 1149 IntSize m_contentsSize;
1144 1150
1145 bool m_scrollbarsSuppressed; 1151 bool m_scrollbarsSuppressed;
1146 1152
1147 bool m_inUpdateScrollbars; 1153 bool m_inUpdateScrollbars;
1148 1154
1149 std::unique_ptr<LayoutAnalyzer> m_analyzer; 1155 std::unique_ptr<LayoutAnalyzer> m_analyzer;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 frameViewBase.isFrameView()); 1272 frameViewBase.isFrameView());
1267 DEFINE_TYPE_CASTS(FrameView, 1273 DEFINE_TYPE_CASTS(FrameView,
1268 ScrollableArea, 1274 ScrollableArea,
1269 scrollableArea, 1275 scrollableArea,
1270 scrollableArea->isFrameView(), 1276 scrollableArea->isFrameView(),
1271 scrollableArea.isFrameView()); 1277 scrollableArea.isFrameView());
1272 1278
1273 } // namespace blink 1279 } // namespace blink
1274 1280
1275 #endif // FrameView_h 1281 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698