Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Conversation

nethip
Copy link
Contributor

@nethip nethip commented Dec 12, 2017

CEF needs to be upgraded to a later version, as the current version of CEF has some issues with menus text getting corrupt. Also CEF needs to be patched wit IME as IME handling is missing in CEF.

The following are the note worthy things.

  1. Upgraded to CEF 2785
  2. Moved the initialization of brackets object to Global.js
  3. Forced the DPI scale factor to 1, as rendering is breaking upon launching. Surprisingly, upon resizing, the view starts to render properly. We need to revisit this in the next sprint.(This is not required anymore, as the rendering issue is now fixed with a different technique with a fake resize)

@nethip
Copy link
Contributor Author

nethip commented Dec 12, 2017

Brackets relevant PR adobe/brackets#13975. Both need to be merged.

@nethip
Copy link
Contributor Author

nethip commented Dec 20, 2017

@abhijitapte Could you please review this?

}

int RunMain(int argc, char* argv[]) {
int RunMain(int argc, char** argv) {

Choose a reason for hiding this comment

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

might not be really needed in this PR's context

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@abhijitapte I will revert this change.

@navch
Copy link
Contributor

navch commented Dec 20, 2017

Please keep track of 3rd point to pick that up in next sprint. Apart from that it looks good to me 👍

void ClientHandler::OnLoadStart(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame) {
CefRefPtr<CefFrame> frame
#ifdef OS_LINUX

Choose a reason for hiding this comment

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

is the function's signature like this for linux plaform alone?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is required as we have migrated to a newer version of CEF and the signature changed in the newer version.

Choose a reason for hiding this comment

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

got you. this will have to be removed after we are on 2785 on all three platforms.

Copy link

@abhijitapte abhijitapte left a comment

Choose a reason for hiding this comment

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

please address review comments.

@nethip
Copy link
Contributor Author

nethip commented Dec 20, 2017

@navch The third option is no more required as the issue was fixed in a different way.

@nethip
Copy link
Contributor Author

nethip commented Dec 20, 2017

@abhijitapte Addressed the review comments. Please have a look at the PR.

Copy link

@abhijitapte abhijitapte left a comment

Choose a reason for hiding this comment

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

LGTM

@swmitra swmitra merged commit 6153714 into master Dec 20, 2017
nethip added a commit that referenced this pull request Dec 20, 2017
* Force HiDPI to scale factor 1.0 for now on Linux

* Linux only: Changes required for CEF 2785 Integration

* 1) Removed force-device-scale-factor code\n 2) Introduced Delayed resize to repaginate view port content 3) Change the minor version of CEF to 1486

* Removing unused variable.

* Address review comments.

* Reverting the space change.
@ficristo ficristo deleted the nethip/LinuxCEFUpgrade2785 branch January 30, 2018 18:48
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