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

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

Issue 2834573005: Scrollbar no longer inherits from FrameViewBase. (Closed)
Patch Set: Created 3 years, 8 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 const ScrollAlignment& align_x, 464 const ScrollAlignment& align_x,
465 const ScrollAlignment& align_y, 465 const ScrollAlignment& align_y,
466 ScrollType = kProgrammaticScroll) override; 466 ScrollType = kProgrammaticScroll) override;
467 467
468 // The window that hosts the FrameView. The FrameView will communicate scrolls 468 // The window that hosts the FrameView. The FrameView will communicate scrolls
469 // and repaints to the host window in the window's coordinate space. 469 // and repaints to the host window in the window's coordinate space.
470 PlatformChromeClient* GetChromeClient() const; 470 PlatformChromeClient* GetChromeClient() const;
471 471
472 typedef HeapHashSet<Member<FrameViewBase>> ChildrenSet; 472 typedef HeapHashSet<Member<FrameViewBase>> ChildrenSet;
473 typedef HeapHashSet<Member<PluginView>> PluginsSet; 473 typedef HeapHashSet<Member<PluginView>> PluginsSet;
474 typedef HeapHashSet<Member<Scrollbar>> ScrollbarsSet;
474 475
475 // Functions for child manipulation and inspection. 476 // Functions for child manipulation and inspection.
476 void SetParent(FrameViewBase*) override; 477 void SetParent(FrameViewBase*) override;
477 void RemoveChild(FrameViewBase*); 478 void RemoveChild(FrameViewBase*);
478 void AddChild(FrameViewBase*); 479 void AddChild(FrameViewBase*);
479 const ChildrenSet* Children() const { return &children_; } 480 const ChildrenSet* Children() const { return &children_; }
480 void RemovePlugin(PluginView*); 481 void RemovePlugin(PluginView*);
481 void AddPlugin(PluginView*); 482 void AddPlugin(PluginView*);
482 const PluginsSet* Plugins() const { return &plugins_; } 483 const PluginsSet* Plugins() const { return &plugins_; }
484 void RemoveScrollbar(Scrollbar*);
485 void AddScrollbar(Scrollbar*);
486 const ScrollbarsSet* Scrollbars() const { return &scrollbars_; }
szager1 2017/04/21 08:37:52 Can this return a ScrollbarSet& instead?
joelhockey 2017/04/21 09:56:09 Yes. I will do a followup CL and I can make child
483 487
484 // If the scroll view does not use a native widget, then it will have 488 // If the scroll view does not use a native widget, then it will have
485 // cross-platform Scrollbars. These functions can be used to obtain those 489 // cross-platform Scrollbars. These functions can be used to obtain those
486 // scrollbars. 490 // scrollbars.
487 Scrollbar* HorizontalScrollbar() const override { 491 Scrollbar* HorizontalScrollbar() const override {
488 return scrollbar_manager_.HorizontalScrollbar(); 492 return scrollbar_manager_.HorizontalScrollbar();
489 } 493 }
490 Scrollbar* VerticalScrollbar() const override { 494 Scrollbar* VerticalScrollbar() const override {
491 return scrollbar_manager_.VerticalScrollbar(); 495 return scrollbar_manager_.VerticalScrollbar();
492 } 496 }
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 999
996 AXObjectCache* AxObjectCache() const; 1000 AXObjectCache* AxObjectCache() const;
997 1001
998 void SetLayoutSizeInternal(const IntSize&); 1002 void SetLayoutSizeInternal(const IntSize&);
999 1003
1000 bool AdjustScrollbarExistence(ComputeScrollbarExistenceOption = kFirstPass); 1004 bool AdjustScrollbarExistence(ComputeScrollbarExistenceOption = kFirstPass);
1001 void AdjustScrollbarOpacity(); 1005 void AdjustScrollbarOpacity();
1002 void AdjustScrollOffsetFromUpdateScrollbars(); 1006 void AdjustScrollOffsetFromUpdateScrollbars();
1003 bool VisualViewportSuppliesScrollbars(); 1007 bool VisualViewportSuppliesScrollbars();
1004 1008
1005 bool IsFrameViewScrollbar(const FrameViewBase* child) const {
1006 return HorizontalScrollbar() == child || VerticalScrollbar() == child;
1007 }
1008
1009 ScrollingCoordinator* GetScrollingCoordinator() const; 1009 ScrollingCoordinator* GetScrollingCoordinator() const;
1010 1010
1011 void PrepareLayoutAnalyzer(); 1011 void PrepareLayoutAnalyzer();
1012 std::unique_ptr<TracedValue> AnalyzerCounters(); 1012 std::unique_ptr<TracedValue> AnalyzerCounters();
1013 1013
1014 // LayoutObject for the viewport-defining element (see 1014 // LayoutObject for the viewport-defining element (see
1015 // Document::viewportDefiningElement). 1015 // Document::viewportDefiningElement).
1016 LayoutObject* ViewportLayoutObject() const; 1016 LayoutObject* ViewportLayoutObject() const;
1017 1017
1018 void CollectAnnotatedRegions(LayoutObject&, 1018 void CollectAnnotatedRegions(LayoutObject&,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 #endif 1118 #endif
1119 1119
1120 ScrollbarMode horizontal_scrollbar_mode_; 1120 ScrollbarMode horizontal_scrollbar_mode_;
1121 ScrollbarMode vertical_scrollbar_mode_; 1121 ScrollbarMode vertical_scrollbar_mode_;
1122 1122
1123 bool horizontal_scrollbar_lock_; 1123 bool horizontal_scrollbar_lock_;
1124 bool vertical_scrollbar_lock_; 1124 bool vertical_scrollbar_lock_;
1125 1125
1126 ChildrenSet children_; 1126 ChildrenSet children_;
1127 PluginsSet plugins_; 1127 PluginsSet plugins_;
1128 ScrollbarsSet scrollbars_;
1128 1129
1129 ScrollOffset pending_scroll_delta_; 1130 ScrollOffset pending_scroll_delta_;
1130 ScrollOffset scroll_offset_; 1131 ScrollOffset scroll_offset_;
1131 IntSize contents_size_; 1132 IntSize contents_size_;
1132 1133
1133 bool scrollbars_suppressed_; 1134 bool scrollbars_suppressed_;
1134 1135
1135 bool in_update_scrollbars_; 1136 bool in_update_scrollbars_;
1136 1137
1137 std::unique_ptr<LayoutAnalyzer> analyzer_; 1138 std::unique_ptr<LayoutAnalyzer> analyzer_;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 frameViewBase.IsFrameView()); 1249 frameViewBase.IsFrameView());
1249 DEFINE_TYPE_CASTS(FrameView, 1250 DEFINE_TYPE_CASTS(FrameView,
1250 ScrollableArea, 1251 ScrollableArea,
1251 scrollableArea, 1252 scrollableArea,
1252 scrollableArea->IsFrameView(), 1253 scrollableArea->IsFrameView(),
1253 scrollableArea.IsFrameView()); 1254 scrollableArea.IsFrameView());
1254 1255
1255 } // namespace blink 1256 } // namespace blink
1256 1257
1257 #endif // FrameView_h 1258 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698