⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 130658 in webkit


Ignore:
Timestamp:
Oct 8, 2012, 11:23:05 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Simplify frame flattening support in MiniBrowser
​https://bugs.webkit.org/show_bug.cgi?id=98657

Patch by Christophe Dumez <Christophe Dumez> on 2012-10-08
Reviewed by Kenneth Rohde Christiansen.

Simplify frame flattening support code in MiniBrowser to
avoid passing the setting around to window_create()
function().

  • MiniBrowser/efl/main.c:

(on_key_down):
(on_new_window):
(window_create):
(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r130652 r130658  
     12012-10-08  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL][WK2] Simplify frame flattening support in MiniBrowser
     4        https://bugs.webkit.org/show_bug.cgi?id=98657
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Simplify frame flattening support code in MiniBrowser to
     9        avoid passing the setting around to window_create()
     10        function().
     11
     12        * MiniBrowser/efl/main.c:
     13        (on_key_down):
     14        (on_new_window):
     15        (window_create):
     16        (main):
     17
    1182012-10-08  Christophe Dumez  <christophe.dumez@intel.com>
    219
  • trunk/Tools/MiniBrowser/efl/main.c

    r130652 r130658  
    4040static Eina_List *windows = NULL;
    4141static char *evas_engine_name = NULL;
     42static Eina_Bool frame_flattening_enabled = EINA_FALSE;
    4243
    4344typedef struct _Browser_Window {
    … …  
    7374};
    7475
    75 static Browser_Window *window_create(const char *url, Eina_Bool frame_flattening);
     76static Browser_Window *window_create(const char *url);
    7677
    7778static Browser_Window *browser_window_find(Ecore_Evas *ee)
    … …  
    170171    } else if (!strcmp(ev->key, "n") && ctrlPressed) {
    171172        info("Create new window (Ctrl+n) was pressed.\n");
    172         Browser_Window *window = window_create(DEFAULT_URL, EINA_FALSE);
     173        Browser_Window *window = window_create(DEFAULT_URL);
    173174        windows = eina_list_append(windows, window);
    174175    }
    … …  
    226227{
    227228    Evas_Object **new_view = (Evas_Object **)event_info;
    228     Browser_Window *window = window_create(NULL, EINA_FALSE);
     229    Browser_Window *window = window_create(NULL);
    229230    *new_view = window->webview;
    230231    windows = eina_list_append(windows, window);
    … …  
    304305}
    305306
    306 static Browser_Window *window_create(const char *url, Eina_Bool frame_flattening)
     307static Browser_Window *window_create(const char *url)
    307308{
    308309    Browser_Window *window = malloc(sizeof(Browser_Window));
    … …  
    335336    window->webview = ewk_view_add(window->evas);
    336337    ewk_view_theme_set(window->webview, THEME_DIR"/default.edj");
    337     ewk_settings_enable_frame_flattening_set(ewk_view_settings_get(window->webview), frame_flattening);
     338    ewk_settings_enable_frame_flattening_set(ewk_view_settings_get(window->webview), frame_flattening_enabled);
    338339
    339340    Ewk_Settings *settings = ewk_view_settings_get(window->webview);
    … …  
    372373    Browser_Window *window;
    373374
    374     Eina_Bool frame_flattening = EINA_FALSE;
    375 
    376375    Ecore_Getopt_Value values[] = {
    377376        ECORE_GETOPT_VALUE_STR(evas_engine_name),
    378377        ECORE_GETOPT_VALUE_BOOL(quitOption),
    379         ECORE_GETOPT_VALUE_BOOL(frame_flattening),
     378        ECORE_GETOPT_VALUE_BOOL(frame_flattening_enabled),
    380379        ECORE_GETOPT_VALUE_BOOL(quitOption),
    381380        ECORE_GETOPT_VALUE_BOOL(quitOption),
    … …  
    398397    if (args < argc) {
    399398        char *url = url_from_user_input(argv[args]);
    400         window = window_create(url, frame_flattening);
     399        window = window_create(url);
    401400        free(url);
    402401    } else
    403         window = window_create(DEFAULT_URL, frame_flattening);
     402        window = window_create(DEFAULT_URL);
    404403
    405404    if (!window)
Note: See TracChangeset for help on using the changeset viewer.