How to use WebKitGtk+
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,369
On Slideshare
3,901
From Embeds
468
Number of Embeds
5

Actions

Shares
Downloads
36
Comments
0
Likes
1

Embeds 468

http://gnome-kr.blogspot.com 294
http://gnome-kr.blogspot.kr 170
http://www.linkedin.com 2
http://gnome-kr.blogspot.ca 1
http://gnome-kr.blogspot.jp 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • The JavaScriptCore library is now installed independently as     "libjavascriptcoregtk", and it comes with its own pkg-config file. This allows linking to JavaScriptCore without WebKitGTK+.  New DOM methods exist to check if editable areas have been modified by the user (webkit_dom_html_{input,text_area}_is_edited). A typical usecase for these APIs is to warn the user if they are leaving     a page without submitting a form. A few new spell checking APIs are added, which make implementing spell checking in a user agent much easier. - Added API to set local storage database path. GTK+ 3.x is now the default toolkit for WebKitGTK+. GTK+ 2 is considered deprecated now and we will stop supporting it in future releases, so please try to move to GTK+3 in the near future.
  • Applications can use fontconfig in two ways: by querying it for the available fonts on the system, or by asking it for a font matching certain parameters ( pattern ). Fontconfig will then return a font whose properties match those specified in the pattern as closely as possible.

Transcript

  • 1.
      How to use WebKitGtk+
      허 준회 (Joone Hur)
      2012. 1.28 1 st GNOME Tech Talks, GNOME Korea Community
  • 2.  
  • 3.
      Who am I?
      • WebKit Committer (joone@webkit.org)
      • 4. Working for Collabora (http://collabora.com)
      • 5. Working on WebKitGtk+, WebKit-Clutter
  • 6.
      WebKitGtk+
      • WebKitGTK+ is the GNOME platform port of the WebKit rendering engine. 
      • 7. Offering WebKit's full functionality through a set of GObject-based APIs
      • 8. GTK+ widget
  • 9.
      What Uses WebKitGtk+?
      • Amazon Kindle
  • 14.
      Current Version
      Stable version   WebKitGTK+ 1.6.1 ( 2011.9.28)   Development Version WebKitGTK+ 1.7.4  (2012. 1.16)
  • 15.
      WebKitGTK+ 1.6.1
      • The JavaScriptCore library is now installed independently as "libjavascriptcoregtk", and it comes with its own pkg-config file.  
      • 16. New DOM methods exist to check if editable areas have been modified by the user (webkit_dom_html_{input,text_area}_is_edited).
      • 17. A few new spell checking APIs are added, which make implementing spell checking in a user agent much easier. - Added API to set local storage database path.
      • 18. GTK+ 3.x is now the default toolkit for WebKitGTK+. GTK+ 2 is considered deprecated now and we will stop supporting it in future releases, so please try to move to GTK+3 in the near future.
  • 19.
      WebKitWebView is a GtkWdiget
      GObject      +----GInitiallyUnowned                +----GtkWidget                          +----GtkContainer                                   +----WebKitWebView
  • 20.
       
      #ifdef GTK_API_VERSION_2 G_DEFINE_TYPE(WebKitWebView, webkit_web_view, GTK_TYPE_CONTAINER) #else G_DEFINE_TYPE_WITH_CODE(WebKitWebView, webkit_web_view, GTK_TYPE_CONTAINER,                         G_IMPLEMENT_INTERFACE(GTK_TYPE_SCROLLABLE, 0)) #endif
  • 21.
      Dependency
      Optional dependency
  • 32.
      Architecture
       
  • 33.
      Class Overview
      • WebKitWebView  — The central class of the WebKitGTK+ API
      • 34. WebKitWebFrame  — The content of a   WebKitWebView
      • 35. WebKitWebSettings  — Control the behaviour of a WebKitWebView
      • 36. WebKitWebBackForwardList  — The history of a  WebKitWebView
      • 37. WebKitWebHistoryItem  — One item of the  WebKitWebBackForwardList  and or global history
      • 38. WebKitWebNavigationAction  — Object used to report details of navigation actions
      • 39. WebKitWebPolicyDecision  — Liason between WebKit and the application regarding asynchronous policy decisions
      • 40. WebKitGeolocationPolicyDecision  — Liaison between WebKit and the application regarding asynchronous geolocation policy decisions
  • 41.
       
      • WebKitNetworkRequest  — The target of a navigation request
      • 42. WebKitNetworkResponse  — the response given to a network request
      • 43. WebKitWebInspector  — Access to the WebKit Inspector
      • 44. WebKitWebDatabase  — A WebKit web application database
      • 45. WebKitWebResource  — Represents a downloaded URI.
      • 46. WebKitDownload  — Object used to communicate with the application when downloading.
      • 47. WebKitViewportAttributes  — Represents the viewport properties of a web page
      • 48. WebKitHitTestResult  — The target of a mouse event
  • 49.
       
      • WebKitSoupAuthDialog  — A SoupSessionFeature to provide a simple authentication dialog for HTTP basic auth support.
      • 50. WebKitWebWindowFeatures  — Window properties of a  WebKitWebView
  • 51.
      WebKitWebView signal
      create-web-view web-view-ready close-web-view navigation-requested new-window-policy-decision-requested navigation-policy-decision-requested download-requested load-started load-committed load-progress-changed load-error load-finished onload-event title-changed
      geolocation-policy-decision-requested 
  • 52.
      Code Example
      http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-webkitwebview.html
  • 53.
      Build and Run
      gcc -o run main.c `pkg-config webkitgtk-3.0 --cflags --libs`
  • 54.
      GObject DOM bindings
      • Access to DOM APIs through native GObject layer
      • 55. Demo
  • 56.
      WebKitGtk+ GObject Introspection
      Demo
  • 57.
      Next topic?
      WebKit2Gtk+