aboutsummaryrefslogtreecommitdiffstats
path: root/www/chromium
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2014-10-20 15:41:43 +0800
committerrene <rene@FreeBSD.org>2014-10-20 15:41:43 +0800
commitb8ee2cf998a8f43df9486683be50e802f6f40bfa (patch)
treebedb3a4c4f9cd9e23424cdb8501784e970f7b96d /www/chromium
parentd31d2e2b162f6a6df23d357edf8d36e0e5bbc21f (diff)
downloadfreebsd-ports-graphics-b8ee2cf998a8f43df9486683be50e802f6f40bfa.tar.gz
freebsd-ports-graphics-b8ee2cf998a8f43df9486683be50e802f6f40bfa.tar.zst
freebsd-ports-graphics-b8ee2cf998a8f43df9486683be50e802f6f40bfa.zip
www/chromium: fix input of accented keys, bump PORTREVISION.
PR: 193725 Submitted by: Miguel Clara <miguelmclara@gmail.com> Patch by: Tomek <tomek@apostata.org> MFH: 2014Q4
Diffstat (limited to 'www/chromium')
-rw-r--r--www/chromium/Makefile1
-rw-r--r--www/chromium/files/patch-chrome__browser__ui__browser_command_controller.cc20
-rw-r--r--www/chromium/files/patch-content__browser__renderer_host__render_widget_host_view_aura.cc22
-rw-r--r--www/chromium/files/patch-ui__base__ime__input_method_factory.cc20
4 files changed, 61 insertions, 2 deletions
diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index 6dc35f072b4..6fbdef045d7 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 00000000000..40b3ff25bcb
--- /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 071d10a809e..4de93c357fe 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<gfx::NativeViewId>(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<ui::TextEditCommandAuraLinux> 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 00000000000..ee092189fdc
--- /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<InputMethod>(new InputMethodWin(delegate, widget));
+ #elif defined(OS_MACOSX)
+ return scoped_ptr<InputMethod>(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<InputMethod>(new InputMethodAuraLinux(delegate));
+ #else
+ return scoped_ptr<InputMethod>(new InputMethodMinimal(delegate));