From 3e62a930e25fc66b8b9161053a09d734d77d3e34 Mon Sep 17 00:00:00 2001 From: "Gun.io Whitespace Robot" Date: Sat, 28 Jan 2012 05:41:34 -0500 Subject: [PATCH 1/3] Remove whitespace [WhitespaceBot] --- CefSharp.Example/AboutBox.Designer.cs | 36 ++++++------ CefSharp.Example/AboutBox.cs | 2 +- CefSharp.Example/Browser.cs | 12 ++-- CefSharp.Example/InputForm.Designer.cs | 12 ++-- CefSharp.Example/Properties/AssemblyInfo.cs | 10 ++-- .../Properties/Resources.Designer.cs | 36 ++++++------ CefSharp.Example/Resources/BindingTest.html | 12 ++-- CefSharp.Example/TestSettings.cs | 2 +- CefSharp.WpfExample/App.xaml | 2 +- CefSharp.WpfExample/MainWindow.xaml.cs | 2 +- .../Properties/AssemblyInfo.cs | 16 ++--- CefSharp/CefFormsWebBrowser.cpp | 14 ++--- CefSharp/CefFormsWebBrowser.h | 10 ++-- CefSharp/CefSharp.cpp | 2 +- CefSharp/CefSharp.h | 4 +- CefSharp/CefWpfWebBrowser.cpp | 14 ++--- CefSharp/CefWpfWebBrowser.h | 10 ++-- CefSharp/ClientAdapter.cpp | 8 +-- CefSharp/ClientAdapter.h | 2 +- CefSharp/ConsoleMessageEventArgs.h | 2 +- CefSharp/IAfterResponse.h | 2 +- CefSharp/IBeforeMenu.h | 2 +- CefSharp/IBeforePopup.h | 2 +- CefSharp/IBeforeResourceLoad.h | 4 +- CefSharp/ICefWebBrowser.h | 4 +- CefSharp/ManagedCefRefPtr.h | 42 +++++++------- CefSharp/ReadMe.txt | 6 +- CefSharp/Request.cpp | 16 ++--- CefSharp/Request.h | 2 +- CefSharp/RequestResponse.cpp | 2 +- CefSharp/RequestResponse.h | 6 +- CefSharp/ReturnValue.h | 2 +- CefSharp/RtzCountdownEvent.h | 10 ++-- CefSharp/SchemeHandler.cpp | 2 +- CefSharp/SchemeHandler.h | 6 +- CefSharp/ScriptException.h | 6 +- CefSharp/Settings.h | 34 +++++------ CefSharp/StreamAdapter.cpp | 14 ++--- CefSharp/StreamAdapter.h | 2 +- CefSharp/Utils.cpp | 12 ++-- CefSharp/Utils.h | 2 +- CefSharp/WpfClientAdapter.h | 4 +- CefSharp/app.rc | 6 +- LICENSE | 2 +- README.markdown | 4 +- include/cef.h | 58 +++++++++---------- include/internal/cef_string_wrappers.h | 52 ++++++++--------- include/internal/cef_types.h | 10 ++-- include/internal/cef_types_win.h | 2 +- include/internal/cef_types_wrappers.h | 18 +++--- include/internal/cef_win.h | 2 +- 51 files changed, 272 insertions(+), 272 deletions(-) diff --git a/CefSharp.Example/AboutBox.Designer.cs b/CefSharp.Example/AboutBox.Designer.cs index af40413b3..b6fde2764 100644 --- a/CefSharp.Example/AboutBox.Designer.cs +++ b/CefSharp.Example/AboutBox.Designer.cs @@ -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; diff --git a/CefSharp.Example/AboutBox.cs b/CefSharp.Example/AboutBox.cs index de5181f45..d5b33b57e 100644 --- a/CefSharp.Example/AboutBox.cs +++ b/CefSharp.Example/AboutBox.cs @@ -17,7 +17,7 @@ namespace CefSharp.Example 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"; } diff --git a/CefSharp.Example/Browser.cs b/CefSharp.Example/Browser.cs index 75d7546ff..6aff60fef 100644 --- a/CefSharp.Example/Browser.cs +++ b/CefSharp.Example/Browser.cs @@ -23,7 +23,7 @@ namespace CefSharp.Example _browserControl.BeforePopupHandler = this; _browserControl.BeforeResourceLoadHandler = this; _browserControl.AfterResponseHandler = this; - toolStripContainer.ContentPanel.Controls.Add(_browserControl); + toolStripContainer.ContentPanel.Controls.Add(_browserControl); } private void HandleBrowserPropertyChanged(object sender, PropertyChangedEventArgs e) @@ -64,8 +64,8 @@ namespace CefSharp.Example } else { - _browserControl.Load(urlTextBox.Text); - } + _browserControl.Load(urlTextBox.Text); + } } private void HandleBackButtonClick(object sender, EventArgs e) @@ -168,7 +168,7 @@ namespace CefSharp.Example } private void TestRunArbitraryJavaScriptToolStripMenuItemClick(object sender, EventArgs e) - { + { InputForm inputForm = new InputForm(); if(inputForm.ShowDialog() == DialogResult.OK) { @@ -177,7 +177,7 @@ namespace CefSharp.Example { string result = _browserControl.RunScript(script, "about:blank", 1, 5000); MessageBox.Show(result, "Result"); - } + } catch(Exception err) { MessageBox.Show(err.ToString(), "Error"); @@ -191,7 +191,7 @@ namespace CefSharp.Example } private void TestConsoleMessagesToolStripMenuItemClick(object sender, EventArgs e) - { + { _browserControl.Load("javascript:console.log('console log message text')"); } diff --git a/CefSharp.Example/InputForm.Designer.cs b/CefSharp.Example/InputForm.Designer.cs index 7aee3fda7..d275da7ee 100644 --- a/CefSharp.Example/InputForm.Designer.cs +++ b/CefSharp.Example/InputForm.Designer.cs @@ -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); diff --git a/CefSharp.Example/Properties/AssemblyInfo.cs b/CefSharp.Example/Properties/AssemblyInfo.cs index 57f81587a..15074ebc1 100644 --- a/CefSharp.Example/Properties/AssemblyInfo.cs +++ b/CefSharp.Example/Properties/AssemblyInfo.cs @@ -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")] diff --git a/CefSharp.Example/Properties/Resources.Designer.cs b/CefSharp.Example/Properties/Resources.Designer.cs index fad40c11f..5db27e726 100644 --- a/CefSharp.Example/Properties/Resources.Designer.cs +++ b/CefSharp.Example/Properties/Resources.Designer.cs @@ -10,8 +10,8 @@ namespace CefSharp.Example.Properties { using System; - - + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -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() { } - + /// /// Returns the cached ResourceManager instance used by this class. /// @@ -45,7 +45,7 @@ namespace CefSharp.Example.Properties { return resourceMan; } } - + /// /// 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; } } - + /// /// Looks up a localized string similar to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ///<html> @@ -68,11 +68,11 @@ namespace CefSharp.Example.Properties { /// </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"); /// } @@ -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)); } } - + /// /// Looks up a localized string similar to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ///<html> @@ -139,7 +139,7 @@ namespace CefSharp.Example.Properties { return ResourceManager.GetString("PopupTest", resourceCulture); } } - + /// /// Looks up a localized string similar to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ///<html> @@ -157,7 +157,7 @@ namespace CefSharp.Example.Properties { return ResourceManager.GetString("SchemeTest", resourceCulture); } } - + /// /// Looks up a localized string similar to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ///<html> diff --git a/CefSharp.Example/Resources/BindingTest.html b/CefSharp.Example/Resources/BindingTest.html index 40a058e1c..92f5ade6f 100644 --- a/CefSharp.Example/Resources/BindingTest.html +++ b/CefSharp.Example/Resources/BindingTest.html @@ -5,28 +5,28 @@

- Result of calling bound.Repeat("hi ", 5) = + Result of calling bound.Repeat("hi ", 5) =

- + Methods on bound object 'bound':
    -
+ + \ No newline at end of file diff --git a/CefSharp.Example/TestSettings.cs b/CefSharp.Example/TestSettings.cs index a0d19d85c..45b1f4ba5 100644 --- a/CefSharp.Example/TestSettings.cs +++ b/CefSharp.Example/TestSettings.cs @@ -17,7 +17,7 @@ namespace CefSharp.Example /* [Test] public void MultiThreadedMessageLoop() - { + { Assert.That(_settings.MultiThreadedMessageLoop, Is.False); _settings.MultiThreadedMessageLoop = true; Assert.That(_settings.MultiThreadedMessageLoop, Is.True); diff --git a/CefSharp.WpfExample/App.xaml b/CefSharp.WpfExample/App.xaml index ad90953ac..28124934a 100644 --- a/CefSharp.WpfExample/App.xaml +++ b/CefSharp.WpfExample/App.xaml @@ -3,6 +3,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml"> - + diff --git a/CefSharp.WpfExample/MainWindow.xaml.cs b/CefSharp.WpfExample/MainWindow.xaml.cs index da6a6b04a..601e0b140 100644 --- a/CefSharp.WpfExample/MainWindow.xaml.cs +++ b/CefSharp.WpfExample/MainWindow.xaml.cs @@ -75,7 +75,7 @@ namespace CefSharp.WpfExample else { browser.Load(urlTextBox.Text); - } + } } private void urlTextBox_KeyDown(object sender, KeyEventArgs e) diff --git a/CefSharp.WpfExample/Properties/AssemblyInfo.cs b/CefSharp.WpfExample/Properties/AssemblyInfo.cs index d717136b5..9318db749 100644 --- a/CefSharp.WpfExample/Properties/AssemblyInfo.cs +++ b/CefSharp.WpfExample/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; -// 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("CefSharp.WpfExample")] @@ -16,12 +16,12 @@ using System.Windows; [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)] -//In order to begin building localizable applications, set +//In order to begin building localizable applications, set //CultureYouAreCodingWith in your .csproj file //inside a . For example, if you are using US english //in your source files, set the to en-US. Then uncomment @@ -33,10 +33,10 @@ using System.Windows; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, + //(used if a resource is not found in the page, // or application resource dictionaries) ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, + //(used if a resource is not found in the page, // app, or any theme specific resource dictionaries) )] @@ -44,11 +44,11 @@ using System.Windows; // 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")] diff --git a/CefSharp/CefFormsWebBrowser.cpp b/CefSharp/CefFormsWebBrowser.cpp index 6020a9e1e..65870cf47 100644 --- a/CefSharp/CefFormsWebBrowser.cpp +++ b/CefSharp/CefFormsWebBrowser.cpp @@ -73,11 +73,11 @@ namespace CefSharp String^ CefFormsWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine, int timeout) { WaitForInitialized(); - + _jsError = false; _jsResult = nullptr; /* - script = + script = "(function() {" " try { " " __js_run_done(" + script + ");" @@ -86,7 +86,7 @@ namespace CefSharp " }" "})();"; */ - + CefRefPtr task = new JsTask(this, toNative(script), toNative(scriptUrl), startLine); _clientAdapter->GetCefBrowser()->GetMainFrame()->ExecuteJavaScriptTask(static_cast>(task)); @@ -95,7 +95,7 @@ namespace CefSharp throw gcnew TimeoutException(L"Timed out waiting for JavaScript to return"); } - if(_jsError == false) + if(_jsError == false) { return _jsResult; } @@ -110,7 +110,7 @@ namespace CefSharp void CefFormsWebBrowser::OnHandleCreated(EventArgs^ e) { - if (DesignMode == false) + if (DesignMode == false) { _clientAdapter = new ClientAdapter(this); CefRefPtr ptr = _clientAdapter.get(); @@ -172,13 +172,13 @@ namespace CefSharp void CefFormsWebBrowser::SetNavState(bool isLoading, bool canGoBack, bool canGoForward) { - if(isLoading != _isLoading) + if(isLoading != _isLoading) { _isLoading = isLoading; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"IsLoading")); } - if(canGoBack != _canGoBack) + if(canGoBack != _canGoBack) { _canGoBack = canGoBack; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"CanGoBack")); diff --git a/CefSharp/CefFormsWebBrowser.h b/CefSharp/CefFormsWebBrowser.h index 1af1d80cc..f812abe0b 100644 --- a/CefSharp/CefFormsWebBrowser.h +++ b/CefSharp/CefFormsWebBrowser.h @@ -91,7 +91,7 @@ namespace CefSharp virtual void SetToolTip(String^ text); virtual void SetAddress(String^ address); virtual void SetNavState(bool isLoading, bool canGoBack, bool canGoForward); - + virtual void AddFrame(CefRefPtr frame); virtual void FrameLoadComplete(CefRefPtr frame); @@ -139,13 +139,13 @@ namespace CefSharp } property bool CanGoForward - { - bool get() { return _canGoForward; } + { + bool get() { return _canGoForward; } } property bool CanGoBack - { - bool get() { return _canGoBack; } + { + bool get() { return _canGoBack; } } property bool IsLoading diff --git a/CefSharp/CefSharp.cpp b/CefSharp/CefSharp.cpp index d70a43205..2e8560933 100644 --- a/CefSharp/CefSharp.cpp +++ b/CefSharp/CefSharp.cpp @@ -8,7 +8,7 @@ #include "CefFormsWebBrowser.h" #include "CefWpfWebBrowser.h" -namespace CefSharp +namespace CefSharp { } diff --git a/CefSharp/CefSharp.h b/CefSharp/CefSharp.h index 1787cb321..e87bae234 100644 --- a/CefSharp/CefSharp.h +++ b/CefSharp/CefSharp.h @@ -9,14 +9,14 @@ using namespace System; using namespace System::IO; using namespace System::Collections::Generic; -namespace CefSharp +namespace CefSharp { public ref class CEF sealed { private: static bool _initialized = false; static IDictionary^ _boundObjects; - + static CEF() { _boundObjects = gcnew Dictionary(); diff --git a/CefSharp/CefWpfWebBrowser.cpp b/CefSharp/CefWpfWebBrowser.cpp index de996e8b6..768f6f429 100644 --- a/CefSharp/CefWpfWebBrowser.cpp +++ b/CefSharp/CefWpfWebBrowser.cpp @@ -81,11 +81,11 @@ namespace CefSharp String^ CefWpfWebBrowser::RunScript(String^ script, String^ scriptUrl, int startLine, int timeout) { WaitForInitialized(); - + _jsError = false; _jsResult = nullptr; /* - script = + script = "(function() {" " try { " " __js_run_done(" + script + ");" @@ -94,7 +94,7 @@ namespace CefSharp " }" "})();"; */ - + CefRefPtr task = new JsTask(this, toNative(script), toNative(scriptUrl), startLine); _clientAdapter->GetCefBrowser()->GetMainFrame()->ExecuteJavaScriptTask(static_cast>(task)); @@ -103,7 +103,7 @@ namespace CefSharp throw gcnew TimeoutException(L"Timed out waiting for JavaScript to return"); } - if(_jsError == false) + if(_jsError == false) { return _jsResult; } @@ -134,13 +134,13 @@ namespace CefSharp void CefWpfWebBrowser::SetNavState(bool isLoading, bool canGoBack, bool canGoForward) { - if(isLoading != _isLoading) + if(isLoading != _isLoading) { _isLoading = isLoading; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"IsLoading")); } - if(canGoBack != _canGoBack) + if(canGoBack != _canGoBack) { _canGoBack = canGoBack; PropertyChanged(this, gcnew PropertyChangedEventArgs(L"CanGoBack")); @@ -296,7 +296,7 @@ namespace CefSharp IntPtr CefWpfWebBrowser::SourceHook(IntPtr hWnd, int message, IntPtr wParam, IntPtr lParam, bool% handled) { handled = false; - + switch(message) { case WM_KEYDOWN: diff --git a/CefSharp/CefWpfWebBrowser.h b/CefSharp/CefWpfWebBrowser.h index cbe397184..3fcf2c631 100644 --- a/CefSharp/CefWpfWebBrowser.h +++ b/CefSharp/CefWpfWebBrowser.h @@ -116,7 +116,7 @@ namespace CefSharp virtual void SetToolTip(String^ text); virtual void SetAddress(String^ address); virtual void SetNavState(bool isLoading, bool canGoBack, bool canGoForward); - + virtual void AddFrame(CefRefPtr frame); virtual void FrameLoadComplete(CefRefPtr frame); @@ -159,13 +159,13 @@ namespace CefSharp } property bool CanGoForward - { - bool get() { return _canGoForward; } + { + bool get() { return _canGoForward; } } property bool CanGoBack - { - bool get() { return _canGoBack; } + { + bool get() { return _canGoBack; } } property bool IsLoading diff --git a/CefSharp/ClientAdapter.cpp b/CefSharp/ClientAdapter.cpp index f47ed9f6e..01ef92a4d 100644 --- a/CefSharp/ClientAdapter.cpp +++ b/CefSharp/ClientAdapter.cpp @@ -9,7 +9,7 @@ #include "IAfterResponse.h" #include "StreamAdapter.h" -namespace CefSharp +namespace CefSharp { bool ClientAdapter::OnBeforePopup(CefRefPtr parentBrowser, const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo, const CefString& url, CefRefPtr& client, CefBrowserSettings& settings) { @@ -98,7 +98,7 @@ namespace CefSharp AutoLock lock_scope(this); if (frame->IsMain()) { - _browserControl->SetNavState(false, browser->CanGoBack(), browser->CanGoForward()); + _browserControl->SetNavState(false, browser->CanGoBack(), browser->CanGoForward()); } _browserControl->FrameLoadComplete(frame); @@ -111,7 +111,7 @@ namespace CefSharp { CefRequestWrapper^ wrapper = gcnew CefRequestWrapper(request); RequestResponse^ requestResponse = gcnew RequestResponse(wrapper); - + handler->HandleBeforeResourceLoad(_browserControl, requestResponse); if(requestResponse->Action == ResponseAction::Respond) @@ -131,7 +131,7 @@ namespace CefSharp } } - return false; + return false; } void ClientAdapter::OnResourceResponse(CefRefPtr browser, const CefString& url, CefRefPtr response, CefRefPtr& filter) diff --git a/CefSharp/ClientAdapter.h b/CefSharp/ClientAdapter.h index 567e39c6c..1cc401507 100644 --- a/CefSharp/ClientAdapter.h +++ b/CefSharp/ClientAdapter.h @@ -1,7 +1,7 @@ #include "stdafx.h" #pragma once -namespace CefSharp +namespace CefSharp { using namespace System; diff --git a/CefSharp/ConsoleMessageEventArgs.h b/CefSharp/ConsoleMessageEventArgs.h index 4ddba8293..178cc6a7d 100644 --- a/CefSharp/ConsoleMessageEventArgs.h +++ b/CefSharp/ConsoleMessageEventArgs.h @@ -12,7 +12,7 @@ public ref class ConsoleMessageEventArgs : EventArgs String^ _message; String^ _source; int _line; - + public: ConsoleMessageEventArgs(String^ message, String^ source, int line) : _message(message), _source(source), _line(line) {} diff --git a/CefSharp/IAfterResponse.h b/CefSharp/IAfterResponse.h index ff054dddd..436c92047 100644 --- a/CefSharp/IAfterResponse.h +++ b/CefSharp/IAfterResponse.h @@ -3,7 +3,7 @@ using namespace System; -namespace CefSharp +namespace CefSharp { public interface class IAfterResponse { diff --git a/CefSharp/IBeforeMenu.h b/CefSharp/IBeforeMenu.h index 4124fba16..2a77a210c 100644 --- a/CefSharp/IBeforeMenu.h +++ b/CefSharp/IBeforeMenu.h @@ -3,7 +3,7 @@ using namespace System; -namespace CefSharp +namespace CefSharp { public interface class IBeforeMenu { diff --git a/CefSharp/IBeforePopup.h b/CefSharp/IBeforePopup.h index e4c867aef..58e264ef4 100644 --- a/CefSharp/IBeforePopup.h +++ b/CefSharp/IBeforePopup.h @@ -3,7 +3,7 @@ using namespace System; -namespace CefSharp +namespace CefSharp { public interface class IBeforePopup { diff --git a/CefSharp/IBeforeResourceLoad.h b/CefSharp/IBeforeResourceLoad.h index 747bd13ef..cf9bee04f 100644 --- a/CefSharp/IBeforeResourceLoad.h +++ b/CefSharp/IBeforeResourceLoad.h @@ -8,12 +8,12 @@ using namespace System; using namespace System::IO; -namespace CefSharp +namespace CefSharp { public interface class IBeforeResourceLoad { public: - + /// called before all resource loads. /// allows the Request to be manipulated or an alternate response to be provided void HandleBeforeResourceLoad(ICefWebBrowser^ browserControl, IRequestResponse^ requestResponse); diff --git a/CefSharp/ICefWebBrowser.h b/CefSharp/ICefWebBrowser.h index 9365c4f34..418b194b3 100644 --- a/CefSharp/ICefWebBrowser.h +++ b/CefSharp/ICefWebBrowser.h @@ -4,7 +4,7 @@ using namespace System; using namespace System::ComponentModel; -namespace CefSharp +namespace CefSharp { interface class IBeforePopup; interface class IBeforeResourceLoad; @@ -25,7 +25,7 @@ namespace CefSharp void SetToolTip(String^ text); void SetAddress(String^ address); void SetNavState(bool isLoading, bool canGoBack, bool canGoForward); - + void AddFrame(CefRefPtr frame); void FrameLoadComplete(CefRefPtr frame); diff --git a/CefSharp/ManagedCefRefPtr.h b/CefSharp/ManagedCefRefPtr.h index 8a6dcdf4d..6d5eaf3d9 100644 --- a/CefSharp/ManagedCefRefPtr.h +++ b/CefSharp/ManagedCefRefPtr.h @@ -8,7 +8,7 @@ public: MCefRefPtr() : _ptr(NULL) {} - MCefRefPtr(T* p) : _ptr(p) + MCefRefPtr(T* p) : _ptr(p) { if (_ptr) { @@ -16,7 +16,7 @@ public: } } - MCefRefPtr(const MCefRefPtr% r) : _ptr(r._ptr) + MCefRefPtr(const MCefRefPtr% r) : _ptr(r._ptr) { if (_ptr) { @@ -24,7 +24,7 @@ public: } } - MCefRefPtr(const CefRefPtr& r) : _ptr(r.get()) + MCefRefPtr(const CefRefPtr& r) : _ptr(r.get()) { if (_ptr) { @@ -32,7 +32,7 @@ public: } } - ~MCefRefPtr() + ~MCefRefPtr() { if (_ptr) { @@ -48,23 +48,23 @@ public: } } - T* get() - { - return _ptr; - } - - /* - operator T*() // commented out for now as this operator interferes with the return statement of MCefRefPtr% operator=(T* p) - { - return _ptr; - }*/ - - T* operator->() + T* get() { - return _ptr; + return _ptr; } - MCefRefPtr% operator=(T* p) + /* + operator T*() // commented out for now as this operator interferes with the return statement of MCefRefPtr% operator=(T* p) + { + return _ptr; + }*/ + + T* operator->() + { + return _ptr; + } + + MCefRefPtr% operator=(T* p) { // AddRef first so that self assignment should work if (p) @@ -79,19 +79,19 @@ public: return *this; } - MCefRefPtr% operator=(const MCefRefPtr% r) + MCefRefPtr% operator=(const MCefRefPtr% r) { return %this = r._ptr; } - void swap(T** pp) + void swap(T** pp) { T* p = _ptr; _ptr = *pp; *pp = p; } - void swap(MCefRefPtr% r) + void swap(MCefRefPtr% r) { swap(%r._ptr); } diff --git a/CefSharp/ReadMe.txt b/CefSharp/ReadMe.txt index 369eeb322..753096549 100644 --- a/CefSharp/ReadMe.txt +++ b/CefSharp/ReadMe.txt @@ -2,14 +2,14 @@ DYNAMIC LINK LIBRARY : CefSharp Project Overview ======================================================================== -AppWizard has created this CefSharp DLL for you. +AppWizard has created this CefSharp DLL for you. This file contains a summary of what you will find in each of the files that make up your CefSharp application. CefSharp.vcproj - This is the main project file for VC++ projects generated using an Application Wizard. - It contains information about the version of Visual C++ that generated the file, and + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and information about the platforms, configurations, and project features selected with the Application Wizard. diff --git a/CefSharp/Request.cpp b/CefSharp/Request.cpp index 5e525fe55..70ec86ca2 100644 --- a/CefSharp/Request.cpp +++ b/CefSharp/Request.cpp @@ -5,24 +5,24 @@ namespace CefSharp { - String^ CefRequestWrapper::Url::get() + String^ CefRequestWrapper::Url::get() { return toClr(_wrappedRequest->GetURL()); } void CefRequestWrapper::Url::set(String^ url) { - if(url == nullptr) + if(url == nullptr) { throw gcnew System::ArgumentException("cannot be null", "url"); } - + CefString str = toNative(url); _wrappedRequest->SetURL(str); } - String^ CefRequestWrapper::Method::get() - { + String^ CefRequestWrapper::Method::get() + { return toClr(_wrappedRequest->GetMethod()); } @@ -42,13 +42,13 @@ namespace CefSharp return headers; } - - + + void CefRequestWrapper::SetHeaders(IDictionary^ headers) { CefRequest::HeaderMap hm; - for each(KeyValuePair^ pair in headers) + for each(KeyValuePair^ pair in headers) { CefString name = toNative(pair->Key); CefString value = toNative(pair->Value); diff --git a/CefSharp/Request.h b/CefSharp/Request.h index 5b3c51fbf..c9f2aef50 100644 --- a/CefSharp/Request.h +++ b/CefSharp/Request.h @@ -22,7 +22,7 @@ namespace CefSharp CefRequestWrapper(CefRefPtr cefRequest) : _wrappedRequest(cefRequest) {} public: - virtual property String^ Url { String^ get(); void set(String^ url); } + virtual property String^ Url { String^ get(); void set(String^ url); } virtual property String^ Method { String^ get(); } virtual IDictionary^ GetHeaders(); virtual void SetHeaders(IDictionary^ headers); diff --git a/CefSharp/RequestResponse.cpp b/CefSharp/RequestResponse.cpp index 3bd278332..d2b8f3b71 100644 --- a/CefSharp/RequestResponse.cpp +++ b/CefSharp/RequestResponse.cpp @@ -7,7 +7,7 @@ namespace CefSharp { _action = ResponseAction::Cancel; } - + void RequestResponse::Redirect(String^ url) { _redirectUrl = url; diff --git a/CefSharp/RequestResponse.h b/CefSharp/RequestResponse.h index 49d6c55b8..057471140 100644 --- a/CefSharp/RequestResponse.h +++ b/CefSharp/RequestResponse.h @@ -12,7 +12,7 @@ namespace CefSharp public interface class IRequestResponse { /// cancel the request, return nothing - void Cancel(); + void Cancel(); /// the current request property IRequest^ Request { IRequest^ get(); }; /// respond with redirection to the provided URL @@ -32,12 +32,12 @@ namespace CefSharp IRequest^ _request; Stream^ _responseStream; String^ _mimeType; - String^ _redirectUrl; + String^ _redirectUrl; ResponseAction _action; internal: - RequestResponse(IRequest^ request) : + RequestResponse(IRequest^ request) : _action(ResponseAction::Continue), _request(request) {} diff --git a/CefSharp/ReturnValue.h b/CefSharp/ReturnValue.h index 45b1b446c..ca7c6d728 100644 --- a/CefSharp/ReturnValue.h +++ b/CefSharp/ReturnValue.h @@ -1,6 +1,6 @@ #pragma once -namespace CefSharp +namespace CefSharp { public enum class ReturnValue { diff --git a/CefSharp/RtzCountdownEvent.h b/CefSharp/RtzCountdownEvent.h index bdabba5c6..67734dd7f 100644 --- a/CefSharp/RtzCountdownEvent.h +++ b/CefSharp/RtzCountdownEvent.h @@ -5,7 +5,7 @@ using namespace System; using namespace System::Threading; -namespace CefSharp +namespace CefSharp { ///Return-To-Zero latch, signals whenever count is zero @@ -15,17 +15,17 @@ namespace CefSharp initonly ManualResetEvent^ _event; int _currentCount; bool _disposed; - + public: - + RtzCountdownEvent() : _event(gcnew ManualResetEvent(true)), - _currentCount(0), + _currentCount(0), _disposed(false) {} !RtzCountdownEvent() { - if(_disposed) + if(_disposed) { _disposed = true; //_event->Dispose(); diff --git a/CefSharp/SchemeHandler.cpp b/CefSharp/SchemeHandler.cpp index 1b7f432c7..5c4bfbec0 100644 --- a/CefSharp/SchemeHandler.cpp +++ b/CefSharp/SchemeHandler.cpp @@ -16,7 +16,7 @@ namespace CefSharp bool handled = false; Stream^ stream; String^ mimeType; - + AutoLock lock_scope(this); IRequest^ requestWrapper = gcnew CefRequestWrapper(request); diff --git a/CefSharp/SchemeHandler.h b/CefSharp/SchemeHandler.h index 6e6653a74..1e01c4c6c 100644 --- a/CefSharp/SchemeHandler.h +++ b/CefSharp/SchemeHandler.h @@ -33,7 +33,7 @@ class SchemeHandlerWrapper : public CefSchemeHandler public: - SchemeHandlerWrapper(ISchemeHandler^ handler) : _handler(handler) + SchemeHandlerWrapper(ISchemeHandler^ handler) : _handler(handler) { if(!_handler) { @@ -53,9 +53,9 @@ public: class SchemeHandlerFactoryWrapper : public CefSchemeHandlerFactory { gcroot _factory; - + public: - SchemeHandlerFactoryWrapper(ISchemeHandlerFactory^ factory) + SchemeHandlerFactoryWrapper(ISchemeHandlerFactory^ factory) : _factory(factory) {} virtual CefRefPtr Create(const CefString& scheme_name, CefRefPtr request); diff --git a/CefSharp/ScriptException.h b/CefSharp/ScriptException.h index 0f7daaf31..d038dee90 100644 --- a/CefSharp/ScriptException.h +++ b/CefSharp/ScriptException.h @@ -12,15 +12,15 @@ namespace CefSharp : Exception() {} - public: ScriptException(String^ message) + public: ScriptException(String^ message) : Exception(message) {} - public: ScriptException(String^ message, Exception^ innerException) + public: ScriptException(String^ message, Exception^ innerException) : Exception(message, innerException) {} - public: ScriptException(SerializationInfo^ info, StreamingContext context) + public: ScriptException(SerializationInfo^ info, StreamingContext context) : Exception(info, context) {} }; diff --git a/CefSharp/Settings.h b/CefSharp/Settings.h index f6960eefe..e4e989ab3 100644 --- a/CefSharp/Settings.h +++ b/CefSharp/Settings.h @@ -3,7 +3,7 @@ using namespace System; -namespace CefSharp +namespace CefSharp { public ref class Settings { @@ -38,12 +38,12 @@ namespace CefSharp property String^ CachePath { - String^ get() - { - return toClr(_cefSettings->cache_path); + String^ get() + { + return toClr(_cefSettings->cache_path); } - void set(String^ path) + void set(String^ path) { assignFromString(_cefSettings->cache_path, path); } @@ -51,12 +51,12 @@ namespace CefSharp property String^ UserAgent { - String^ get() - { - return toClr(_cefSettings->user_agent); + String^ get() + { + return toClr(_cefSettings->user_agent); } - void set(String^ userAgent) + void set(String^ userAgent) { assignFromString(_cefSettings->user_agent, userAgent); } @@ -64,12 +64,12 @@ namespace CefSharp property String^ ProductVersion { - String^ get() - { - return toClr(_cefSettings->product_version); + String^ get() + { + return toClr(_cefSettings->product_version); } - void set(String^ productVersion) + void set(String^ productVersion) { assignFromString(_cefSettings->product_version, productVersion); } @@ -77,12 +77,12 @@ namespace CefSharp property String^ Locale { - String^ get() - { - return toClr(_cefSettings->locale); + String^ get() + { + return toClr(_cefSettings->locale); } - void set(String^ locale) + void set(String^ locale) { assignFromString(_cefSettings->locale, locale); } diff --git a/CefSharp/StreamAdapter.cpp b/CefSharp/StreamAdapter.cpp index 7d81d73d0..265ff301c 100644 --- a/CefSharp/StreamAdapter.cpp +++ b/CefSharp/StreamAdapter.cpp @@ -17,14 +17,14 @@ namespace CefSharp int ret = _stream->Read(buffer, 0, n); pin_ptr src = &buffer[0]; memcpy(ptr, static_cast(src), ret); - return ret / size; - } + return ret / size; + } catch(Exception^) { return -1; } } - + int StreamAdapter::Seek(long offset, int whence) { SeekOrigin seekOrigin; @@ -36,17 +36,17 @@ namespace CefSharp case SEEK_END: seekOrigin = SeekOrigin::End; break; - case SEEK_SET: + case SEEK_SET: seekOrigin = SeekOrigin::Begin; break; default: return -1; } - try + try { _stream->Seek(offset, seekOrigin); - } + } catch (Exception^) { return -1; @@ -54,7 +54,7 @@ namespace CefSharp return 0; } - + long StreamAdapter::Tell() { return static_cast(_stream->Position); diff --git a/CefSharp/StreamAdapter.h b/CefSharp/StreamAdapter.h index 57cbd5d3f..653a39ece 100644 --- a/CefSharp/StreamAdapter.h +++ b/CefSharp/StreamAdapter.h @@ -14,7 +14,7 @@ namespace CefSharp virtual ~StreamAdapter(); StreamAdapter(Stream^ stream) : _stream(stream) { } - virtual size_t Read(void* ptr, size_t size, size_t n); + virtual size_t Read(void* ptr, size_t size, size_t n); virtual int Seek(long offset, int whence); virtual long Tell(); virtual int Eof(); diff --git a/CefSharp/Utils.cpp b/CefSharp/Utils.cpp index 84bb9936c..6d642b75f 100644 --- a/CefSharp/Utils.cpp +++ b/CefSharp/Utils.cpp @@ -9,7 +9,7 @@ namespace CefSharp { return gcnew String(cefStr.str); } - + String^ toClr(const CefString& cefStr) { return gcnew String(cefStr.c_str()); @@ -132,7 +132,7 @@ namespace CefSharp if (type->IsValueType && !type->IsPrimitive && !type->IsEnum) { CefRefPtr cefArray = CefV8Value::CreateArray(); - + cli::array^ fields = type->GetFields(); for (int i = 0; i < fields->Length; i++) @@ -172,7 +172,7 @@ namespace CefSharp { return nullptr; } - + if (obj->IsBool()) return gcnew System::Boolean(obj->GetBoolValue()); if (obj->IsInt()) @@ -191,7 +191,7 @@ namespace CefSharp std::vector keys; if (obj->GetKeys(keys)) { - Dictionary^ result = gcnew Dictionary(); + Dictionary^ result = gcnew Dictionary(); for (int i = 0; i < arrLength; i++) { @@ -227,7 +227,7 @@ namespace CefSharp int objLength = keys.size(); if (objLength > 0) { - Dictionary^ result = gcnew Dictionary(); + Dictionary^ result = gcnew Dictionary(); for (int i = 0; i < objLength; i++) { @@ -251,7 +251,7 @@ namespace CefSharp return result; } } - + return nullptr; } diff --git a/CefSharp/Utils.h b/CefSharp/Utils.h index b07049746..fc61970d6 100644 --- a/CefSharp/Utils.h +++ b/CefSharp/Utils.h @@ -9,7 +9,7 @@ namespace CefSharp String^ toClr(const CefString& cefStr); CefString toNative(String^ str); void assignFromString(cef_string_t& cefStrT, String^ str); - + CefRefPtr convertToCef(Object^ obj, Type^ type); Object^ convertFromCef(CefRefPtr obj); } \ No newline at end of file diff --git a/CefSharp/WpfClientAdapter.h b/CefSharp/WpfClientAdapter.h index 8151fda58..0f4bd0559 100644 --- a/CefSharp/WpfClientAdapter.h +++ b/CefSharp/WpfClientAdapter.h @@ -3,12 +3,12 @@ #include "ClientAdapter.h" -namespace CefSharp +namespace CefSharp { using namespace System; ref class CefWpfWebBrowser; - + class WpfClientAdapter : public ClientAdapter, public CefRenderHandler { diff --git a/CefSharp/app.rc b/CefSharp/app.rc index 0bc391bdc..fa57ce17b 100644 --- a/CefSharp/app.rc +++ b/CefSharp/app.rc @@ -28,19 +28,19 @@ LANGUAGE 9, 2 // TEXTINCLUDE // -1 TEXTINCLUDE +1 TEXTINCLUDE BEGIN "resource.h\0" "\0" END -2 TEXTINCLUDE +2 TEXTINCLUDE BEGIN "#include ""afxres.h""\r\n" "\0" END -3 TEXTINCLUDE +3 TEXTINCLUDE BEGIN "\0" END diff --git a/LICENSE b/LICENSE index f19afe350..f713abe63 100644 --- a/LICENSE +++ b/LICENSE @@ -13,7 +13,7 @@ // distribution. // // * Neither the name of Google Inc. nor the name Chromium Embedded -// Framework nor the name CefSharp nor the names of its contributors +// Framework nor the name CefSharp nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // diff --git a/README.markdown b/README.markdown index 7c0dfda38..aee1eb278 100644 --- a/README.markdown +++ b/README.markdown @@ -34,7 +34,7 @@ _UPDATE_ : bounced zip to 0.3.1 to fix a build issue, now includes Debug and Rel - Fixes including resize issues and incorrect address events. - New unit tests and examples. -2010/12/03 - 0.1 Released +2010/12/03 - 0.1 Released ------------------------- - [Download 0.1 here](https://github.com/downloads/chillitom/CefSharp/CefSharp-0.1.7z "src, bins and examples") - BrowserControl user control @@ -44,7 +44,7 @@ _UPDATE_ : bounced zip to 0.3.1 to fix a build issue, now includes Debug and Rel - Interception of resource loading, loads from System.IO.Stream Enough to build a poor man's web browser and call a bit of JavaScript. Coming soon, more features including the ability to bind .Net object straight into the browser's V8 JavaScript context. - + diff --git a/include/cef.h b/include/cef.h index b951c7a6a..bb82b61c2 100644 --- a/include/cef.h +++ b/include/cef.h @@ -126,7 +126,7 @@ void CefRunMessageLoop(); // keyword 'native'. The calling of a native function is restricted to the scope // in which the prototype of the native function is defined. This function may // be called on any thread. -// +// // Example JavaScript extension code: //
 //   // create the 'example' global object if it doesn't already exist.
@@ -187,12 +187,12 @@ bool CefRegisterExtension(const CefString& extension_name,
 ///
 // Register a custom scheme. This method should not be called for the built-in
 // HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
-// 
+//
 // If |is_standard| is true the scheme will be treated as a standard scheme.
 // Standard schemes are subject to URL canonicalization and parsing rules as
 // defined in the Common Internet Scheme Syntax RFC 1738 Section 3.1 available
 // at http://www.ietf.org/rfc/rfc1738.txt
-// 
+//
 // In particular, the syntax for standard scheme URLs must be of the form:
 // 
 //  [scheme]://[username]:[password]@[host]:[port]/[url-path]
@@ -203,21 +203,21 @@ bool CefRegisterExtension(const CefString& extension_name,
 // simplest case and "scheme://username:password@host:port/path" in the most
 // explicit case. For example, "scheme:host/path" and "scheme:///host/path" will
 // both be canonicalized to "scheme://host/path".
-// 
+//
 // For non-standard scheme URLs only the "scheme:" component is parsed and
 // canonicalized. The remainder of the URL will be passed to the handler as-is.
 // For example, "scheme:///some%20text" will remain the same. Non-standard
 // scheme URLs cannot be used as a target for form submission.
-// 
+//
 // If |is_local| is true the scheme will be treated as local (i.e., with the
 // same security rules as those applied to "file" URLs). This means that normal
 // pages cannot link to or access URLs of this scheme.
-// 
+//
 // If |is_display_isolated| is true the scheme will be treated as display-
 // isolated. This means that pages cannot display these URLs unless they are
 // from the same scheme. For example, pages in another origin cannot create
 // iframes or hyperlinks to URLs with this scheme.
-// 
+//
 // This function may be called on any thread. It should only be called once
 // per unique |scheme_name| value. If |scheme_name| is already registered or if
 // an error occurs this method will return false.
@@ -263,13 +263,13 @@ bool CefClearSchemeHandlerFactories();
 // XMLHttpRequest requests on http://target.example.com if the
 // http://target.example.com request returns an "Access-Control-Allow-Origin:
 // https://source.example.com" response header.
-// 
+//
 // Scripts in separate frames or iframes and hosted from the same protocol and
 // domain suffix can execute cross-origin JavaScript if both pages set the
 // document.domain value to the same domain suffix. For example,
 // scheme://foo.example.com and scheme://bar.example.com can communicate using
 // JavaScript if both domains set document.domain="example.com".
-// 
+//
 // This method is used to allow access to origins that would otherwise violate
 // the same-origin policy. Scripts hosted underneath the fully qualified
 // |source_origin| URL (like http://www.example.com) will be allowed access to
@@ -430,7 +430,7 @@ class CefRefCount
 {
 public:
   CefRefCount() : refct_(0) {}
-  
+
   ///
   // Atomic reference increment.
   ///
@@ -664,7 +664,7 @@ public:
   ///
   /*--cef()--*/
   virtual CefWindowHandle GetOpenerWindowHandle() =0;
-  
+
   ///
   // Returns true if the window is a popup window.
   ///
@@ -786,7 +786,7 @@ public:
   ///
   // Invalidate the |dirtyRect| region of the view. This method is only used
   // when window rendering is disabled and will result in a call to
-  // HandlePaint(). 
+  // HandlePaint().
   ///
   /*--cef()--*/
   virtual void Invalidate(const CefRect& dirtyRect) =0;
@@ -807,7 +807,7 @@ public:
   ///
   /*--cef()--*/
   virtual void SendKeyEvent(KeyType type, int key, int modifiers, bool sysChar,
-                            bool imeChar) =0;  
+                            bool imeChar) =0;
 
   ///
   // Send a mouse click event to the browser. The |x| and |y| coordinates are
@@ -951,7 +951,7 @@ public:
   // reporting.
   ///
   /*--cef()--*/
-  virtual void ExecuteJavaScript(const CefString& jsCode, 
+  virtual void ExecuteJavaScript(const CefString& jsCode,
                                  const CefString& scriptUrl,
                                  int startLine) =0;
 
@@ -2131,14 +2131,14 @@ public:
   ///
   /*--cef()--*/
   virtual size_t Write(const void* ptr, size_t size, size_t n) =0;
-	
+
   ///
   // Seek to the specified offset position. |whence| may be any one of
   // SEEK_CUR, SEEK_END or SEEK_SET.
   ///
   /*--cef()--*/
   virtual int Seek(long offset, int whence) =0;
-	
+
   ///
   // Return the current offset position.
   ///
@@ -2322,7 +2322,7 @@ public:
   // Create a new CefV8Value object of type object with accessors.
   ///
   /*--cef(capi_name=cef_v8value_create_object_with_accessor)--*/
-  static CefRefPtr CreateObject(CefRefPtr user_data, 
+  static CefRefPtr CreateObject(CefRefPtr user_data,
                                             CefRefPtr accessor);
   ///
   // Create a new CefV8Value object of type array.
@@ -2393,7 +2393,7 @@ public:
   ///
   /*--cef()--*/
   virtual bool IsSame(CefRefPtr that) =0;
-  
+
   ///
   // Return a bool value.  The underlying data will be converted to if
   // necessary.
@@ -2480,7 +2480,7 @@ public:
   // instance passed to CefV8Value::CreateObject().
   ///
   /*--cef(capi_name=set_value_byaccessor)--*/
-  virtual bool SetValue(const CefString& key, AccessControl settings, 
+  virtual bool SetValue(const CefString& key, AccessControl settings,
                         PropertyAttribute attribute) =0;
 
   ///
@@ -2599,7 +2599,7 @@ public:
   // (HeadersAvailable() can also be called from inside this method if header
   // information is available immediately). To redirect the request to a new
   // URL set |redirectUrl| to the new URL and return true. To cancel the request
-  // return false. 
+  // return false.
   ///
   /*--cef()--*/
   virtual bool ProcessRequest(CefRefPtr request,
@@ -2680,7 +2680,7 @@ public:
   ///
   /*--cef()--*/
   static CefRefPtr CreateWebURLRequest(
-      CefRefPtr request, 
+      CefRefPtr request,
       CefRefPtr client);
 
   ///
@@ -2706,14 +2706,14 @@ class CefWebURLRequestClient : public virtual CefBase
 public:
   typedef cef_weburlrequest_state_t RequestState;
   typedef cef_handler_errorcode_t ErrorCode;
-  
+
   ///
   // Notifies the client that the request state has changed. State change
   // notifications will always be sent before the below notification methods
   // are called.
   ///
   /*--cef()--*/
-  virtual void OnStateChange(CefRefPtr requester, 
+  virtual void OnStateChange(CefRefPtr requester,
                              RequestState state) =0;
 
   ///
@@ -2721,8 +2721,8 @@ public:
   // chance to change the request parameters.
   ///
   /*--cef()--*/
-  virtual void OnRedirect(CefRefPtr requester, 
-                          CefRefPtr request, 
+  virtual void OnRedirect(CefRefPtr requester,
+                          CefRefPtr request,
                           CefRefPtr response) =0;
 
   ///
@@ -2736,21 +2736,21 @@ public:
   // Notifies the client of the upload progress.
   ///
   /*--cef()--*/
-  virtual void OnProgress(CefRefPtr requester, 
+  virtual void OnProgress(CefRefPtr requester,
                           uint64 bytesSent, uint64 totalBytesToBeSent) =0;
 
   ///
   // Notifies the client that content has been received.
   ///
   /*--cef()--*/
-  virtual void OnData(CefRefPtr requester, 
+  virtual void OnData(CefRefPtr requester,
                       const void* data, int dataLength) =0;
 
   ///
   // Notifies the client that the request ended with an error.
   ///
   /*--cef()--*/
-  virtual void OnError(CefRefPtr requester, 
+  virtual void OnError(CefRefPtr requester,
                        ErrorCode errorCode) =0;
 };
 
@@ -3014,7 +3014,7 @@ public:
   ///
   // Moves the cursor to the specified file in the archive. If |caseSensitive|
   // is true then the search will be case sensitive. Returns true if the cursor
-  // position was set successfully. 
+  // position was set successfully.
   ///
   /*--cef()--*/
   virtual bool MoveToFile(const CefString& fileName, bool caseSensitive) =0;
diff --git a/include/internal/cef_string_wrappers.h b/include/internal/cef_string_wrappers.h
index 06fc42697..cce79d3c8 100644
--- a/include/internal/cef_string_wrappers.h
+++ b/include/internal/cef_string_wrappers.h
@@ -44,7 +44,7 @@ struct CefStringTraitsWide {
   typedef wchar_t char_type;
   typedef cef_string_wide_t struct_type;
   typedef cef_string_userfree_wide_t userfree_struct_type;
-  
+
   static inline void clear(struct_type *s) { cef_string_wide_clear(s); }
   static inline int set(const char_type* src, size_t src_size,
                         struct_type *output, int copy)
@@ -124,7 +124,7 @@ struct CefStringTraitsUTF8 {
   typedef char char_type;
   typedef cef_string_utf8_t struct_type;
   typedef cef_string_userfree_utf8_t userfree_struct_type;
-  
+
   static inline void clear(struct_type *s) { cef_string_utf8_clear(s); }
   static inline int set(const char_type* src, size_t src_size,
                         struct_type *output, int copy)
@@ -191,7 +191,7 @@ struct CefStringTraitsUTF16 {
   typedef char16 char_type;
   typedef cef_string_utf16_t struct_type;
   typedef cef_string_userfree_utf16_t userfree_struct_type;
-  
+
   static inline void clear(struct_type *s) { cef_string_utf16_clear(s); }
   static inline int set(const char_type* src, size_t src_size,
                         struct_type *output, int copy)
@@ -304,13 +304,13 @@ public:
   // Default constructor.
   ///
   CefStringBase() : string_(NULL), owner_(false) {}
-  
+
   ///
   // Create a new string from an existing string. Data will always be copied.
   ///
   CefStringBase(const CefStringBase& str) : string_(NULL), owner_(false)
     { FromString(str.c_str(), str.length(), true); }
-  
+
   ///
   // Create a new string from an existing std::string. Data will be always
   // copied. Translation will occur if necessary based on the underlying string
@@ -320,7 +320,7 @@ public:
     { FromString(src); }
   CefStringBase(const char* src) : string_(NULL), owner_(false)
     { FromString(std::string(src)); }
-  
+
   ///
   // Create a new string from an existing std::wstring. Data will be always
   // copied. Translation will occur if necessary based on the underlying string
@@ -342,7 +342,7 @@ public:
   CefStringBase(const char16* src) : string_(NULL), owner_(false)
     { FromString16(string16(src)); }
 #endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32
-  
+
   ///
   // Create a new string from an existing character array. If |copy| is true
   // this class will copy the data. Otherwise, this class will reference the
@@ -352,7 +352,7 @@ public:
   CefStringBase(const char_type* src, size_t src_len, bool copy)
     : string_(NULL), owner_(false)
     { FromString(src, src_len, copy); }
-  
+
   ///
   // Create a new string referencing an existing string structure without taking
   // ownership. Referenced structures must exist for the lifetime of this class
@@ -376,17 +376,17 @@ public:
   // Return a read-only pointer to the string data.
   ///
   const char_type* c_str() const { return (string_ ? string_->str : NULL); }
-  
+
   ///
   // Return the length of the string data.
   ///
   size_t length() const { return (string_ ? string_->length : 0); }
-  
+
   ///
   // Return the length of the string data.
   ///
   inline size_t size() const { return length(); }
-  
+
   ///
   // Returns true if the string is empty.
   ///
@@ -405,7 +405,7 @@ public:
       return 1;
     return traits::compare(string_, str.GetStruct());
   }
-  
+
   ///
   // Clear the string data.
   ///
@@ -422,13 +422,13 @@ public:
   // Returns true if this class owns the underlying string structure.
   ///
   bool IsOwner() const { return owner_; }
-  
+
   ///
   // Returns a read-only pointer to the underlying string structure. May return
   // NULL if no structure is currently allocated.
   ///
   const struct_type* GetStruct() const { return string_; }
-  
+
   ///
   // Returns a writable pointer to the underlying string structure. Will never
   // return NULL.
@@ -438,7 +438,7 @@ public:
     AllocIfNeeded();
     return string_;
   }
-  
+
   ///
   // Clear the state of this class. The underlying string structure and data
   // will be freed if this class owns the structure.
@@ -463,7 +463,7 @@ public:
   {
     // Free the previous structure and data, if any.
     ClearAndFree();
-    
+
     string_ = str;
     owner_ = owner;
   }
@@ -484,7 +484,7 @@ public:
     AllocIfNeeded();
     owner_ = true;
     memcpy(string_, str, sizeof(struct_type));
-    
+
     // Free the |str| structure but not the data.
     memset(str, 0, sizeof(struct_type));
     traits::userfree_free(str);
@@ -510,10 +510,10 @@ public:
   {
     if (empty())
       return NULL;
-    
+
     userfree_struct_type str = traits::userfree_alloc();
     memcpy(str, string_, sizeof(struct_type));
-    
+
     // Free this class' structure but not the data.
     memset(string_, 0, sizeof(struct_type));
     ClearAndFree();
@@ -536,7 +536,7 @@ public:
     AllocIfNeeded();
     return traits::set(src, src_len, string_, copy) ? true : false;
   }
-  
+
   ///
   // Set this string's data from an existing ASCII string. Data will be always
   // copied. Translation will occur if necessary based on the underlying string
@@ -552,7 +552,7 @@ public:
     AllocIfNeeded();
     return traits::from_ascii(str, len, string_);
   }
-  
+
   ///
   // Return this string's data as a std::string. Translation will occur if
   // necessary based on the underlying string type.
@@ -563,7 +563,7 @@ public:
       return std::string();
     return traits::to_string(string_);
   }
-  
+
   ///
   // Set this string's data from an existing std::string. Data will be always
   // copied. Translation will occur if necessary based on the underlying string
@@ -578,7 +578,7 @@ public:
     AllocIfNeeded();
     return traits::from_string(str, string_);
   }
-  
+
   ///
   // Return this string's data as a std::wstring. Translation will occur if
   // necessary based on the underlying string type.
@@ -589,7 +589,7 @@ public:
       return std::wstring();
     return traits::to_wstring(string_);
   }
-  
+
   ///
   // Set this string's data from an existing std::wstring. Data will be always
   // copied. Translation will occur if necessary based on the underlying string
@@ -615,7 +615,7 @@ public:
       return string16();
     return traits::to_string16(string_);
   }
-  
+
   ///
   // Set this string's data from an existing string16. Data will be always
   // copied. Translation will occur if necessary based on the underlying string
@@ -647,7 +647,7 @@ public:
     { return (compare(str) == 0); }
   bool operator!=(const CefStringBase& str) const
     { return (compare(str) != 0); }
-  
+
   ///
   // Assignment operator overloads.
   ///
diff --git a/include/internal/cef_types.h b/include/internal/cef_types.h
index 695d2d8da..f249b1528 100644
--- a/include/internal/cef_types.h
+++ b/include/internal/cef_types.h
@@ -90,14 +90,14 @@ typedef struct _cef_settings_t
   // your application message loop.
   ///
   bool multi_threaded_message_loop;
-  
+
   ///
   // The location where cache data will be stored on disk. If empty an
   // in-memory cache will be used. HTML5 databases such as localStorage will
   // only persist across sessions if a cache path is specified.
   ///
   cef_string_t cache_path;
-  
+
   ///
   // Value that will be returned as the User-Agent HTTP header. If empty the
   // default User-Agent string will be used.
@@ -293,7 +293,7 @@ typedef struct _cef_browser_settings_t
   // Set to true (1) to enable the user style sheet for all pages.
   ///
   bool user_style_sheet_enabled;
-  
+
   ///
   // Location of the user style sheet. This must be a data URL of the form
   // "data:text/css;charset=utf-8;base64,csscontent" where "csscontent" is the
@@ -455,7 +455,7 @@ typedef struct _cef_cookie_t
   // cookie creation.
   ///
   cef_time_t creation;
-  
+
   ///
   // The cookie last access date. This is automatically populated by the system
   // on access.
@@ -591,7 +591,7 @@ enum cef_v8_accesscontrol_t
 ///
 enum cef_v8_propertyattribute_t
 {
-  V8_PROPERTY_ATTRIBUTE_NONE       = 0,       // Writeable, Enumerable, 
+  V8_PROPERTY_ATTRIBUTE_NONE       = 0,       // Writeable, Enumerable,
                                               //   Configurable
   V8_PROPERTY_ATTRIBUTE_READONLY   = 1 << 0,  // Not writeable
   V8_PROPERTY_ATTRIBUTE_DONTENUM   = 1 << 1,  // Not enumerable
diff --git a/include/internal/cef_types_win.h b/include/internal/cef_types_win.h
index 7ea35a5a7..4e5f87101 100644
--- a/include/internal/cef_types_win.h
+++ b/include/internal/cef_types_win.h
@@ -74,7 +74,7 @@ typedef struct _cef_window_info_t
   // |m_hWndParent| to the window that will act as the parent for popup menus,
   // dialog boxes, etc.
   BOOL m_bWindowRenderingDisabled;
-  
+
   // Handle for the new browser window.
   cef_window_handle_t m_hWnd;
 } cef_window_info_t;
diff --git a/include/internal/cef_types_wrappers.h b/include/internal/cef_types_wrappers.h
index 353b17c7d..06b7a7422 100644
--- a/include/internal/cef_types_wrappers.h
+++ b/include/internal/cef_types_wrappers.h
@@ -51,7 +51,7 @@ public:
     // Only clear this object's data if it isn't currently attached to a
     // structure.
     if (!attached_to_)
-      Clear(this); 
+      Clear(this);
   }
 
   CefStructBase(const CefStructBase& r)
@@ -84,10 +84,10 @@ public:
     // structure.
     if (!attached_to_)
       Clear(this);
-    
+
     // This object is now attached to the new structure.
     attached_to_ = &source;
-    
+
     // Transfer ownership of the values from the source structure.
     memcpy(static_cast(this), &source, sizeof(struct_type));
   }
@@ -202,7 +202,7 @@ struct CefPopupFeaturesTraits {
     s->scrollbarsVisible = true;
     s->resizable = true;
   }
-  
+
   static inline void clear(struct_type* s)
   {
     if(s->additionalFeatures)
@@ -248,7 +248,7 @@ struct CefSettingsTraits {
   {
     s->size = sizeof(struct_type);
   }
-  
+
   static inline void clear(struct_type* s)
   {
     cef_string_clear(&s->cache_path);
@@ -297,7 +297,7 @@ struct CefBrowserSettingsTraits {
   {
     s->size = sizeof(struct_type);
   }
-  
+
   static inline void clear(struct_type* s)
   {
     cef_string_clear(&s->standard_font_family);
@@ -397,7 +397,7 @@ struct CefURLPartsTraits {
   typedef cef_urlparts_t struct_type;
 
   static inline void init(struct_type* s) {}
-  
+
   static inline void clear(struct_type* s)
   {
     cef_string_clear(&s->spec);
@@ -435,7 +435,7 @@ struct CefTimeTraits {
   typedef cef_time_t struct_type;
 
   static inline void init(struct_type* s) {}
-  
+
   static inline void clear(struct_type* s) {}
 
   static inline void set(const struct_type* src, struct_type* target, bool copy)
@@ -485,7 +485,7 @@ struct CefCookieTraits {
   typedef cef_cookie_t struct_type;
 
   static inline void init(struct_type* s) {}
-  
+
   static inline void clear(struct_type* s)
   {
     cef_string_clear(&s->name);
diff --git a/include/internal/cef_win.h b/include/internal/cef_win.h
index 926cbf8de..0efcc6786 100644
--- a/include/internal/cef_win.h
+++ b/include/internal/cef_win.h
@@ -114,7 +114,7 @@ public:
   CefWindowInfo() : parent() {}
   CefWindowInfo(const cef_window_info_t& r) : parent(r) {}
   CefWindowInfo(const CefWindowInfo& r) : parent(r) {}
-  
+
   void SetAsChild(HWND hWndParent, RECT windowRect)
   {
     m_dwStyle = WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_TABSTOP |

From 4a1e21e8496c291daf9a4489e54d74a880d57488 Mon Sep 17 00:00:00 2001
From: CKarper 
Date: Thu, 2 Feb 2012 14:04:09 -0500
Subject: [PATCH 2/3] Managed enums 4 lyfe!

Created a LogSeverity enum so I don't have to remember magic numbers in my client code, changed Settings::LogSeverity to use it instead of int.
---
 CefSharp/Settings.h | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/CefSharp/Settings.h b/CefSharp/Settings.h
index e4e989ab3..635bb5bf6 100644
--- a/CefSharp/Settings.h
+++ b/CefSharp/Settings.h
@@ -5,6 +5,16 @@ using namespace System;
 
 namespace CefSharp
 {
+    public enum class LogSeverity : int 
+    {
+        Verbose = LOGSEVERITY_VERBOSE = -1,
+        Info = LOGSEVERITY_INFO,
+        Warning = LOGSEVERITY_WARNING,
+        Error = LOGSEVERITY_ERROR,
+        ErrorReport = LOGSEVERITY_ERROR_REPORT,
+        Disable = LOGSEVERITY_DISABLE // Disables logging completely.
+    }
+    
     public ref class Settings
     {
     internal:
@@ -112,16 +122,16 @@ namespace CefSharp
             }
         }
 
-        property int LogSeverity
+        property LogSeverity LogSeverity
         {
             int get()
             {
-                return _cefSettings->log_severity;
+                return static_cast(_cefSettings->log_severity);
             }
 
-            void set(int log_severity)
+            void set(LogSeverity log_severity)
             {
-                _cefSettings->log_severity = (cef_log_severity_t)log_severity;
+                _cefSettings->log_severity = static_cast(log_severity);
             }
         }
     };

From 6e4c61d398cb4effec534c1e518950ac4ff2ddd1 Mon Sep 17 00:00:00 2001
From: CKarper 
Date: Thu, 2 Feb 2012 16:01:19 -0500
Subject: [PATCH 3/3] Managed enum for LogSeverity fix.  I cut & pasted wrong
 in the original pull.  Sorry I broke your repo.  :-D

---
 CefSharp/Settings.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/CefSharp/Settings.h b/CefSharp/Settings.h
index 635bb5bf6..03e44d895 100644
--- a/CefSharp/Settings.h
+++ b/CefSharp/Settings.h
@@ -7,13 +7,13 @@ namespace CefSharp
 {
     public enum class LogSeverity : int 
     {
-        Verbose = LOGSEVERITY_VERBOSE = -1,
+        Verbose = LOGSEVERITY_VERBOSE,
         Info = LOGSEVERITY_INFO,
         Warning = LOGSEVERITY_WARNING,
         Error = LOGSEVERITY_ERROR,
         ErrorReport = LOGSEVERITY_ERROR_REPORT,
         Disable = LOGSEVERITY_DISABLE // Disables logging completely.
-    }
+    };
     
     public ref class Settings
     {
@@ -43,7 +43,7 @@ namespace CefSharp
             MultiThreadedMessageLoop = true;
         }
 
-        !Settings()	{ delete _cefSettings; }
+        !Settings()    { delete _cefSettings; }
         ~Settings() { delete _cefSettings; }
 
         property String^ CachePath
@@ -122,18 +122,18 @@ namespace CefSharp
             }
         }
 
-        property LogSeverity LogSeverity
+        property CefSharp::LogSeverity LogSeverity
         {
-            int get()
+            CefSharp::LogSeverity get()
             {
-                return static_cast(_cefSettings->log_severity);
+                return static_cast(_cefSettings->log_severity);
             }
 
-            void set(LogSeverity log_severity)
+            void set(CefSharp::LogSeverity log_severity)
             {
                 _cefSettings->log_severity = static_cast(log_severity);
             }
         }
     };
 
-}
\ No newline at end of file
+}