Changes between Version 11 and Version 12 of EFLWebKitCodingStyle


Ignore:
Timestamp:
Aug 13, 2012 7:44:42 PM (12 years ago)
Author:
gyuyoung.kim@samsung.com
Comment:

Add #!cpp in ...

Legend:

Unmodified
Added
Removed
Modified
  • EFLWebKitCodingStyle

    v11 v12  
    1717=== Public APIs ===
    1818{{{
     19#!cpp
    1920 EAPI void ewk_view_bg_color_set(Evas_Object *o, int r, int g, int b, int a);
    2021}}}
     
    2223=== Implementation ===
    2324{{{
     25#!cpp
    2426 void ewk_view_bg_color_set(Evas_Object* ewkView, int red, int green, int blue, int alpha)
    2527 {
     
    4244=== Public APIs ===
    4345{{{
     46#!cpp
    4447EAPI Eina_Bool ewk_view_scale_set(Evas_Object *o, float scale_factor, Evas_Coord cx, Evas_Coord cy);
    4548}}}
     
    4750=== Implementation ===
    4851{{{
     52#!cpp
    4953Eina_Bool ewk_view_scale_set(Evas_Object* ewkView, float scaleFactor, Evas_Coord centerX, Evas_Coord centerY)
    5054{
     
    6872=== Right ===
    6973{{{
     74#!cpp
    7075EAPI Ewk_Context *ewk_context_new(void);
    7176}}}
     
    7378=== Wrong ===
    7479{{{
     80#!cpp
    7581EAPI Ewk_Context *ewk_context_new();
    7682}}}
     
    7985=== Right ===
    8086{{{
     87#!cpp
    8188static void _ewk_view_smart_show(Evas_Object* ewkView)
    8289}}}
     
    8491=== Wrong ===
    8592{{{
     93#!cpp
    8694static void _ewk_view_smart_show(Evas_Object *ewkView)
    8795}}}
     
    9098=== Right ===
    9199{{{
     100#!cpp
    92101 Ewk_View_Smart_Data* smartData = static_cast<Ewk_View_Smart_Data*>(data);
    93102}}}
     
    95104=== Wrong ===
    96105{{{
     106#!cpp
    97107 Ewk_View_Smart_Data* smartData = (Ewk_View_Smart_Data*)data;
    98108}}}
     
    101111=== Right ===
    102112{{{
     113#!cpp
    103114 RefPtr<cairo_region_t> dirtyRegion = adoptRef(cairo_region_create_rectangle(&rect));
    104115
     
    109120=== Wrong ===
    110121{{{
     122#!cpp
    111123 cairo_region_t* dirtyRegion = cairo_region_create_rectangle(&rect);
    112124 ...
     
    124136Where it is not possible to use smart pointers. Use new/delete operators.
    125137{{{
     138#!cpp
    126139 unusedCacheEntry = new Ewk_Tile_Unused_Cache_Entry;
    127140 ...
     
    130143=== Wrong ===
    131144{{{
     145#!cpp
    132146 unusedCacheEntry = static_cast<Ewk_Tile_Unused_Cache_Entry*>(malloc(sizeof(Ewk_Tile_Unused_Cache_Entry)));
    133147 ...
     
    138152=== Right ===
    139153{{{
     154#!cpp
    140155 const int defaultTileWidth = 256;
    141156 const int defaultTileHeigth = 256;
     
    143158=== Wrong ===
    144159{{{
     160#!cpp
    145161 #define DEFAULT_TILE_W (256)
    146162 #define DEFAULT_TILE_H (256)
     
    150166=== Right ===
    151167{{{
     168#!cpp
    152169/**
    153170 * Query action for this intent.
     
    161178=== Wrong ===
    162179{{{
     180#!cpp
    163181/**
    164182 * Query action for this intent.
     
    194212=== Right ===
    195213{{{
    196 struct {
     214#!cpp
     215struct _Ewk_View_Private_Data {
    197216    ...
    198217    Eina_Bool pageCache : 1;
    199     ...
    200218}
    201219
     
    214232=== Wrong ===
    215233{{{
     234#!cpp
    216235Eina_Bool ewk_settings_auto_load_images_set(Ewk_Settings* settings, Eina_Bool automatic)
    217236{