Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Prep Page for removal of InternalsVisibleTo #150

Merged
merged 1 commit into from
Jun 16, 2016
Merged

Prep Page for removal of InternalsVisibleTo #150

merged 1 commit into from
Jun 16, 2016

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Apr 28, 2016

Description of Change

Add IPageController interface and update renderers to use it

{
get { return EmptyChildren; }
}
internal virtual ReadOnlyCollection<Element> LogicalChildrenInternal => EmptyChildren;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may have already considered this but interface definitions can be "overridden" like a virtual method by declaring the interface on the derived class and in that way we wouldn't need Internal methods. There are drawbacks such as having to implement all the other interface methods and not being as explicit without the override keyword. So up to you. https://gist.github.com/kingces95/47a4308e1597e149a214eb6e0daa9d5d

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like that would be problematic for anything that needs to use base. It'd be doable, but kind of a pain for maintenance.

@kingces95
Copy link
Contributor

👍 with a few suggestions

@hartez hartez changed the title Prep Page for removal of InternalsVisibleTo Prep Page for removal of InternalsVisibleTo [DO NOT MERGE] Apr 28, 2016
@hartez hartez force-pushed the ivt-page branch 2 times, most recently from 623413a to 92a5d4b Compare April 28, 2016 23:33
@hartez hartez changed the title Prep Page for removal of InternalsVisibleTo [DO NOT MERGE] Prep Page for removal of InternalsVisibleTo Apr 28, 2016
@@ -305,7 +308,7 @@ void OnTemplatedItemsChanged(object sender, NotifyCollectionChangedEventArgs e)

void Reset()
{
List<Element> snapshot = InternalChildren.ToList();
List <Element> snapshot = InternalChildren.ToList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space here not relevant

@rmarinho
Copy link
Member

rmarinho commented May 5, 2016

Seems good but 👎 for now because failing a UITest on android, Bugzilla35157.ButtonCanBeClicked

@samhouts
Copy link
Member

samhouts commented Jun 9, 2016

👍 6 green lights!

@rmarinho rmarinho merged commit d5be2f0 into master Jun 16, 2016
@rmarinho rmarinho deleted the ivt-page branch June 16, 2016 15:45
@samhouts samhouts added this to the 2.3.1 milestone Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants