GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CefSharp/CefSharp.Example/ScriptedMethodsBoundObject.cs at master · cefsharp/CefSharp

Expand file tree

/

ScriptedMethodsBoundObject.cs

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
40 lines (37 loc) · 1.5 KB
/

ScriptedMethodsBoundObject.cs

Copy path

File metadata and controls

40 lines (37 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright © 2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp.Example
{
/// <summary>
/// A class that is used to demonstrate how asynchronous javascript events can be returned to the .Net runtime environment.
/// </summary>
/// <seealso cref="ScriptedMethods"/>
/// <seealso cref="resources/ScriptedMethodsTest.html"/>
public class ScriptedMethodsBoundObject
{
/// <summary>
/// Raised when a Javascript event arrives.
/// </summary>
public event Action<string, object> EventArrived;
/// <summary>
/// This method will be exposed to the Javascript environment. It is
/// invoked in the Javascript environment when some event of interest
/// happens.
/// </summary>
/// <param name="eventName">The name of the event.</param>
/// <param name="eventData">Data provided by the invoker pertaining to the event.</param>
/// <remarks>
/// By default RaiseEvent will be translated to raiseEvent as a javascript function.
/// This is configurable when calling RegisterJsObject by setting camelCaseJavascriptNames;
/// </remarks>
public void RaiseEvent(string eventName, object eventData = null)
{
if (EventArrived != null)
{
EventArrived(eventName, eventData);
}
}
}
}
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.