diff options
Diffstat (limited to 'WebKit/efl')
65 files changed, 690 insertions, 102 deletions
diff --git a/WebKit/efl/CMakeListsEfl.txt b/WebKit/efl/CMakeListsEfl.txt index f6b96fd..e5fb9ef 100644 --- a/WebKit/efl/CMakeListsEfl.txt +++ b/WebKit/efl/CMakeListsEfl.txt @@ -73,10 +73,74 @@ IF (WTF_USE_CURL) ENDIF () FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme) -GENERATE_EDJ( +SET(WebKit_THEME ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme/default.edj) +ADD_CUSTOM_COMMAND( + OUTPUT ${WebKit_THEME} + COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME} + DEPENDS ${WEBKIT_DIR}/efl/DefaultTheme/default.edc - ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme/default.edj - "-id;${WEBKIT_DIR}/efl/DefaultTheme" + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_v.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_v.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_h.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_h.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc + ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png + ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc + VERBATIM ) SET(EWebLauncher_SOURCES diff --git a/WebKit/efl/ChangeLog b/WebKit/efl/ChangeLog index 0a627e7..de65885 100644 --- a/WebKit/efl/ChangeLog +++ b/WebKit/efl/ChangeLog @@ -1,3 +1,140 @@ +2010-08-15 Gyuyoung Kim <gyuyoung.kim@samsung.com> + + Reviewed by Antonio Gomes. + + [EFL] Enable localStorage of HTML5 for WebKit EFL + https://bugs.webkit.org/show_bug.cgi?id=44020 + + * ewk/ewk_view.cpp: + (_ewk_view_priv_new): + +2010-08-11 Rafael Antognolli <antognolli@profusion.mobi> + + Reviewed by Kenneth Rohde Christiansen. + + [EFL] Adding new theme for widgets. + https://bugs.webkit.org/show_bug.cgi?id=43860 + + Original theme was there for a long time. This is a new + fresh one. + + * DefaultTheme/default.edc: + * DefaultTheme/widget/button/button.edc: + * DefaultTheme/widget/button/img_button_focus.png: + * DefaultTheme/widget/button/img_button_hover.png: + * DefaultTheme/widget/button/img_button_normal.png: + * DefaultTheme/widget/button/img_button_press.png: + * DefaultTheme/widget/check/check.edc: + * DefaultTheme/widget/check/img_check_off.png: + * DefaultTheme/widget/check/img_check_off_focus.png: + * DefaultTheme/widget/check/img_check_off_hover.png: + * DefaultTheme/widget/check/img_check_on.png: + * DefaultTheme/widget/check/img_check_on_focus.png: + * DefaultTheme/widget/check/img_check_on_hover.png: + * DefaultTheme/widget/combo/combo.edc: + * DefaultTheme/widget/combo/combo_focus.png: + * DefaultTheme/widget/combo/combo_focus_button.png: + * DefaultTheme/widget/combo/combo_hover.png: + * DefaultTheme/widget/combo/combo_hover_button.png: + * DefaultTheme/widget/combo/combo_normal.png: + * DefaultTheme/widget/combo/combo_normal_button.png: + * DefaultTheme/widget/combo/combo_press.png: + * DefaultTheme/widget/combo/combo_press_button.png: + * DefaultTheme/widget/combo/icon.png: + * DefaultTheme/widget/entry/img_focused.png: + * DefaultTheme/widget/entry/img_hovered.png: + * DefaultTheme/widget/entry/img_normal.png: + * DefaultTheme/widget/file/file_focus.png: + * DefaultTheme/widget/file/file_hover.png: + * DefaultTheme/widget/file/file_normal.png: + * DefaultTheme/widget/file/file_press.png: + * DefaultTheme/widget/radio/img_radio_off.png: + * DefaultTheme/widget/radio/img_radio_off_focus.png: + * DefaultTheme/widget/radio/img_radio_off_hover.png: + * DefaultTheme/widget/radio/img_radio_on.png: + * DefaultTheme/widget/radio/img_radio_on_focus.png: + * DefaultTheme/widget/radio/img_radio_on_hover.png: + * DefaultTheme/widget/radio/radio.edc: + * DefaultTheme/widget/scrollbar/scrollbar.edc: + * DefaultTheme/widget/scrollbar/scrollbar_h.png: + * DefaultTheme/widget/scrollbar/scrollbar_hilight.png: Removed. + * DefaultTheme/widget/scrollbar/scrollbar_knob_h.png: + * DefaultTheme/widget/scrollbar/scrollbar_knob_v.png: + * DefaultTheme/widget/scrollbar/scrollbar_v.png: + * DefaultTheme/widget/search/cancel/cancel_normal_button2.png: + * DefaultTheme/widget/search/decoration/decoration_normal_button.png: + * DefaultTheme/widget/search/field/field_focused.png: + * DefaultTheme/widget/search/field/field_hovered.png: + * DefaultTheme/widget/search/field/field_normal.png: + * DefaultTheme/widget/slider/slider.edc: + * DefaultTheme/widget/slider/slider_fill_h.png: Added. + * DefaultTheme/widget/slider/slider_fill_v.png: Added. + * DefaultTheme/widget/slider/slider_h.png: + * DefaultTheme/widget/slider/slider_hilight.png: Removed. + * DefaultTheme/widget/slider/slider_knob_h.png: + * DefaultTheme/widget/slider/slider_knob_press_h.png: Added. + * DefaultTheme/widget/slider/slider_knob_press_v.png: Added. + * DefaultTheme/widget/slider/slider_knob_v.png: + * DefaultTheme/widget/slider/slider_v.png: + +2010-08-12 Rafael Antognolli <antognolli@profusion.mobi> + + Reviewed by Kenneth Rohde Christiansen. + + [EFL] Making CMake keep track of theme dependencies. + https://bugs.webkit.org/show_bug.cgi?id=43862 + + Adding theme source files and images as dependencies of the theme. + + * CMakeListsEfl.txt: + +2010-08-11 Rafael Antognolli <antognolli@profusion.mobi> + + Reviewed by Kenneth Rohde Christiansen. + + [EFL] Add setting for enabling spatial navigation. + https://bugs.webkit.org/show_bug.cgi?id=43569 + + Adding api for enabling/disabling spatial navigation. + + * ewk/ewk_view.cpp: Both functions below added. + (ewk_view_setting_spatial_navigation_get): + (ewk_view_setting_spatial_navigation_set): + * ewk/ewk_view.h: same as ewk_view.cpp. + +2010-08-11 Ryuan Choi <ryuan.choi@samsung.com> + + Reviewed by Antonio Gomes. + + Implementation dispatchDecidePolicyForNavigationAction + https://bugs.webkit.org/show_bug.cgi?id=43544 + + Add ewk_view_navigation_policy_decision to decide whether url which + user clicked will be loaded or not. + + * WebCoreSupport/FrameLoaderClientEfl.cpp: + (WebCore::FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction): + * ewk/ewk_private.h: + * ewk/ewk_view.cpp: + (ewk_view_navigation_policy_decision): + * ewk/ewk_view.h: + +2010-08-10 Ryuan Choi <ryuan.choi@samsung.com> + + Unreviewed build fix. + + [EFL]REGRESSION(65021) need to fix build break + https://bugs.webkit.org/show_bug.cgi?id=43767 + + Remove AtomicStringWTF and change namespace TextCaseInsensitive. + + * ewk/ewk_frame.cpp: + (ewk_frame_plugin_create): + * ewk/ewk_view.cpp: + (ewk_view_text_search): + (ewk_view_text_matches_mark): + (ewk_view_setting_font_cursive_set): + 2010-08-06 Gavin Barraclough <barraclough@apple.com> Rubber stamped by Sam Weinig diff --git a/WebKit/efl/DefaultTheme/default.edc b/WebKit/efl/DefaultTheme/default.edc index 82b6882..e9f55f0 100644 --- a/WebKit/efl/DefaultTheme/default.edc +++ b/WebKit/efl/DefaultTheme/default.edc @@ -23,16 +23,16 @@ color_classes { color_class { name: "webkit/selection/active"; color: 255 255 255 255; /* foreground */ - color2: 32 0 200 255; /* background */ + color2: 86 86 209 255; /* background */ } color_class { name: "webkit/selection/inactive"; color: 255 255 255 255; /* foreground */ - color2: 128 0 255 128; /* background */ + color2: 0 0 128 128; /* background */ } color_class { name: "webkit/focus_ring"; - color: 26 182 240 255; /* foreground */ + color: 26 26 226 255; /* foreground */ /* no background, consider transparent */ } color_class { diff --git a/WebKit/efl/DefaultTheme/widget/button/button.edc b/WebKit/efl/DefaultTheme/widget/button/button.edc index 603daa0..78cc72a 100644 --- a/WebKit/efl/DefaultTheme/widget/button/button.edc +++ b/WebKit/efl/DefaultTheme/widget/button/button.edc @@ -64,10 +64,10 @@ type: IMAGE; description { state: "default" 0.0; - min: 25 10; + min: 25 25; image { normal: "widget/button/img_button_normal.png"; - border: 6 6 6 6; + border: 6 10 8 10; } } description { @@ -75,7 +75,7 @@ inherit: "default" 0.0; image { normal: "widget/button/img_button_press.png"; - border: 8 8 8 8; + border: 6 10 8 10; } } description { @@ -88,7 +88,7 @@ inherit: "default" 0.0; image { normal: "widget/button/img_button_hover.png"; - border: 6 6 6 6; + border: 6 10 8 10; } } description { @@ -96,7 +96,7 @@ inherit: "default" 0.0; image { normal: "widget/button/img_button_focus.png"; - border: 6 6 6 6; + border: 6 10 8 10; } } } @@ -109,11 +109,11 @@ color: 0 0 0 0; rel1 { relative: 0.0 0.0; - offset: 10 5; + offset: 15 8; } rel2 { relative: 1.0 1.0; - offset: -11 -6; + offset: -16 -11; } } } diff --git a/WebKit/efl/DefaultTheme/widget/button/img_button_focus.png b/WebKit/efl/DefaultTheme/widget/button/img_button_focus.png Binary files differindex b9395d3..9e91fe8 100644 --- a/WebKit/efl/DefaultTheme/widget/button/img_button_focus.png +++ b/WebKit/efl/DefaultTheme/widget/button/img_button_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/button/img_button_hover.png b/WebKit/efl/DefaultTheme/widget/button/img_button_hover.png Binary files differindex 224f966..9e91fe8 100644 --- a/WebKit/efl/DefaultTheme/widget/button/img_button_hover.png +++ b/WebKit/efl/DefaultTheme/widget/button/img_button_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/button/img_button_normal.png b/WebKit/efl/DefaultTheme/widget/button/img_button_normal.png Binary files differindex b546075..bd9dee9 100644 --- a/WebKit/efl/DefaultTheme/widget/button/img_button_normal.png +++ b/WebKit/efl/DefaultTheme/widget/button/img_button_normal.png diff --git a/WebKit/efl/DefaultTheme/widget/button/img_button_press.png b/WebKit/efl/DefaultTheme/widget/button/img_button_press.png Binary files differindex 7434179..b8b5163 100644 --- a/WebKit/efl/DefaultTheme/widget/button/img_button_press.png +++ b/WebKit/efl/DefaultTheme/widget/button/img_button_press.png diff --git a/WebKit/efl/DefaultTheme/widget/check/check.edc b/WebKit/efl/DefaultTheme/widget/check/check.edc index 86490f6..0e09303 100644 --- a/WebKit/efl/DefaultTheme/widget/check/check.edc +++ b/WebKit/efl/DefaultTheme/widget/check/check.edc @@ -22,7 +22,7 @@ group { name: "webkit/widget/checkbox"; - min: 14 14; + min: 12 12; images { image: "widget/check/img_check_on.png" COMP; @@ -71,8 +71,8 @@ type: IMAGE; description { state: "default" 0.0; - min: 14 14; - max: 14 14; + min: 12 12; + max: 12 12; image { normal: "widget/check/img_check_off.png"; } diff --git a/WebKit/efl/DefaultTheme/widget/check/img_check_off.png b/WebKit/efl/DefaultTheme/widget/check/img_check_off.png Binary files differindex 4353276..167fa4e 100644 --- a/WebKit/efl/DefaultTheme/widget/check/img_check_off.png +++ b/WebKit/efl/DefaultTheme/widget/check/img_check_off.png diff --git a/WebKit/efl/DefaultTheme/widget/check/img_check_off_focus.png b/WebKit/efl/DefaultTheme/widget/check/img_check_off_focus.png Binary files differindex 3d30818..18bee2a 100644 --- a/WebKit/efl/DefaultTheme/widget/check/img_check_off_focus.png +++ b/WebKit/efl/DefaultTheme/widget/check/img_check_off_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/check/img_check_off_hover.png b/WebKit/efl/DefaultTheme/widget/check/img_check_off_hover.png Binary files differindex 6f397db..18bee2a 100644 --- a/WebKit/efl/DefaultTheme/widget/check/img_check_off_hover.png +++ b/WebKit/efl/DefaultTheme/widget/check/img_check_off_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/check/img_check_on.png b/WebKit/efl/DefaultTheme/widget/check/img_check_on.png Binary files differindex 65750a7..87d13ed 100644 --- a/WebKit/efl/DefaultTheme/widget/check/img_check_on.png +++ b/WebKit/efl/DefaultTheme/widget/check/img_check_on.png diff --git a/WebKit/efl/DefaultTheme/widget/check/img_check_on_focus.png b/WebKit/efl/DefaultTheme/widget/check/img_check_on_focus.png Binary files differindex 0abf6ee..1f40566 100644 --- a/WebKit/efl/DefaultTheme/widget/check/img_check_on_focus.png +++ b/WebKit/efl/DefaultTheme/widget/check/img_check_on_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/check/img_check_on_hover.png b/WebKit/efl/DefaultTheme/widget/check/img_check_on_hover.png Binary files differindex 522c238..1f40566 100644 --- a/WebKit/efl/DefaultTheme/widget/check/img_check_on_hover.png +++ b/WebKit/efl/DefaultTheme/widget/check/img_check_on_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo.edc b/WebKit/efl/DefaultTheme/widget/combo/combo.edc index 9c436cc..d101d60 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo.edc +++ b/WebKit/efl/DefaultTheme/widget/combo/combo.edc @@ -104,7 +104,7 @@ group { min: 36 20; image { normal: "widget/combo/combo_normal.png"; - border: 7 7 7 7; + border: 15 0 8 11; } } description { @@ -117,7 +117,7 @@ group { inherit: "default" 0.0; image { normal: "widget/combo/combo_hover.png"; - border: 7 7 7 7; + border: 15 0 8 11; } } description { @@ -125,7 +125,7 @@ group { inherit: "default" 0.0; image { normal: "widget/combo/combo_focus.png"; - border: 7 7 7 7; + border: 15 0 8 11; } } description { @@ -133,7 +133,7 @@ group { inherit: "default" 0.0; image { normal: "widget/combo/combo_press.png"; - border: 7 7 7 7; + border: 15 0 8 11; } } } @@ -165,7 +165,7 @@ group { rel1.to: "bt_combo_clipper"; image { normal: "widget/combo/combo_normal_button.png"; - border: 3 5 5 5; + border: 1 15 8 10; } } description { @@ -180,7 +180,7 @@ group { rel1.to: "bt_combo_clipper"; image { normal: "widget/combo/combo_hover_button.png"; - border: 3 5 5 5; + border: 1 15 8 10; } } description { @@ -189,7 +189,7 @@ group { rel1.to: "bt_combo_clipper"; image { normal: "widget/combo/combo_focus_button.png"; - border: 6 7 7 7; + border: 1 15 8 10; } } description { @@ -198,7 +198,7 @@ group { rel1.to: "bt_combo_clipper"; image { normal: "widget/combo/combo_press_button.png"; - border: 6 8 8 8; + border: 1 15 8 10; } } } @@ -210,8 +210,8 @@ group { clip_to: "bt_combo_clipper"; description { state: "default" 0.0; - min: 17 13; - max: 17 13; + min: 12 10; + max: 12 10; color: 255 255 255 150; rel1 { to: "bt_combo_clipper"; @@ -247,11 +247,11 @@ group { color: 0 0 0 0; rel1 { to: "combo_clipper"; - offset: 10 5; + offset: 15 10; } rel2 { to: "combo_clipper"; - offset: -6 -6; + offset: -11 -11; } } } diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_focus.png b/WebKit/efl/DefaultTheme/widget/combo/combo_focus.png Binary files differindex cfdc309..3b1574b 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_focus.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_focus_button.png b/WebKit/efl/DefaultTheme/widget/combo/combo_focus_button.png Binary files differindex 9fc2d10..eaf137b 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_focus_button.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_focus_button.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_hover.png b/WebKit/efl/DefaultTheme/widget/combo/combo_hover.png Binary files differindex 9aaa4ee..3b1574b 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_hover.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_hover_button.png b/WebKit/efl/DefaultTheme/widget/combo/combo_hover_button.png Binary files differindex 1f5c6b8..eaf137b 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_hover_button.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_hover_button.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_normal.png b/WebKit/efl/DefaultTheme/widget/combo/combo_normal.png Binary files differindex 9afe713..fc461a7 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_normal.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_normal.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_normal_button.png b/WebKit/efl/DefaultTheme/widget/combo/combo_normal_button.png Binary files differindex d920d90..1cbcb11 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_normal_button.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_normal_button.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_press.png b/WebKit/efl/DefaultTheme/widget/combo/combo_press.png Binary files differindex 4b39c70..97c88c5 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_press.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_press.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/combo_press_button.png b/WebKit/efl/DefaultTheme/widget/combo/combo_press_button.png Binary files differindex da54328..17233af 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/combo_press_button.png +++ b/WebKit/efl/DefaultTheme/widget/combo/combo_press_button.png diff --git a/WebKit/efl/DefaultTheme/widget/combo/icon.png b/WebKit/efl/DefaultTheme/widget/combo/icon.png Binary files differindex 5d9fb96..1534c2c 100644 --- a/WebKit/efl/DefaultTheme/widget/combo/icon.png +++ b/WebKit/efl/DefaultTheme/widget/combo/icon.png diff --git a/WebKit/efl/DefaultTheme/widget/entry/img_focused.png b/WebKit/efl/DefaultTheme/widget/entry/img_focused.png Binary files differindex 0069d1e..f4b17a9 100644 --- a/WebKit/efl/DefaultTheme/widget/entry/img_focused.png +++ b/WebKit/efl/DefaultTheme/widget/entry/img_focused.png diff --git a/WebKit/efl/DefaultTheme/widget/entry/img_hovered.png b/WebKit/efl/DefaultTheme/widget/entry/img_hovered.png Binary files differindex fbd07af..f4b17a9 100644 --- a/WebKit/efl/DefaultTheme/widget/entry/img_hovered.png +++ b/WebKit/efl/DefaultTheme/widget/entry/img_hovered.png diff --git a/WebKit/efl/DefaultTheme/widget/entry/img_normal.png b/WebKit/efl/DefaultTheme/widget/entry/img_normal.png Binary files differindex 7c5f1cf..88d53f4 100644 --- a/WebKit/efl/DefaultTheme/widget/entry/img_normal.png +++ b/WebKit/efl/DefaultTheme/widget/entry/img_normal.png diff --git a/WebKit/efl/DefaultTheme/widget/file/file_focus.png b/WebKit/efl/DefaultTheme/widget/file/file_focus.png Binary files differindex 55f5bb8..cc93b27 100644 --- a/WebKit/efl/DefaultTheme/widget/file/file_focus.png +++ b/WebKit/efl/DefaultTheme/widget/file/file_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/file/file_hover.png b/WebKit/efl/DefaultTheme/widget/file/file_hover.png Binary files differindex be32454..41285a1 100644 --- a/WebKit/efl/DefaultTheme/widget/file/file_hover.png +++ b/WebKit/efl/DefaultTheme/widget/file/file_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/file/file_normal.png b/WebKit/efl/DefaultTheme/widget/file/file_normal.png Binary files differindex 794eba6..a6d0653 100644 --- a/WebKit/efl/DefaultTheme/widget/file/file_normal.png +++ b/WebKit/efl/DefaultTheme/widget/file/file_normal.png diff --git a/WebKit/efl/DefaultTheme/widget/file/file_press.png b/WebKit/efl/DefaultTheme/widget/file/file_press.png Binary files differindex 4471dc5..f18f8fd 100644 --- a/WebKit/efl/DefaultTheme/widget/file/file_press.png +++ b/WebKit/efl/DefaultTheme/widget/file/file_press.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/img_radio_off.png b/WebKit/efl/DefaultTheme/widget/radio/img_radio_off.png Binary files differindex e249d8f..cd64cd8 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/img_radio_off.png +++ b/WebKit/efl/DefaultTheme/widget/radio/img_radio_off.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_focus.png b/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_focus.png Binary files differindex b25751c..87d31e2 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_focus.png +++ b/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_hover.png b/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_hover.png Binary files differindex 9096ef8..87d31e2 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_hover.png +++ b/WebKit/efl/DefaultTheme/widget/radio/img_radio_off_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/img_radio_on.png b/WebKit/efl/DefaultTheme/widget/radio/img_radio_on.png Binary files differindex b1f4085..b8d8ecb 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/img_radio_on.png +++ b/WebKit/efl/DefaultTheme/widget/radio/img_radio_on.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_focus.png b/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_focus.png Binary files differindex a28d3dd..bf8a970 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_focus.png +++ b/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_focus.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_hover.png b/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_hover.png Binary files differindex 3a3a35e..bf8a970 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_hover.png +++ b/WebKit/efl/DefaultTheme/widget/radio/img_radio_on_hover.png diff --git a/WebKit/efl/DefaultTheme/widget/radio/radio.edc b/WebKit/efl/DefaultTheme/widget/radio/radio.edc index 38a6da9..f07b9b2 100644 --- a/WebKit/efl/DefaultTheme/widget/radio/radio.edc +++ b/WebKit/efl/DefaultTheme/widget/radio/radio.edc @@ -21,7 +21,7 @@ group { name: "webkit/widget/radio"; - min: 16 16; + min: 12 12; images { image: "widget/radio/img_radio_on.png" COMP; @@ -70,8 +70,8 @@ type: IMAGE; description { state: "default" 0.0; - min: 16 16; - max: 16 16; + min: 12 12; + max: 12 12; image { normal: "widget/radio/img_radio_off.png"; } diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc index 4f59784..b4eead0 100644 --- a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc +++ b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar.edc @@ -1,7 +1,5 @@ /* Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia - Copyright (C) 2009,2010 ProFUSION embedded systems - Copyright (C) 2009,2010 Samsung Electronics This file is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -22,7 +20,7 @@ group { name: "scrollbar.vertical"; - min: 10 0; /* if > 0, this is the minimum size that will be allocated. + min: 0 0; /* if > 0, this is the minimum size that will be allocated. * If wants to draw on top, just overflow usign edje's rel1/rel2 */ @@ -85,20 +83,26 @@ group { description { min: 10 0; max: 10 999999; + align: 1.0 0.5; state: "default" 0.0; color: 255 255 255 0; } } + part { name: "rect.clipper"; type: RECT; description { state: "default" 0.0; color: 255 255 255 255; + rel1.to: "rect.base"; + rel2.to: "rect.base"; } description { state: "hidden" 0.0; - color: 255 255 255 128; + color: 255 255 255 64; + rel1.to: "rect.base"; + rel2.to: "rect.base"; } } @@ -109,11 +113,31 @@ group { clip_to: "rect.clipper"; description { state: "default" 0.0; + min: 1 30; + max: 1 999999; + align: 0.5 0.5; image { normal: "widget/scrollbar/scrollbar_v.png"; - border: 0 0 6 6; + border: 0 0 15 15; + middle: SOLID; } - } + rel1.to: "rect.base"; + rel2.to: "rect.base"; + } + } + + part { + name: "rect.knobarea"; + type: RECT; + description { + state: "default" 0.0; + color: 255 255 255 0; + min: 5 5; + max: 5 999999; + align: 0.5 0.5; + rel1.to: "rect.base"; + rel2.to: "rect.base"; + } } part { @@ -124,15 +148,17 @@ group { dragable { x: 0 0 0; y: 1 1 0; - confine: "rect.base"; + confine: "rect.knobarea"; } description { state: "default" 0.0; - min: 10 10; - max: 10 999999; + min: 5 5; + max: 5 999999; + align: 0.5 0.5; image { normal: "widget/scrollbar/scrollbar_knob_v.png"; - border: 0 0 6 6; + border: 3 3 3 3; + middle: SOLID; } } } @@ -171,7 +197,7 @@ group { group { name: "scrollbar.horizontal"; - min: 0 10; /* if > 0, this is the minimum size that will be allocated. + min: 0 0; /* if > 0, this is the minimum size that will be allocated. * If wants to draw on top, just overflow usign edje's rel1/rel2 */ @@ -235,19 +261,25 @@ group { state: "default" 0.0; min: 0 10; max: 999999 10; + align: 0.5 1.0; color: 255 255 255 0; } } + part { name: "rect.clipper"; type: RECT; description { state: "default" 0.0; color: 255 255 255 255; + rel1.to: "rect.base"; + rel2.to: "rect.base"; } description { state: "hidden" 0.0; - color: 255 255 255 128; + color: 255 255 255 64; + rel1.to: "rect.base"; + rel2.to: "rect.base"; } } @@ -258,13 +290,34 @@ group { clip_to: "rect.clipper"; description { state: "default" 0.0; + min: 30 1; + max: 999999 1; + align: 0.5 0.5; image { normal: "widget/scrollbar/scrollbar_h.png"; - border: 6 6 0 0; + border: 15 15 0 0; + middle: SOLID; } + rel1.to: "rect.base"; + rel2.to: "rect.base"; } } + + part { + name: "rect.knobarea"; + type: RECT; + description { + state: "default" 0.0; + color: 255 255 255 0; + min: 5 5; + max: 999999 5; + align: 0.5 0.5; + rel1.to: "rect.base"; + rel2.to: "rect.base"; + } + } + part { name: "img.knob"; type: IMAGE; @@ -273,14 +326,16 @@ group { dragable { x: 1 1 0; y: 0 0 0; - confine: "rect.base"; + confine: "rect.knobarea"; } description { state: "default" 0.0; - min: 10 10; + min: 5 5; + max: 999999 5; image { normal: "widget/scrollbar/scrollbar_knob_h.png"; - border: 6 6 0 0; + border: 3 3 3 3; + middle: SOLID; } } } diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png Binary files differindex 6e55557..6703ea8 100644 --- a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png +++ b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_hilight.png b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_hilight.png Binary files differdeleted file mode 100644 index 1116f4e..0000000 --- a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_hilight.png +++ /dev/null diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png Binary files differindex bc65102..b64d5ce 100644 --- a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png +++ b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png Binary files differindex db3c685..9aa37ec 100644 --- a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png +++ b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png diff --git a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png Binary files differindex 9ebdac2..364be0a 100644 --- a/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png +++ b/WebKit/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png diff --git a/WebKit/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png b/WebKit/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png Binary files differindex 5ab4f5b..3120cfb 100644 --- a/WebKit/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png +++ b/WebKit/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png diff --git a/WebKit/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png b/WebKit/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png Binary files differindex 3ed2219..6e7f418 100644 --- a/WebKit/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png +++ b/WebKit/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png diff --git a/WebKit/efl/DefaultTheme/widget/search/field/field_focused.png b/WebKit/efl/DefaultTheme/widget/search/field/field_focused.png Binary files differindex 0069d1e..f4b17a9 100644 --- a/WebKit/efl/DefaultTheme/widget/search/field/field_focused.png +++ b/WebKit/efl/DefaultTheme/widget/search/field/field_focused.png diff --git a/WebKit/efl/DefaultTheme/widget/search/field/field_hovered.png b/WebKit/efl/DefaultTheme/widget/search/field/field_hovered.png Binary files differindex fbd07af..f4b17a9 100644 --- a/WebKit/efl/DefaultTheme/widget/search/field/field_hovered.png +++ b/WebKit/efl/DefaultTheme/widget/search/field/field_hovered.png diff --git a/WebKit/efl/DefaultTheme/widget/search/field/field_normal.png b/WebKit/efl/DefaultTheme/widget/search/field/field_normal.png Binary files differindex 7c5f1cf..88d53f4 100644 --- a/WebKit/efl/DefaultTheme/widget/search/field/field_normal.png +++ b/WebKit/efl/DefaultTheme/widget/search/field/field_normal.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider.edc b/WebKit/efl/DefaultTheme/widget/slider/slider.edc index 6c1f6a5..9e339e5 100644 --- a/WebKit/efl/DefaultTheme/widget/slider/slider.edc +++ b/WebKit/efl/DefaultTheme/widget/slider/slider.edc @@ -22,35 +22,65 @@ group { name: "webkit/widget/slider/vertical"; - min: 10 0; /* if > 0, this is the minimum size that will be allocated. + min: 11 0; /* if > 0, this is the minimum size that will be allocated. * If wants to draw on top, just overflow usign edje's rel1/rel2 */ + max: 11 999999; images { image: "widget/slider/slider_v.png" COMP; image: "widget/slider/slider_knob_v.png" COMP; + image: "widget/slider/slider_knob_press_v.png" COMP; + image: "widget/slider/slider_fill_v.png" COMP; } script { - public message(Msg_Type:type, id, ...) { - if ((id == 0) && (type == MSG_FLOAT_SET)) { - new Float:vy, Float:sy; + public isEnabled; + public isPressed; + public isChecked; + public isFocused; + public isHovered; - vy = getfarg(2); - sy = getfarg(3); + public show() { - if (vy >= 0.0) { - set_drag_size(PART:"img.knob", 1.0, sy); - set_drag(PART:"img.knob", 0.0, vy); - } - } - } + if (get_int(isEnabled) == 1) { + set_state(PART:"img.knob", "default", 0.0); + if (get_int(isFocused) == 1) { + set_state(PART:"img.knob", "pressed", 0.0); + if (get_int(isPressed) == 1) + set_state(PART:"img.knob", "pressed", 0.0); + } + else if (get_int(isHovered) == 1) { + set_state(PART:"img.knob", "pressed", 0.0); + if (get_int(isPressed) == 1) + set_state(PART:"img.knob", "pressed", 0.0); + } + } + else + set_state(PART:"img.knob", "default", 0.0); + } - public update_drag_pos() { - new Float:x, Float:y; - get_drag(PART:"img.knob", x, y); - send_message(MSG_FLOAT, 1, y); - } + public message(Msg_Type:type, id, ...) { + if ((id == 0) && (type == MSG_FLOAT_SET)) { + new Float:vy, Float:sy; + + vy = getfarg(2); + sy = getfarg(3); + + if (vy >= 0.0) { + set_drag_size(PART:"img.knob", 1.0, sy); + set_drag(PART:"img.knob", 0.0, vy); + run_program(PROGRAM:"show"); + } else + run_program(PROGRAM:"hide"); + } + } + + public update_drag_pos() { + new Float:x, Float:y; + get_drag(PART:"img.knob", x, y); + send_message(MSG_FLOAT, 1, y); + } } parts { @@ -58,8 +88,8 @@ group { name: "rect.base"; type: RECT; description { - min: 10 0; - max: 10 999999; + min: 11 29; + max: 11 999999; state: "default" 0.0; color: 255 255 255 0; } @@ -71,6 +101,10 @@ group { state: "default" 0.0; color: 255 255 255 255; } + description { + state: "hidden" 0.0; + color: 255 255 255 128; + } } part { @@ -80,9 +114,32 @@ group { clip_to: "rect.clipper"; description { state: "default" 0.0; + min: 5 29; + max: 5 999999; + rel1.to: "rect.base"; + rel2.to: "rect.base"; image { normal: "widget/slider/slider_v.png"; - border: 0 0 6 6; + border: 0 0 5 5; + } + } + } + + part { + name: "img.slider_fill"; + type: IMAGE; + mouse_events: 0; + clip_to: "rect.clipper"; + description { + state: "default" 0.0; + min: 5 29; + max: 5 999999; + rel1.to: "img.knob"; + rel2.to: "rect.base"; + align: 0.5 0.5; + image { + normal: "widget/slider/slider_fill_v.png"; + border: 0 0 5 5; } } } @@ -94,22 +151,46 @@ group { clip_to: "rect.clipper"; dragable { x: 0 0 0; - y: 1 1 0; + y: 1 1 1; confine: "rect.base"; } description { state: "default" 0.0; - min: 10 10; - max: 10 999999; + min: 11 29; + align: 0.5 0.5; image { normal: "widget/slider/slider_knob_v.png"; border: 0 0 6 6; } } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + image.normal: "widget/slider/slider_knob_press_v.png"; + } } } programs { program { + name: "load"; + signal: "load"; + action: STATE_SET "hidden" 0.0; + target: "rect.clipper"; + } + program { + name: "hide"; + action: STATE_SET "hidden" 0.0; + transition: ACCELERATE 0.5; + target: "rect.clipper"; + } + + program { + name: "show"; + action: STATE_SET "default" 0.0; + target: "rect.clipper"; + } + + program { name: "dragged"; signal: "drag"; source: "img.knob"; @@ -117,41 +198,124 @@ group { update_drag_pos(); } } + + program { + name: "enabled"; + signal: "enabled"; + script { + set_int(isEnabled, 1); + show(); + } + } + program { + name: "pressed"; + signal: "pressed"; + script { + set_int(isPressed, 1); + show(); + } + } + program { + name: "checked"; + signal: "checked"; + script { + set_int(isChecked, 1); + show(); + } + } + program { + name: "focused"; + signal: "focused"; + script { + set_int(isFocused, 1); + show(); + } + } + program { + name: "hovered"; + signal: "hovered"; + script { + set_int(isHovered, 1); + show(); + } + } + program { + name: "reset"; + signal: "reset"; + script { + set_int(isEnabled, 0); + set_int(isPressed, 0); + set_int(isChecked, 0); + set_int(isFocused, 0); + set_int(isHovered, 0); + show(); + } + } } } group { name: "webkit/widget/slider/horizontal"; - min: 0 10; /* if > 0, this is the minimum size that will be allocated. + min: 0 11; /* if > 0, this is the minimum size that will be allocated. * If wants to draw on top, just overflow usign edje's rel1/rel2 */ + max: 999999 11; images { image: "widget/slider/slider_h.png" COMP; image: "widget/slider/slider_knob_h.png" COMP; + image: "widget/slider/slider_knob_press_h.png" COMP; + image: "widget/slider/slider_fill_h.png" COMP; } script { - public message(Msg_Type:type, id, ...) { - if ((id == 0) && (type == MSG_FLOAT_SET)) { - new Float:vx, Float:sx; + public isEnabled; + public isPressed; + public isChecked; + public isFocused; + public isHovered; - vx = getfarg(2); - sx = getfarg(3); + public show() { - if (vx >= 0.0) { - set_drag_size(PART:"img.knob", sx, 1.0); - set_drag(PART:"img.knob", vx, 0.0); - } - } - } + if (get_int(isEnabled) == 1) { + set_state(PART:"img.knob", "default", 0.0); + if (get_int(isFocused) == 1) { + set_state(PART:"img.knob", "pressed", 0.0); + if (get_int(isPressed) == 1) + set_state(PART:"img.knob", "pressed", 0.0); + } + else if (get_int(isHovered) == 1) { + set_state(PART:"img.knob", "pressed", 0.0); + if (get_int(isPressed) == 1) + set_state(PART:"img.knob", "pressed", 0.0); + } + } + else + set_state(PART:"img.knob", "default", 0.0); + } - public update_drag_pos() { - new Float:x, Float:y; - get_drag(PART:"img.knob", x, y); - send_message(MSG_FLOAT, 1, x); - } + public message(Msg_Type:type, id, ...) { + if ((id == 0) && (type == MSG_FLOAT_SET)) { + new Float:vx, Float:sx; + + vx = getfarg(2); + sx = getfarg(3); + + if (vx >= 0.0) { + set_drag_size(PART:"img.knob", sx, 1.0); + set_drag(PART:"img.knob", vx, 0.0); + run_program(PROGRAM:"show"); + } else + run_program(PROGRAM:"hide"); + } + } + + public update_drag_pos() { + new Float:x, Float:y; + get_drag(PART:"img.knob", x, y); + send_message(MSG_FLOAT, 1, x); + } } parts { @@ -160,8 +324,8 @@ group { type: RECT; description { state: "default" 0.0; - min: 0 10; - max: 999999 10; + min: 29 11; + max: 999999 11; color: 255 255 255 0; } } @@ -172,6 +336,10 @@ group { state: "default" 0.0; color: 255 255 255 255; } + description { + state: "hidden" 0.0; + color: 255 255 255 128; + } } part { @@ -181,9 +349,33 @@ group { clip_to: "rect.clipper"; description { state: "default" 0.0; + min: 29 5; + max: 999999 5; + rel1.to: "rect.base"; + rel2.to: "rect.base"; + align: 0.5 0.5; image { normal: "widget/slider/slider_h.png"; - border: 6 6 0 0; + border: 5 5 0 0; + } + } + } + + part { + name: "img.slider_fill"; + type: IMAGE; + mouse_events: 0; + clip_to: "rect.clipper"; + description { + state: "default" 0.0; + min: 29 5; + max: 999999 5; + rel1.to: "rect.base"; + rel2.to: "img.knob"; + align: 0.5 0.5; + image { + normal: "widget/slider/slider_fill_h.png"; + border: 5 5 0 0; } } } @@ -200,16 +392,41 @@ group { } description { state: "default" 0.0; - min: 10 10; + min: 29 11; + align: 0.5 0.5; image { normal: "widget/slider/slider_knob_h.png"; border: 6 6 0 0; } } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + image.normal: "widget/slider/slider_knob_press_h.png"; + } } } programs { program { + name: "load"; + signal: "load"; + action: STATE_SET "hidden" 0.0; + target: "rect.clipper"; + } + program { + name: "hide"; + action: STATE_SET "hidden" 0.0; + transition: ACCELERATE 0.5; + target: "rect.clipper"; + } + + program { + name: "show"; + action: STATE_SET "default" 0.0; + target: "rect.clipper"; + } + + program { name: "dragged"; signal: "drag"; source: "img.knob"; @@ -217,5 +434,58 @@ group { update_drag_pos(); } } + + program { + name: "enabled"; + signal: "enabled"; + script { + set_int(isEnabled, 1); + show(); + } + } + program { + name: "pressed"; + signal: "pressed"; + script { + set_int(isPressed, 1); + show(); + } + } + program { + name: "checked"; + signal: "checked"; + script { + set_int(isChecked, 1); + show(); + } + } + program { + name: "focused"; + signal: "focused"; + script { + set_int(isFocused, 1); + show(); + } + } + program { + name: "hovered"; + signal: "hovered"; + script { + set_int(isHovered, 1); + show(); + } + } + program { + name: "reset"; + signal: "reset"; + script { + set_int(isEnabled, 0); + set_int(isPressed, 0); + set_int(isChecked, 0); + set_int(isFocused, 0); + set_int(isHovered, 0); + show(); + } + } } } diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_fill_h.png b/WebKit/efl/DefaultTheme/widget/slider/slider_fill_h.png Binary files differnew file mode 100644 index 0000000..abe9d2c --- /dev/null +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_fill_h.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_fill_v.png b/WebKit/efl/DefaultTheme/widget/slider/slider_fill_v.png Binary files differnew file mode 100644 index 0000000..5184cad --- /dev/null +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_fill_v.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_h.png b/WebKit/efl/DefaultTheme/widget/slider/slider_h.png Binary files differindex 6e55557..befd4a0 100644 --- a/WebKit/efl/DefaultTheme/widget/slider/slider_h.png +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_h.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_hilight.png b/WebKit/efl/DefaultTheme/widget/slider/slider_hilight.png Binary files differdeleted file mode 100644 index 1116f4e..0000000 --- a/WebKit/efl/DefaultTheme/widget/slider/slider_hilight.png +++ /dev/null diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_knob_h.png b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_h.png Binary files differindex bc65102..22454af 100644 --- a/WebKit/efl/DefaultTheme/widget/slider/slider_knob_h.png +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_h.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_knob_press_h.png b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_press_h.png Binary files differnew file mode 100644 index 0000000..1421cd8 --- /dev/null +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_press_h.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_knob_press_v.png b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_press_v.png Binary files differnew file mode 100644 index 0000000..293813c --- /dev/null +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_press_v.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_knob_v.png b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_v.png Binary files differindex db3c685..051f3c3 100644 --- a/WebKit/efl/DefaultTheme/widget/slider/slider_knob_v.png +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_knob_v.png diff --git a/WebKit/efl/DefaultTheme/widget/slider/slider_v.png b/WebKit/efl/DefaultTheme/widget/slider/slider_v.png Binary files differindex 9ebdac2..7243929 100644 --- a/WebKit/efl/DefaultTheme/widget/slider/slider_v.png +++ b/WebKit/efl/DefaultTheme/widget/slider/slider_v.png diff --git a/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp b/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp index 5648ec7..499d6c2 100644 --- a/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp +++ b/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp @@ -354,9 +354,22 @@ void FrameLoaderClientEfl::dispatchDecidePolicyForNavigationAction(FramePolicyFu ASSERT(m_frame); // if not acceptNavigationRequest - look at Qt -> PolicyIgnore; // FIXME: do proper check and only reset forms when on PolicyIgnore - Frame* f = ewk_frame_core_get(m_frame); - f->loader()->resetMultipleFormSubmissionProtection(); - callPolicyFunction(function, PolicyUse); + char* url = strdup(resourceRequest.url().prettyURL().utf8().data()); + Ewk_Frame_Resource_Request request = { url, 0 }; + Eina_Bool ret = ewk_view_navigation_policy_decision(m_view, &request); + free(url); + + PolicyAction policy; + if (!ret) + policy = PolicyIgnore; + else { + if (action.type() == NavigationTypeFormSubmitted || action.type() == NavigationTypeFormResubmitted) { + Frame* f = ewk_frame_core_get(m_frame); + f->loader()->resetMultipleFormSubmissionProtection(); + } + policy = PolicyUse; + } + callPolicyFunction(function, policy); } PassRefPtr<Widget> FrameLoaderClientEfl::createPlugin(const IntSize& pluginSize, HTMLPlugInElement* element, const KURL& url, const Vector<String>& paramNames, const Vector<String>& paramValues, const String& mimeType, bool loadManually) diff --git a/WebKit/efl/ewk/ewk_frame.cpp b/WebKit/efl/ewk/ewk_frame.cpp index fcf5ed3..296c261 100644 --- a/WebKit/efl/ewk/ewk_frame.cpp +++ b/WebKit/efl/ewk/ewk_frame.cpp @@ -1946,7 +1946,7 @@ void ewk_frame_force_layout(Evas_Object* o) view->forceLayout(true); } -WTF::PassRefPtr<WebCore::Widget> ewk_frame_plugin_create(Evas_Object* o, const WebCore::IntSize& pluginSize, WebCore::HTMLPlugInElement* element, const WebCore::KURL& url, const WTF::Vector<WTF::String>& paramNames, const WTF::Vector<WTF::String>& paramValues, const WTF::StringWTF::String& mimeType, bool loadManually) +WTF::PassRefPtr<WebCore::Widget> ewk_frame_plugin_create(Evas_Object* o, const WebCore::IntSize& pluginSize, WebCore::HTMLPlugInElement* element, const WebCore::KURL& url, const WTF::Vector<WTF::String>& paramNames, const WTF::Vector<WTF::String>& paramValues, const WTF::String& mimeType, bool loadManually) { return 0; } diff --git a/WebKit/efl/ewk/ewk_private.h b/WebKit/efl/ewk/ewk_private.h index f69f46c..eaad13c 100644 --- a/WebKit/efl/ewk/ewk_private.h +++ b/WebKit/efl/ewk/ewk_private.h @@ -148,6 +148,8 @@ void ewk_frame_force_layout(Evas_Object *o); WTF::PassRefPtr<WebCore::Widget> ewk_frame_plugin_create(Evas_Object* o, const WebCore::IntSize& pluginSize, WebCore::HTMLPlugInElement* element, const WebCore::KURL& url, const WTF::Vector<WTF::String>& paramNames, const WTF::Vector<WTF::String>& paramValues, const WTF::String& mimeType, bool loadManually); +Eina_Bool ewk_view_navigation_policy_decision(Evas_Object* o, Ewk_Frame_Resource_Request* request); + #ifdef __cplusplus } diff --git a/WebKit/efl/ewk/ewk_view.cpp b/WebKit/efl/ewk/ewk_view.cpp index c030c1c..7a98bac 100644 --- a/WebKit/efl/ewk/ewk_view.cpp +++ b/WebKit/efl/ewk/ewk_view.cpp @@ -106,6 +106,7 @@ struct _Ewk_View_Private_Data { Eina_Bool resizable_textareas:1; Eina_Bool private_browsing:1; Eina_Bool caret_browsing:1; + Eina_Bool spatial_navigation:1; struct { float w; float h; @@ -557,6 +558,7 @@ static Ewk_View_Private_Data* _ewk_view_priv_new(Ewk_View_Smart_Data* sd) priv->page_settings->setStandardFontFamily("sans"); priv->page_settings->setJavaScriptEnabled(true); priv->page_settings->setPluginsEnabled(true); + priv->page_settings->setLocalStorageEnabled(true); url = priv->page_settings->userStyleSheetLocation(); priv->settings.user_stylesheet = eina_stringshare_add(url.prettyURL().utf8().data()); @@ -1318,13 +1320,13 @@ Eina_Bool ewk_view_text_search(const Evas_Object* o, const char* string, Eina_Bo EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE); EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE); EINA_SAFETY_ON_NULL_RETURN_VAL(string, EINA_FALSE); - WebCore::TextCaseSensitivity sensitive; + WTF::TextCaseSensitivity sensitive; WebCore::FindDirection direction; if (case_sensitive) - sensitive = WebCore::TextCaseSensitive; + sensitive = WTF::TextCaseSensitive; else - sensitive = WebCore::TextCaseInsensitive; + sensitive = WTF::TextCaseInsensitive; if (forward) direction = WebCore::FindDirectionForward; @@ -1350,12 +1352,12 @@ unsigned int ewk_view_text_matches_mark(Evas_Object* o, const char* string, Eina EWK_VIEW_SD_GET_OR_RETURN(o, sd, 0); EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, 0); EINA_SAFETY_ON_NULL_RETURN_VAL(string, 0); - WebCore::TextCaseSensitivity sensitive; + WTF::TextCaseSensitivity sensitive; if (case_sensitive) - sensitive = WebCore::TextCaseSensitive; + sensitive = WTF::TextCaseSensitive; else - sensitive = WebCore::TextCaseInsensitive; + sensitive = WTF::TextCaseInsensitive; return priv->page->markAllMatchesForText(WTF::String::fromUTF8(string), sensitive, highlight, limit); } @@ -2528,7 +2530,7 @@ Eina_Bool ewk_view_setting_font_cursive_set(Evas_Object* o, const char* family) EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE); EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE); if (eina_stringshare_replace(&priv->settings.font_cursive, family)) { - WTF::AtomicStringWTF::AtomicString s = WTF::String::fromUTF8(family); + WTF::AtomicString s = WTF::String::fromUTF8(family); priv->page_settings->setCursiveFontFamily(s); } return EINA_TRUE; @@ -2606,6 +2608,25 @@ Eina_Bool ewk_view_setting_font_sans_serif_set(Evas_Object* o, const char* famil return EINA_TRUE; } +Eina_Bool ewk_view_setting_spatial_navigation_get(Evas_Object* o) +{ + EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE); + EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE); + return priv->settings.spatial_navigation; +} + +Eina_Bool ewk_view_setting_spatial_navigation_set(Evas_Object* o, Eina_Bool enable) +{ + EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_FALSE); + EWK_VIEW_PRIV_GET_OR_RETURN(sd, priv, EINA_FALSE); + enable = !!enable; + if (priv->settings.spatial_navigation != enable) { + priv->page_settings->setSpatialNavigationEnabled(enable); + priv->settings.spatial_navigation = enable; + } + return EINA_TRUE; +} + /** * Similar to evas_object_smart_data_get(), but does type checking. * @@ -3980,3 +4001,23 @@ Eina_Bool ewk_view_user_scalable_get(Evas_Object* o) return priv->settings.zoom_range.user_scalable; } + +/** + * @internal + * Reports a requeset will be loaded. It's client responsibility to decide if + * request would be used. If @return is true, loader will try to load. Else, + * Loader ignore action of request. + * + * @param o View to load + * @param request Request which contain url to navigate + */ +Eina_Bool ewk_view_navigation_policy_decision(Evas_Object* o, Ewk_Frame_Resource_Request* request) +{ + EWK_VIEW_SD_GET_OR_RETURN(o, sd, EINA_TRUE); + EINA_SAFETY_ON_NULL_RETURN_VAL(sd->api, EINA_TRUE); + + if (!sd->api->navigation_policy_decision) + return EINA_TRUE; + + return sd->api->navigation_policy_decision(sd, request); +} diff --git a/WebKit/efl/ewk/ewk_view.h b/WebKit/efl/ewk/ewk_view.h index 19a3588..8dd6178 100644 --- a/WebKit/efl/ewk/ewk_view.h +++ b/WebKit/efl/ewk/ewk_view.h @@ -21,6 +21,7 @@ #ifndef ewk_view_h #define ewk_view_h +#include "ewk_frame.h" #include "ewk_history.h" #include "ewk_window_features.h" @@ -133,6 +134,8 @@ struct _Ewk_View_Smart_Class { uint64_t (*exceeded_database_quota)(Ewk_View_Smart_Data *sd, Evas_Object *frame, const char *databaseName, uint64_t current_size, uint64_t expected_size); Eina_Bool (*run_open_panel)(Ewk_View_Smart_Data *sd, Evas_Object *frame, Eina_Bool allows_multiple_files, const Eina_List *suggested_filenames, Eina_List **selected_filenames); + + Eina_Bool (*navigation_policy_decision)(Ewk_View_Smart_Data *sd, Ewk_Frame_Resource_Request *request); }; #define EWK_VIEW_SMART_CLASS_VERSION 1UL /** the version you have to put into the version field in the Ewk_View_Smart_Class structure */ @@ -433,6 +436,9 @@ EAPI Eina_Bool ewk_view_setting_font_serif_set(Evas_Object *o, const char *fa EAPI const char *ewk_view_setting_font_sans_serif_get(const Evas_Object *o); EAPI Eina_Bool ewk_view_setting_font_sans_serif_set(Evas_Object *o, const char *family); +EAPI Eina_Bool ewk_view_setting_spatial_navigation_get(Evas_Object* o); +EAPI Eina_Bool ewk_view_setting_spatial_navigation_set(Evas_Object* o, Eina_Bool enable); + /* to be used by subclass implementations */ EAPI Ewk_View_Smart_Data *ewk_view_smart_data_get(const Evas_Object *o); |