Title: [148084] trunk/Tools
Revision
148084
Author
[email protected]
Date
2013-04-10 00:55:54 -0700 (Wed, 10 Apr 2013)

Log Message

[EFL] Add spell checking option to MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=114282

Patch by Artur Moryc <[email protected]> on 2013-04-10
Reviewed by Ryosuke Niwa.

Spell checking is enabled by adding a flag (t/text-checking)
with launching MiniBrowser.

* MiniBrowser/efl/main.c:
(window_create):
(elm_main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (148083 => 148084)


--- trunk/Tools/ChangeLog	2013-04-10 07:39:18 UTC (rev 148083)
+++ trunk/Tools/ChangeLog	2013-04-10 07:55:54 UTC (rev 148084)
@@ -1,3 +1,17 @@
+2013-04-10  Artur Moryc  <[email protected]>
+
+        [EFL] Add spell checking option to MiniBrowser
+        https://bugs.webkit.org/show_bug.cgi?id=114282
+
+        Reviewed by Ryosuke Niwa.
+
+        Spell checking is enabled by adding a flag (t/text-checking)
+        with launching MiniBrowser.
+
+        * MiniBrowser/efl/main.c:
+        (window_create):
+        (elm_main):
+
 2013-04-10  Zan Dobersek  <[email protected]>
 
         REGRESSION (r146518): WebKit2APITests/TestInspector is failing

Modified: trunk/Tools/MiniBrowser/efl/main.c (148083 => 148084)


--- trunk/Tools/MiniBrowser/efl/main.c	2013-04-10 07:39:18 UTC (rev 148083)
+++ trunk/Tools/MiniBrowser/efl/main.c	2013-04-10 07:55:54 UTC (rev 148084)
@@ -49,6 +49,7 @@
 static Eina_Bool frame_flattening_enabled = EINA_FALSE;
 static Eina_Bool local_storage_enabled = EINA_TRUE;
 static Eina_Bool fullscreen_enabled = EINA_FALSE;
+static Eina_Bool spell_checking_enabled = EINA_FALSE;
 static int window_width = 800;
 static int window_height = 600;
 /* Default value of device_pixel_ratio is '0' so that we don't set custom device
@@ -149,6 +150,8 @@
             ('l', "local-storage", "HTML5 local storage support (enabled by default).", EINA_TRUE),
         ECORE_GETOPT_STORE_DEF_BOOL
             ('F', "full-screen", "start in full-screen.", EINA_FALSE),
+        ECORE_GETOPT_STORE_DEF_BOOL
+            ('t', "text-checking", "text spell checking enabled", EINA_TRUE),
         ECORE_GETOPT_VERSION
             ('V', "version"),
         ECORE_GETOPT_COPYRIGHT
@@ -1448,6 +1451,7 @@
     elm_win_fullscreen_set(window->elm_window, fullscreen_enabled);
     ewk_settings_developer_extras_enabled_set(settings, EINA_TRUE);
     ewk_settings_preferred_minimum_contents_width_set(settings, 0);
+    ewk_settings_continuous_spell_checking_enabled_set(spell_checking_enabled);
 
     evas_object_smart_callback_add(window->ewk_view, "authentication,request", on_authentication_request, window);
     evas_object_smart_callback_add(window->ewk_view, "download,failed", on_download_failed, window);
@@ -1530,6 +1534,7 @@
         ECORE_GETOPT_VALUE_BOOL(frame_flattening_enabled),
         ECORE_GETOPT_VALUE_BOOL(local_storage_enabled),
         ECORE_GETOPT_VALUE_BOOL(fullscreen_enabled),
+        ECORE_GETOPT_VALUE_BOOL(spell_checking_enabled),
         ECORE_GETOPT_VALUE_BOOL(quitOption),
         ECORE_GETOPT_VALUE_BOOL(quitOption),
         ECORE_GETOPT_VALUE_BOOL(quitOption),
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to