- What does desktop class mean?
- Getting more done in Safari
- New download manager
- Download and upload files in the background while working on other tabs or other apps
- Full-page zoom, hiding toolbar, per-site preferences
- All the keyboard shortcuts you expect from a desktop browser
- At the heart of it all is browsing desktop websites
- Apple has been working on Web browsers for a long time
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
import android.annotation.TargetApi | |
import android.os.Build.VERSION_CODES | |
import android.view.View | |
import android.view.Window | |
object WindowSpy { | |
/** | |
* Installs a listener for new [Window] instances. This should only be called once, any new call | |
* will uninstall the previous listener. |
javascript:(function(){
allowCopyAndPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowCopyAndPaste, true);
document.addEventListener('paste', allowCopyAndPaste, true);
document.addEventListener('onpaste', allowCopyAndPaste, true);
})();
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
class SizeHelper @JvmOverloads constructor( | |
context: Context, | |
attrs: AttributeSet? = null, | |
defStyleAttr: Int = 0 | |
) : ConstraintHelper(context, attrs, defStyleAttr) { | |
private val screenHeight: Int = resources.displayMetrics.heightPixels | |
private val screenWidth: Int = resources.displayMetrics.widthPixels | |
private var layoutConstraintScreenHeightPercent = UNSPECIFIED_CONSTRAINT_SCREEN_PERCENT |