From 8da45592599ee1bb93b867bd1fff95633295b472 Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Mon, 20 Oct 2014 07:41:43 +0000 Subject: [PATCH] www/chromium: fix input of accented keys, bump PORTREVISION. PR: 193725 Submitted by: Miguel Clara Patch by: Tomek MFH: 2014Q4 --- www/chromium/Makefile | 1 + ...browser__ui__browser_command_controller.cc | 20 +++++++++++++++++ ...erer_host__render_widget_host_view_aura.cc | 22 +++++++++++++++++-- ...tch-ui__base__ime__input_method_factory.cc | 20 +++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 www/chromium/files/patch-chrome__browser__ui__browser_command_controller.cc create mode 100644 www/chromium/files/patch-ui__base__ime__input_method_factory.cc diff --git a/www/chromium/Makefile b/www/chromium/Makefile index 6dc35f072b48..6fbdef045d78 100644 --- a/www/chromium/Makefile +++ b/www/chromium/Makefile @@ -3,6 +3,7 @@ PORTNAME= chromium PORTVERSION= 38.0.2125.104 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://commondatastorage.googleapis.com/chromium-browser-official/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} diff --git a/www/chromium/files/patch-chrome__browser__ui__browser_command_controller.cc b/www/chromium/files/patch-chrome__browser__ui__browser_command_controller.cc new file mode 100644 index 000000000000..40b3ff25bcb5 --- /dev/null +++ b/www/chromium/files/patch-chrome__browser__ui__browser_command_controller.cc @@ -0,0 +1,20 @@ +--- chrome/browser/ui/browser_command_controller.cc.orig 2014-10-14 21:32:48.000000000 +0200 ++++ chrome/browser/ui/browser_command_controller.cc 2014-10-14 21:22:15.000000000 +0200 +@@ -67,7 +67,7 @@ + #include "chrome/browser/ui/browser_commands_chromeos.h" + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD) + #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h" + #endif + +@@ -279,7 +279,7 @@ + if (window()->IsFullscreen() && command_id == IDC_FULLSCREEN) + return true; + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD) + // If this key was registered by the user as a content editing hotkey, then + // it is not reserved. + ui::TextEditKeyBindingsDelegateAuraLinux* delegate = diff --git a/www/chromium/files/patch-content__browser__renderer_host__render_widget_host_view_aura.cc b/www/chromium/files/patch-content__browser__renderer_host__render_widget_host_view_aura.cc index 071d10a809ee..4de93c357fe6 100644 --- a/www/chromium/files/patch-content__browser__renderer_host__render_widget_host_view_aura.cc +++ b/www/chromium/files/patch-content__browser__renderer_host__render_widget_host_view_aura.cc @@ -1,5 +1,14 @@ ---- content/browser/renderer_host/render_widget_host_view_aura.cc.orig 2014-10-02 17:39:47 UTC -+++ content/browser/renderer_host/render_widget_host_view_aura.cc +--- content/browser/renderer_host/render_widget_host_view_aura.cc.orig 2014-10-02 19:39:47.000000000 +0200 ++++ content/browser/renderer_host/render_widget_host_view_aura.cc 2014-10-15 19:03:21.000000000 +0200 +@@ -88,7 +88,7 @@ + #include "ui/gfx/win/dpi.h" + #endif + +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD) + #include "content/common/input_messages.h" + #include "ui/events/linux/text_edit_command_auralinux.h" + #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h" @@ -653,7 +653,7 @@ if (host) return reinterpret_cast(host->GetAcceleratedWidget()); @@ -9,3 +18,12 @@ } gfx::NativeViewAccessible RenderWidgetHostViewAura::GetNativeViewAccessible() { +@@ -2418,7 +2418,7 @@ + + void RenderWidgetHostViewAura::ForwardKeyboardEvent( + const NativeWebKeyboardEvent& event) { +-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#if defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD) + ui::TextEditKeyBindingsDelegateAuraLinux* keybinding_delegate = + ui::GetTextEditKeyBindingsDelegate(); + std::vector commands; diff --git a/www/chromium/files/patch-ui__base__ime__input_method_factory.cc b/www/chromium/files/patch-ui__base__ime__input_method_factory.cc new file mode 100644 index 000000000000..ee092189fdcb --- /dev/null +++ b/www/chromium/files/patch-ui__base__ime__input_method_factory.cc @@ -0,0 +1,20 @@ +--- ui/base/ime/input_method_factory.cc.orig 2014-10-14 21:31:49.000000000 +0200 ++++ ui/base/ime/input_method_factory.cc 2014-10-14 21:26:34.000000000 +0200 +@@ -14,7 +14,7 @@ + #include "ui/base/ime/remote_input_method_win.h" + #elif defined(OS_MACOSX) + #include "ui/base/ime/input_method_mac.h" +-#elif defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#elif defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD) + #include "ui/base/ime/input_method_auralinux.h" + #else + #include "ui/base/ime/input_method_minimal.h" +@@ -47,7 +47,7 @@ + return scoped_ptr(new InputMethodWin(delegate, widget)); + #elif defined(OS_MACOSX) + return scoped_ptr(new InputMethodMac(delegate)); +-#elif defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) ++#elif defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) || defined(OS_BSD) + return scoped_ptr(new InputMethodAuraLinux(delegate)); + #else + return scoped_ptr(new InputMethodMinimal(delegate));