Merge branch 'master' into cef1

Conflicts:
	CefSharp.WinFormsExample/Browser.cs
	CefSharp/CefFormsWebBrowser.cpp
	CefSharp/CefFormsWebBrowser.h
	CefSharp/CefSharp.cpp
	CefSharp/CefWpfWebBrowser.cpp
	CefSharp/CefWpfWebBrowser.h
	CefSharp/ManagedCefRefPtr.h
	CefSharp/OffscreenClientAdapter.h
	CefSharp/ReadMe.txt
	CefSharp/ScriptException.h
	CefSharp/app.rc
	include/cef.h
	include/internal/cef_types_win.h
This commit is contained in:
anthony taranto
2012-02-17 19:17:29 -08:00
39 changed files with 177 additions and 168 deletions
+18 -18
View File
@@ -38,9 +38,9 @@
this.tableLayoutPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
this.SuspendLayout();
//
//
// tableLayoutPanel
//
//
this.tableLayoutPanel.ColumnCount = 2;
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35.15982F));
this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.84018F));
@@ -63,9 +63,9 @@
this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel.Size = new System.Drawing.Size(438, 263);
this.tableLayoutPanel.TabIndex = 0;
//
//
// logoPictureBox
//
//
this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.logoPictureBox.Image = global::CefSharp.Example.Properties.Resources.chromium256;
this.logoPictureBox.Location = new System.Drawing.Point(3, 3);
@@ -74,9 +74,9 @@
this.logoPictureBox.Size = new System.Drawing.Size(148, 257);
this.logoPictureBox.TabIndex = 12;
this.logoPictureBox.TabStop = false;
//
//
// labelProductName
//
//
this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelProductName.Location = new System.Drawing.Point(160, 0);
this.labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
@@ -86,9 +86,9 @@
this.labelProductName.TabIndex = 19;
this.labelProductName.Text = "Product Name";
this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
//
// labelVersion
//
//
this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelVersion.Location = new System.Drawing.Point(160, 26);
this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
@@ -98,9 +98,9 @@
this.labelVersion.TabIndex = 0;
this.labelVersion.Text = "Version";
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
//
// labelCopyright
//
//
this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelCopyright.Location = new System.Drawing.Point(160, 52);
this.labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
@@ -110,9 +110,9 @@
this.labelCopyright.TabIndex = 21;
this.labelCopyright.Text = "Copyright";
this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
//
// labelCompanyName
//
//
this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelCompanyName.Location = new System.Drawing.Point(160, 78);
this.labelCompanyName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
@@ -122,9 +122,9 @@
this.labelCompanyName.TabIndex = 22;
this.labelCompanyName.Text = "Company Name";
this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
//
// textBoxDescription
//
//
this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBoxDescription.Location = new System.Drawing.Point(160, 107);
this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
@@ -136,9 +136,9 @@
this.textBoxDescription.TabIndex = 23;
this.textBoxDescription.TabStop = false;
this.textBoxDescription.Text = "Description";
//
//
// okButton
//
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.okButton.Location = new System.Drawing.Point(360, 238);
@@ -146,9 +146,9 @@
this.okButton.Size = new System.Drawing.Size(75, 22);
this.okButton.TabIndex = 24;
this.okButton.Text = "&OK";
//
//
// AboutBox
//
//
this.AcceptButton = this.okButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CefSharp.WinFormsExample
labelCompanyName.Text = AssemblyCompany;
textBoxDescription.Text = "CefSharp - .Net binding for Chromium\r\n\r\n"
+ "Built on Chromium Embedded Framework\r\n"
+ " - " + CEF.CefVersion + "\r\n"
+ " - " + CEF.CefVersion + "\r\n"
+ "Built on Chromium\r\n"
+ " - " + CEF.ChromiumVersion + "\r\n";
}
+5 -5
View File
@@ -64,8 +64,8 @@ namespace CefSharp.WinFormsExample
}
else
{
_browserControl.Load(urlTextBox.Text);
}
_browserControl.Load(urlTextBox.Text);
}
}
private void HandleBackButtonClick(object sender, EventArgs e)
@@ -168,7 +168,7 @@ namespace CefSharp.WinFormsExample
}
private void TestRunArbitraryJavaScriptToolStripMenuItemClick(object sender, EventArgs e)
{
{
InputForm inputForm = new InputForm();
if(inputForm.ShowDialog() == DialogResult.OK)
{
@@ -177,7 +177,7 @@ namespace CefSharp.WinFormsExample
{
string result = _browserControl.RunScript(script);
MessageBox.Show(result, "Result");
}
}
catch(Exception err)
{
MessageBox.Show(err.ToString(), "Error");
@@ -191,7 +191,7 @@ namespace CefSharp.WinFormsExample
}
private void TestConsoleMessagesToolStripMenuItemClick(object sender, EventArgs e)
{
{
_browserControl.Load("javascript:console.log('console log message text')");
}
+6 -6
View File
@@ -31,16 +31,16 @@
this.input = new System.Windows.Forms.TextBox();
this.enterButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
//
// input
//
//
this.input.Location = new System.Drawing.Point(12, 12);
this.input.Name = "input";
this.input.Size = new System.Drawing.Size(419, 20);
this.input.TabIndex = 0;
//
//
// enterButton
//
//
this.enterButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.enterButton.Location = new System.Drawing.Point(437, 9);
this.enterButton.Name = "enterButton";
@@ -48,9 +48,9 @@
this.enterButton.TabIndex = 1;
this.enterButton.Text = "Enter";
this.enterButton.UseVisualStyleBackColor = true;
//
//
// InputForm
//
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(525, 46);
@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CefTest")]
@@ -14,8 +14,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,11 +25,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
+18 -18
View File
@@ -10,8 +10,8 @@
namespace CefSharp.Example.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
@@ -23,15 +23,15 @@ namespace CefSharp.Example.Properties {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
@@ -45,7 +45,7 @@ namespace CefSharp.Example.Properties {
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
@@ -59,7 +59,7 @@ namespace CefSharp.Example.Properties {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
///&lt;html&gt;
@@ -68,11 +68,11 @@ namespace CefSharp.Example.Properties {
/// &lt;/head&gt;
/// &lt;body&gt;
/// &lt;p&gt;
/// Result of calling bound.Repeat(&quot;hi &quot;, 5) =
/// Result of calling bound.Repeat(&quot;hi &quot;, 5) =
/// &lt;script type=&quot;text/javascript&quot;&gt;
/// var result = bound.Repeat(&quot;hi &quot;, 5);
/// document.write(&apos;&quot;&apos; + result + &apos;&quot;&apos;);
/// if(result == &quot;hi hi hi hi hi &quot;)
/// if(result == &quot;hi hi hi hi hi &quot;)
/// {
/// document.write(&quot; SUCCESS&quot;);
/// }
@@ -86,42 +86,42 @@ namespace CefSharp.Example.Properties {
return ResourceManager.GetString("BindingTest", resourceCulture);
}
}
internal static System.Drawing.Bitmap chromium256 {
get {
object obj = ResourceManager.GetObject("chromium256", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap nav_left_green {
get {
object obj = ResourceManager.GetObject("nav_left_green", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap nav_plain_green {
get {
object obj = ResourceManager.GetObject("nav_plain_green", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap nav_plain_red {
get {
object obj = ResourceManager.GetObject("nav_plain_red", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap nav_right_green {
get {
object obj = ResourceManager.GetObject("nav_right_green", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
///&lt;html&gt;
@@ -139,7 +139,7 @@ namespace CefSharp.Example.Properties {
return ResourceManager.GetString("PopupTest", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
///&lt;html&gt;
@@ -157,7 +157,7 @@ namespace CefSharp.Example.Properties {
return ResourceManager.GetString("SchemeTest", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
///&lt;html&gt;
@@ -5,28 +5,28 @@
</head>
<body>
<p>
Result of calling bound.Repeat("hi ", 5) =
Result of calling bound.Repeat("hi ", 5) =
<script type="text/javascript">
var result = bound.Repeat("hi ", 5);
document.write('"' + result + '"');
if(result == "hi hi hi hi hi ")
if(result == "hi hi hi hi hi ")
{
document.write(" SUCCESS");
}
else
{
document.write(" FAIL!");
}
}
</script>
</p>
Methods on bound object 'bound':<br />
<ul>
<script type="text/javascript">
for(var name in bound) {
document.write("<li>" + name + "</li>");
}
</script>
</ul>
</script>
</ul>
</body>
</html>
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CefSharp.WinFormsExample
/*
[Test]
public void MultiThreadedMessageLoop()
{
{
Assert.That(_settings.MultiThreadedMessageLoop, Is.False);
_settings.MultiThreadedMessageLoop = true;
Assert.That(_settings.MultiThreadedMessageLoop, Is.True);