Title: [167712] trunk/Source/WebCore
Revision
167712
Author
commit-qu...@webkit.org
Date
2014-04-23 09:44:13 -0700 (Wed, 23 Apr 2014)

Log Message

[GTK] Focus management API was moved from HTMLDocument to Document in r166668
https://bugs.webkit.org/show_bug.cgi?id=132060

Patch by Philippe Normand <pnorm...@igalia.com> on 2014-04-23
Reviewed by Carlos Garcia Campos.

Deprecate the removed methods in WebKitDOMHTMLDocument to keep API compatibility.

* bindings/gobject/WebKitDOMDeprecated.cpp:
(webkit_dom_html_document_get_active_element):
(webkit_dom_html_document_has_focus):
* bindings/gobject/WebKitDOMDeprecated.h:
* bindings/gobject/WebKitDOMDeprecated.symbols:
* bindings/gobject/webkitdom.symbols:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (167711 => 167712)


--- trunk/Source/WebCore/ChangeLog	2014-04-23 16:19:24 UTC (rev 167711)
+++ trunk/Source/WebCore/ChangeLog	2014-04-23 16:44:13 UTC (rev 167712)
@@ -1,3 +1,19 @@
+2014-04-23  Philippe Normand  <pnorm...@igalia.com>
+
+        [GTK] Focus management API was moved from HTMLDocument to Document in r166668
+        https://bugs.webkit.org/show_bug.cgi?id=132060
+
+        Reviewed by Carlos Garcia Campos.
+
+        Deprecate the removed methods in WebKitDOMHTMLDocument to keep API compatibility.
+
+        * bindings/gobject/WebKitDOMDeprecated.cpp:
+        (webkit_dom_html_document_get_active_element):
+        (webkit_dom_html_document_has_focus):
+        * bindings/gobject/WebKitDOMDeprecated.h:
+        * bindings/gobject/WebKitDOMDeprecated.symbols:
+        * bindings/gobject/webkitdom.symbols:
+
 2014-04-22  Andreas Kling  <akl...@apple.com>
 
         [iOS WebKit1] MemoryPressureHandler::respondToMemoryPressure called on wrong thread.

Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp (167711 => 167712)


--- trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp	2014-04-23 16:19:24 UTC (rev 167711)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.cpp	2014-04-23 16:44:13 UTC (rev 167712)
@@ -21,6 +21,7 @@
 
 #include "WebKitDOMBlob.h"
 #include "WebKitDOMDOMStringList.h"
+#include "WebKitDOMDocument.h"
 #include "WebKitDOMHTMLCollection.h"
 #include "WebKitDOMHTMLFormElement.h"
 #include "WebKitDOMHTMLHeadElement.h"
@@ -64,6 +65,16 @@
     return webkit_dom_element_get_class_list(WEBKIT_DOM_ELEMENT(element));
 }
 
+WebKitDOMElement* webkit_dom_html_document_get_active_element(WebKitDOMHTMLDocument* document)
+{
+    return webkit_dom_document_get_active_element(WEBKIT_DOM_DOCUMENT(document));
+}
+
+gboolean webkit_dom_html_document_has_focus(WebKitDOMHTMLDocument* document)
+{
+    return webkit_dom_document_has_focus(WEBKIT_DOM_DOCUMENT(document));
+}
+
 void webkit_dom_html_form_element_dispatch_form_change(WebKitDOMHTMLFormElement*)
 {
     g_warning("The onformchange functionality has been removed from the DOM spec, this function does nothing.");

Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h (167711 => 167712)


--- trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h	2014-04-23 16:19:24 UTC (rev 167711)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.h	2014-04-23 16:44:13 UTC (rev 167712)
@@ -96,6 +96,28 @@
 webkit_dom_html_element_get_class_list(WebKitDOMHTMLElement* element);
 
 /**
+ * webkit_dom_html_document_get_active_element:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: (transfer none): a #WebKitDOMElement
+ *
+ * Deprecated: 2.6: Use webkit_dom_document_get_active_element() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_get_active_element) WebKitDOMElement*
+webkit_dom_html_document_get_active_element(WebKitDOMHTMLDocument* self);
+
+/**
+ * webkit_dom_html_document_has_focus:
+ * @self: A #WebKitDOMHTMLDocument
+ *
+ * Returns: A #gboolean
+ *
+ * Deprecated: 2.6: Use webkit_dom_document_has_focus() instead.
+ */
+WEBKIT_DEPRECATED_FOR(webkit_dom_document_has_focus) gboolean
+webkit_dom_html_document_has_focus(WebKitDOMHTMLDocument* self);
+
+/**
  * webkit_dom_html_form_element_dispatch_form_change:
  * @self: A #WebKitDOMHTMLFormElement
  *

Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols (167711 => 167712)


--- trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols	2014-04-23 16:19:24 UTC (rev 167711)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMDeprecated.symbols	2014-04-23 16:44:13 UTC (rev 167712)
@@ -45,6 +45,8 @@
 gdouble webkit_dom_html_media_element_get_initial_time(WebKitDOMHTMLMediaElement*)
 gchar* webkit_dom_processing_instruction_get_data(WebKitDOMProcessingInstruction*)
 void webkit_dom_processing_instruction_set_data(WebKitDOMProcessingInstruction*, const gchar*, GError**)
+WebKitDOMElement* webkit_dom_html_document_get_active_element(WebKitDOMHTMLDocument*)
+gboolean webkit_dom_html_document_has_focus(WebKitDOMHTMLDocument*)
 WebKitDOMElement* webkit_dom_shadow_root_element_from_point(WebKitDOMShadowRoot*, glong, glong)
 WebKitDOMElement* webkit_dom_shadow_root_get_active_element(WebKitDOMShadowRoot*)
 gboolean webkit_dom_shadow_root_get_apply_author_styles(WebKitDOMShadowRoot*)

Modified: trunk/Source/WebCore/bindings/gobject/webkitdom.symbols (167711 => 167712)


--- trunk/Source/WebCore/bindings/gobject/webkitdom.symbols	2014-04-23 16:19:24 UTC (rev 167711)
+++ trunk/Source/WebCore/bindings/gobject/webkitdom.symbols	2014-04-23 16:44:13 UTC (rev 167712)
@@ -90,6 +90,7 @@
 WebKitDOMProcessingInstruction* webkit_dom_document_create_processing_instruction(WebKitDOMDocument*, const gchar*, const gchar*, GError**)
 WebKitDOMAttr* webkit_dom_document_create_attribute(WebKitDOMDocument*, const gchar*, GError**)
 WebKitDOMEntityReference* webkit_dom_document_create_entity_reference(WebKitDOMDocument*, const gchar*, GError**)
+WebKitDOMElement* webkit_dom_document_get_active_element(WebKitDOMDocument*)
 WebKitDOMNodeList* webkit_dom_document_get_elements_by_tag_name(WebKitDOMDocument*, const gchar*)
 WebKitDOMNode* webkit_dom_document_import_node(WebKitDOMDocument*, WebKitDOMNode*, gboolean, GError**)
 WebKitDOMElement* webkit_dom_document_create_element_ns(WebKitDOMDocument*, const gchar*, const gchar*, GError**)
@@ -107,6 +108,7 @@
 WebKitDOMTouch* webkit_dom_document_create_touch(WebKitDOMDocument*, WebKitDOMDOMWindow*, WebKitDOMEventTarget*, glong, glong, glong, glong, glong, glong, glong, gfloat, gfloat, GError**)
 WebKitDOMXPathResult* webkit_dom_document_evaluate(WebKitDOMDocument*, const gchar*, WebKitDOMNode*, WebKitDOMXPathNSResolver*, gushort, WebKitDOMXPathResult*, GError**)
 gboolean webkit_dom_document_exec_command(WebKitDOMDocument*, const gchar*, gboolean, const gchar*)
+gboolean webkit_dom_document_has_focus(WebKitDOMDocument*)
 gboolean webkit_dom_document_query_command_enabled(WebKitDOMDocument*, const gchar*)
 gboolean webkit_dom_document_query_command_indeterm(WebKitDOMDocument*, const gchar*)
 gboolean webkit_dom_document_query_command_state(WebKitDOMDocument*, const gchar*)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to