mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-21 03:54:07 +02:00
.github
.idea
Application
Browser
Base
CefBrowserAdapter.cs
CefBrowserComponent.cs
CefByteArrayResourceHandler.cs
CefContextMenuModel.cs
CefDownloadRequestClient.cs
CefDragDataAdapter.cs
CefDragHandler.cs
CefErrorCodeAdapter.cs
CefFrameAdapter.cs
CefLifeSpanHandler.cs
CefRequestAdapter.cs
CefRequestHandler.cs
CefResourceHandlerFactory.cs
CefResourceRequestHandler.cs
CefResourceRequestHandlerFactory.cs
CefResponseAdapter.cs
CefResponseFilter.cs
CefSchemeHandlerFactory.cs
Handling
Notification
FormBrowser.Designer.cs
FormBrowser.cs
FormBrowser.resx
TrayIcon.Designer.cs
TrayIcon.cs
TweetDeckBrowser.cs
Configuration
Controls
Dialogs
Management
Plugins
Properties
Resources
Updates
Utils
bld
lib
subprocess
video
.gitattributes
.gitignore
LICENSE.md
Program.cs
README.md
Reporter.cs
TweetDuck.csproj
TweetDuck.sln
TweetDuck.sln.DotSettings
Version.cs
app.config
packages.config
27 lines
646 B
C#
27 lines
646 B
C#
using CefSharp;
|
|
using TweetLib.Browser.CEF.Interfaces;
|
|
|
|
namespace TweetDuck.Browser.Base {
|
|
sealed class CefFrameAdapter : IFrameAdapter<IFrame> {
|
|
public static CefFrameAdapter Instance { get; } = new CefFrameAdapter();
|
|
|
|
private CefFrameAdapter() {}
|
|
|
|
public bool IsValid(IFrame frame) {
|
|
return frame.IsValid;
|
|
}
|
|
|
|
public bool IsMain(IFrame frame) {
|
|
return frame.IsMain;
|
|
}
|
|
|
|
public void LoadUrl(IFrame frame, string url) {
|
|
frame.LoadUrl(url);
|
|
}
|
|
|
|
public void ExecuteJavaScriptAsync(IFrame frame, string script, string identifier, int startLine = 1) {
|
|
frame.ExecuteJavaScriptAsync(script, identifier, startLine);
|
|
}
|
|
}
|
|
}
|