Changes between Version 1 and Version 2 of EFLWebKitCodingStyle
- Timestamp:
- Dec 1, 2011, 5:19:00 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EFLWebKitCodingStyle
v1 v2 15 15 16 16 {{{ 17 EAPI void ewk_view_bg_color_set( '''Evas_Object *o, int r, int g, int b, int a''');17 EAPI void ewk_view_bg_color_set(Evas_Object *o, int r, int g, int b, int a); 18 18 }}} 19 19 20 20 === Implementation === 21 21 {{{ 22 void ewk_view_bg_color_set( '''Evas_Object* ewkView, int red, int green, int blue, int alpha''')22 void ewk_view_bg_color_set(Evas_Object* ewkView, int red, int green, int blue, int alpha) 23 23 { 24 24 EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData); … … 42 42 43 43 {{{ 44 EAPI '''Eina_Bool'''ewk_view_scale_set(Evas_Object *o, float scale_factor, Evas_Coord cx, Evas_Coord cy);44 EAPI Eina_Bool ewk_view_scale_set(Evas_Object *o, float scale_factor, Evas_Coord cx, Evas_Coord cy); 45 45 }}} 46 46 … … 48 48 49 49 {{{ 50 '''Eina_Bool'''ewk_view_scale_set(Evas_Object* ewkView, float scaleFactor, Evas_Coord centerX, Evas_Coord centerY)50 Eina_Bool ewk_view_scale_set(Evas_Object* ewkView, float scaleFactor, Evas_Coord centerX, Evas_Coord centerY) 51 51 { 52 52 EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, false); … … 55 55 float currentScaleFactor = ewk_view_scale_get(ewkView); 56 56 if (currentScaleFactor == -1) 57 return '''false''';57 return false; 58 58 int x, y; 59 59 ewk_frame_scroll_pos_get(smartData->main_frame, &x, &y); … … 62 62 y = static_cast<int>(((y + centerY) / currentScaleFactor) * scaleFactor) - centerY; 63 63 priv->page->setPageScaleFactor(scaleFactor, WebCore::LayoutPoint(x, y)); 64 return '''true''';64 return true; 65 65 } 66 66 }}} … … 72 72 73 73 {{{ 74 static void _ewk_view_smart_show( '''Evas_Object* ewkView''')74 static void _ewk_view_smart_show(Evas_Object* ewkView) 75 75 }}} 76 76 … … 78 78 79 79 {{{ 80 static void _ewk_view_smart_show( '''Evas_Object *ewkView''')80 static void _ewk_view_smart_show(Evas_Object *ewkView) 81 81 }}} 82 82