Changeset 164266 in webkit
- Timestamp:
- Feb 17, 2014 6:50:50 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r164260 r164266 1 2014-02-17 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 [CoordinatedGraphics][EFL] Remove view_source functions. 4 https://bugs.webkit.org/show_bug.cgi?id=128945 5 6 Reviewed by Anders Carlsson. 7 8 EFL port has been broken since r164254 because of removing view source files in WK2. 9 This patch is to follow to remove remained view source functions. 10 11 * UIProcess/API/C/CoordinatedGraphics/WKView.cpp: 12 * UIProcess/API/C/CoordinatedGraphics/WKView.h: 13 * UIProcess/API/efl/ewk_view.cpp: 14 * UIProcess/API/efl/ewk_view.h: 15 * UIProcess/API/efl/tests/test_ewk2_view.cpp: 16 * UIProcess/CoordinatedGraphics/WebView.cpp: 17 * UIProcess/CoordinatedGraphics/WebView.h: 18 1 19 2014-02-17 Tim Horton <timothy_horton@apple.com> 2 20 -
trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.cpp
r160321 r164266 170 170 } 171 171 172 void WKViewSetShowsAsSource(WKViewRef viewRef, bool flag)173 {174 toImpl(viewRef)->setShowsAsSource(flag);175 }176 177 bool WKViewGetShowsAsSource(WKViewRef viewRef)178 {179 return toImpl(viewRef)->showsAsSource();180 }181 182 172 bool WKViewExitFullScreen(WKViewRef viewRef) 183 173 { -
trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.h
r160075 r164266 107 107 WK_EXPORT void WKViewResumeActiveDOMObjectsAndAnimations(WKViewRef); 108 108 109 WK_EXPORT void WKViewSetShowsAsSource(WKViewRef, bool);110 WK_EXPORT bool WKViewGetShowsAsSource(WKViewRef);111 112 109 WK_EXPORT bool WKViewExitFullScreen(WKViewRef); 113 110 -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
r163614 r164266 659 659 } 660 660 661 Eina_Bool ewk_view_source_mode_set(Evas_Object* ewkView, Eina_Bool enabled)662 {663 EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);664 665 WKViewSetShowsAsSource(impl->wkView(), enabled);666 667 return true;668 }669 670 Eina_Bool ewk_view_source_mode_get(const Evas_Object* ewkView)671 {672 EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);673 674 return WKViewGetShowsAsSource(impl->wkView());675 }676 677 661 struct Ewk_View_Script_Execute_Callback_Context { 678 662 Ewk_View_Script_Execute_Callback_Context(Ewk_View_Script_Execute_Cb callback, Evas_Object* ewkView, void* userData) -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.h
r163614 r164266 868 868 869 869 /** 870 * Sets the source mode as EINA_TRUE to display the web source code871 * or EINA_FALSE otherwise. The default value is EINA_FALSE.872 *873 * This method should be called before loading new contents on web view874 * so that the new view mode will be applied to the new contents.875 *876 * @param o view object to set the view source mode877 * @param enabled a state to set view source mode878 *879 * @return @c EINA_TRUE on success, or @c EINA_FALSE on failure880 */881 EAPI Eina_Bool ewk_view_source_mode_set(Evas_Object *o, Eina_Bool enabled);882 883 /**884 * Gets the view source mode of the current web page.885 *886 * @param o view object to get the view source mode887 *888 * @return @c EINA_TRUE if the view mode is set to load source code, or889 * @c EINA_FALSE otherwise890 */891 EAPI Eina_Bool ewk_view_source_mode_get(const Evas_Object *o);892 893 /**894 870 * Requests execution of the given script. 895 871 * -
trunk/Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_view.cpp
r163614 r164266 1002 1002 } 1003 1003 1004 TEST_F(EWK2ViewTest, ewk_view_source_mode)1005 {1006 const char indexHTML[] = "<html><body>Test Web View Mode<script>document.title=window.document.body.innerText;</script></body></html>";1007 const char contents[] = "Test Web View Mode";1008 1009 // Default source mode is false.1010 EXPECT_FALSE(ewk_view_source_mode_get(webView()));1011 1012 // Load web contents of the web page.1013 ewk_view_html_string_load(webView(), indexHTML, 0, 0);1014 EXPECT_TRUE(waitUntilTitleChangedTo(contents));1015 1016 EXPECT_TRUE(ewk_view_source_mode_set(webView(), true));1017 EXPECT_TRUE(ewk_view_source_mode_get(webView()));1018 1019 // TODO: Add a test case when the source mode is true.1020 // But it needs a way to retrieve the body contents to compare the loaded contents1021 // such as excuting the JavaScript, 'window.document.body.innerText'.1022 // https://bugs.webkit.org/show_bug.cgi?id=101904.1023 }1024 1025 1004 TEST_F(EWK2ViewTest, ewk_view_user_agent) 1026 1005 { -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp
r163908 r164266 190 190 } 191 191 192 void WebView::setShowsAsSource(bool showsAsSource)193 {194 m_page->setMainFrameInViewSourceMode(showsAsSource);195 }196 197 bool WebView::showsAsSource() const198 {199 return m_page->mainFrameInViewSourceMode();200 }201 202 192 #if ENABLE(FULLSCREEN_API) 203 193 WebFullScreenManagerProxyClient& WebView::fullScreenManagerProxyClient() -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.h
r163908 r164266 94 94 void resumeActiveDOMObjectsAndAnimations(); 95 95 96 void setShowsAsSource(bool);97 bool showsAsSource() const;98 99 96 #if ENABLE(FULLSCREEN_API) 100 97 bool requestExitFullScreen(); -
trunk/Tools/MiniBrowser/efl/main.c
r163614 r164266 1829 1829 if (device_pixel_ratio) 1830 1830 ewk_view_device_pixel_ratio_set(window->ewk_view, (float)device_pixel_ratio); 1831 ewk_view_source_mode_set(window->ewk_view, view_mode);1832 1831 ewk_view_user_agent_set(window->ewk_view, user_agent_string); 1833 1832 ewk_view_layout_fixed_set(window->ewk_view, fixed_layout_enabled);
Note: See TracChangeset
for help on using the changeset viewer.