This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 618
CEF 3683 on Linux #666
Open
g-217
wants to merge
6
commits into
adobe:master
Choose a base branch
from
g-217:ubuntuExp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
CEF 3683 on Linux #666
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0936328
Cef 3538 integration (#1)
g-217 3a1452c
Linux setup
g-217 ae54e23
Copy paste is working on all windows except new Brackets window even …
g-217 2e5cae1
Removing changes not relavent for Linux
g-217 803c146
Deleted more than I should have
g-217 e6d58a4
Added copy instruction for new files
g-217 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,32 +272,6 @@ void ClientHandler::OnFullscreenModeChange(CefRefPtr<CefBrowser> browser, | |
NotifyFullscreen(fullscreen); | ||
} | ||
|
||
bool ClientHandler::OnConsoleMessage(CefRefPtr<CefBrowser> browser, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we leave the stub for debugging purposes? |
||
const CefString& message, | ||
const CefString& source, | ||
int line) { | ||
CEF_REQUIRE_UI_THREAD(); | ||
|
||
// FILE* file = fopen(console_log_file_.c_str(), "a"); | ||
// if (file) { | ||
// std::stringstream ss; | ||
// ss << "Message: " << message.ToString() << NEWLINE << | ||
// "Source: " << source.ToString() << NEWLINE << | ||
// "Line: " << line << NEWLINE << | ||
// "-----------------------" << NEWLINE; | ||
// fputs(ss.str().c_str(), file); | ||
// fclose(file); | ||
|
||
// if (first_console_message_) { | ||
// test_runner::Alert( | ||
// browser, "Console messages written to \"" + console_log_file_ + "\""); | ||
// first_console_message_ = false; | ||
// } | ||
// } | ||
|
||
return false; | ||
} | ||
|
||
void ClientHandler::OnBeforeDownload( | ||
CefRefPtr<CefBrowser> browser, | ||
CefRefPtr<CefDownloadItem> download_item, | ||
|
@@ -347,7 +321,6 @@ void ClientHandler::OnDraggableRegionsChanged( | |
|
||
NotifyDraggableRegions(regions); | ||
} | ||
#endif | ||
|
||
bool ClientHandler::OnRequestGeolocationPermission( | ||
CefRefPtr<CefBrowser> browser, | ||
|
@@ -360,6 +333,7 @@ bool ClientHandler::OnRequestGeolocationPermission( | |
callback->Continue(true); | ||
return true; | ||
} | ||
#endif | ||
|
||
bool ClientHandler::OnPreKeyEvent(CefRefPtr<CefBrowser> browser, | ||
const CefKeyEvent& event, | ||
|
@@ -393,7 +367,7 @@ bool ClientHandler::OnBeforePopup( | |
CefRefPtr<CefClient>& client, | ||
CefBrowserSettings& settings, | ||
bool* no_javascript_access) { | ||
CEF_REQUIRE_IO_THREAD(); | ||
CEF_REQUIRE_UI_THREAD(); | ||
|
||
// Return true to cancel the popup window. | ||
return !CreatePopupWindow(browser, false, popupFeatures, windowInfo, client, | ||
|
@@ -577,6 +551,7 @@ bool ClientHandler::OnCertificateError( | |
CefRefPtr<CefRequestCallback> callback) { | ||
CEF_REQUIRE_UI_THREAD(); | ||
|
||
#if 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better to remove this or add a configurable MACRO to handle this. |
||
CefRefPtr<CefSSLCertPrincipal> subject = ssl_info->GetSubject(); | ||
CefRefPtr<CefSSLCertPrincipal> issuer = ssl_info->GetIssuer(); | ||
|
||
|
@@ -622,6 +597,7 @@ bool ClientHandler::OnCertificateError( | |
|
||
// Load the error page. | ||
LoadErrorPage(browser->GetMainFrame(), request_url, cert_error, ss.str()); | ||
#endif | ||
|
||
return false; // Cancel the request. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ CefRefPtr<CefBrowser> AppGetBrowser() { | |
|
||
CefWindowHandle AppGetMainHwnd() { | ||
if (!g_handler.get()) | ||
return NULL; | ||
return 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we using an explicit integer for pointer here? CefWindowHandle is defined as HWND on Windows, NSView* on Mac OS X and GtkWidget* on Linux.
|
||
return g_handler->GetMainHwnd(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this required? Is it just for a safety enhancement?