mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove CEF-specific integer and char16 typedef's (see #3507)
This commit is contained in:
@@ -229,7 +229,7 @@ base::TimeTicks CefBrowserPlatformDelegateNativeAura::GetEventTimeStamp() {
|
||||
|
||||
// static
|
||||
int CefBrowserPlatformDelegateNativeAura::TranslateUiEventModifiers(
|
||||
uint32 cef_modifiers) {
|
||||
uint32_t cef_modifiers) {
|
||||
int result = 0;
|
||||
// Set modifiers based on key state.
|
||||
if (cef_modifiers & EVENTFLAG_CAPS_LOCK_ON) {
|
||||
@@ -273,7 +273,7 @@ int CefBrowserPlatformDelegateNativeAura::TranslateUiEventModifiers(
|
||||
|
||||
// static
|
||||
int CefBrowserPlatformDelegateNativeAura::TranslateUiChangedButtonFlags(
|
||||
uint32 cef_modifiers) {
|
||||
uint32_t cef_modifiers) {
|
||||
int result = 0;
|
||||
if (cef_modifiers & EVENTFLAG_LEFT_MOUSE_BUTTON) {
|
||||
result |= ui::EF_LEFT_MOUSE_BUTTON;
|
||||
|
@@ -75,8 +75,8 @@ class CefBrowserPlatformDelegateNativeAura
|
||||
base::OnceClosure GetWidgetDeleteCallback();
|
||||
|
||||
static base::TimeTicks GetEventTimeStamp();
|
||||
static int TranslateUiEventModifiers(uint32 cef_modifiers);
|
||||
static int TranslateUiChangedButtonFlags(uint32 cef_modifiers);
|
||||
static int TranslateUiEventModifiers(uint32_t cef_modifiers);
|
||||
static int TranslateUiChangedButtonFlags(uint32_t cef_modifiers);
|
||||
|
||||
// Widget hosting the web contents. It will be deleted automatically when the
|
||||
// associated root window is destroyed.
|
||||
|
@@ -513,10 +513,12 @@ CefBrowserPlatformDelegateNativeMac::TranslateWebKeyEvent(
|
||||
}
|
||||
|
||||
NSString* charactersIgnoringModifiers =
|
||||
[[NSString alloc] initWithCharacters:&key_event.unmodified_character
|
||||
[[NSString alloc] initWithCharacters:reinterpret_cast<const unichar*>(
|
||||
&key_event.unmodified_character)
|
||||
length:1];
|
||||
NSString* characters =
|
||||
[[NSString alloc] initWithCharacters:&key_event.character length:1];
|
||||
NSString* characters = [[NSString alloc]
|
||||
initWithCharacters:reinterpret_cast<const unichar*>(&key_event.character)
|
||||
length:1];
|
||||
|
||||
NSEvent* synthetic_event =
|
||||
[NSEvent keyEventWithType:event_type
|
||||
|
Reference in New Issue
Block a user