Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetCursor CefCursorType parameter #1044

Merged
merged 3 commits into from
May 25, 2015
Merged

SetCursor CefCursorType parameter #1044

merged 3 commits into from
May 25, 2015

Conversation

cuddlyogre
Copy link
Contributor

SetCursor now receives the cursor type. The enums for the types come directly from CEF.

@cuddlyogre cuddlyogre changed the title Add cursor type to SetCursor call. Duplicated CursorType enum from CEF source. SetCursor CefCursorType parameter May 23, 2015
@@ -174,7 +174,7 @@ namespace CefSharp
virtual DECL void OnCursorChange(CefRefPtr<CefBrowser> browser, CefCursorHandle cursor, CursorType type,
const CefCursorInfo& custom_cursor_info) OVERRIDE
{
_renderWebBrowser->SetCursor((IntPtr)cursor);
_renderWebBrowser->SetCursor((IntPtr)cursor, (CefSharp::CefCursorType)type);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace tabs with spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been using Intellij for so long. I had forgotten that the tab key inserts a tab character sometimes.

@jankurianski
Copy link
Member

Thanks for the PR @cuddlyogre 👍

Just a few formatting and commit cleaning issues to sort out.

@jankurianski
Copy link
Member

Oh and when you do clean up the issues, remember to leave a new comment here. This ensures the project maintainers get an email notification. We don't get told about further commits alone.

@cuddlyogre
Copy link
Contributor Author

I have made the requested changes.

{
public enum CefCursorType
{
CT_POINTER = 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the CT_ prefix and make these proper case. Bring them inline with .Net styling.
e.g. CT_POINTER becomes Pointer

@amaitland amaitland added this to the 39.0.2 milestone May 24, 2015
@cuddlyogre
Copy link
Contributor Author

The changes to the CefCursorType names has been made.

amaitland added a commit that referenced this pull request May 25, 2015
SetCursor CefCursorType parameter
@amaitland amaitland merged commit f6b5787 into cefsharp:master May 25, 2015
@amaitland
Copy link
Member

Great, thanks 👍

@cuddlyogre
Copy link
Contributor Author

You're very welcome!

@cuddlyogre cuddlyogre deleted the cursor-type branch May 25, 2015 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants