Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrowserView: Rebased. #1013

Closed
wants to merge 24 commits into from
Closed

BrowserView: Rebased. #1013

wants to merge 24 commits into from

Conversation

manavmehta
Copy link
Collaborator

@manavmehta manavmehta commented Aug 8, 2020

What's this PR do?
Builds upon #831 which was built upon #793
Any background context you want to provide?

Screenshots?

You have tested this PR on:

  • Windows
  • Linux/Ubuntu
  • macOS (Not tested yet)

Tasks

  • Rebasing

  • Updating with current master removing errors

  • Testing

  • Context menu support in BV
    Note: This is not yet meant to be tested. Only merge conflicts are resolved as of now.

vsvipul and others added 24 commits August 8, 2020 09:22
View extends the BrowserView class in the main
process and provides and interface similar to
webview. Other functions can be added later
when required.
Adds ViewManager class which makes it easier
to create, manage and delete views. Also,
created some basic listeners which will be
required later.
Removes all instances of webview from main.ts and
adds an initial working instance of BrowserView.
Implements logic for updating badgeCount
to show message count in sidebar.
Removes tooltips that we show for orgs and settings,
as these tooltips are no more visible over the
BrowserViews, so there is no use of keeping them.
Instead, uses title property of HTMLElements, which
can be displayed over BrowserViews.
Destroys all views to recreate them later
when app is reloaded. Also, set lastActiveIndex
to 0 when a tab is removed.
Adds a refresh function which refreshes view
every 200 ms, and shows it only if the view
DOM content is loaded. Also, gets rid of buggy
browser view switching which we were facing earlier.
Removes the heavy setInterval which we were
using earlier to prevent heavy CPU Usage.
The main reason we were using a setInterval
earlier was because view switching was buggy.
This commit fixes that.
@manavmehta manavmehta closed this Aug 13, 2020
@manavmehta manavmehta deleted the bview branch August 13, 2020 11:47
@manavmehta manavmehta mentioned this pull request Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants