Changeset 84348 in webkit


Ignore:
Timestamp:
Apr 20, 2011 12:18:56 AM (13 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

2011-04-20 Gyuyoung Kim <gyuyoung.kim@samsung.com>

Reviewed by Daniel Bates.

[EFL] Add current time to media control panel.
https://bugs.webkit.org/show_bug.cgi?id=58866

Implement paintMediaCurrentTime() to show playing time of media content.

  • platform/efl/RenderThemeEfl.cpp: (WebCore::RenderThemeEfl::RenderThemeEfl): (WebCore::RenderThemeEfl::formatMediaControlsCurrentTime): (WebCore::RenderThemeEfl::paintMediaCurrentTime):
  • platform/efl/RenderThemeEfl.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84346 r84348  
     12011-04-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Reviewed by Daniel Bates.
     4
     5        [EFL] Add current time to media control panel.
     6        https://bugs.webkit.org/show_bug.cgi?id=58866
     7
     8        Implement paintMediaCurrentTime() to show playing time of media content.
     9
     10        * platform/efl/RenderThemeEfl.cpp:
     11        (WebCore::RenderThemeEfl::RenderThemeEfl):
     12        (WebCore::RenderThemeEfl::formatMediaControlsCurrentTime):
     13        (WebCore::RenderThemeEfl::paintMediaCurrentTime):
     14        * platform/efl/RenderThemeEfl.h:
     15
    1162011-04-19  Jungshik Shin  <jshin@chromium.org>
    217
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp

    r83410 r84348  
    4242#include "UserAgentStyleSheets.h"
    4343#include <wtf/text/CString.h>
     44#include <wtf/text/StringConcatenate.h>
    4445
    4546#include <Ecore_Evas.h>
     
    691692    , m_searchTextBackgroundColor(0, 0, 0, 0)
    692693    , m_searchTextForegroundColor(0, 0, 0)
     694#if ENABLE(VIDEO)
     695    , m_panelColor(220, 220, 195) // light tannish color.
     696#endif
    693697    , m_canvas(0)
    694698    , m_edje(0)
     
    10961100String RenderThemeEfl::formatMediaControlsCurrentTime(float currentTime, float duration) const
    10971101{
    1098     notImplemented();
    1099     return String();
     1102    return makeString(formatMediaControlsTime(currentTime), " / ", formatMediaControlsTime(duration));
    11001103}
    11011104
     
    11911194bool RenderThemeEfl::paintMediaCurrentTime(RenderObject* object, const PaintInfo& info, const IntRect& rect)
    11921195{
    1193     notImplemented();
    1194     return false;
     1196    info.context->fillRect(FloatRect(rect), m_panelColor, ColorSpaceDeviceRGB);
     1197    return true;
    11951198}
    11961199#endif
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.h

    r83410 r84348  
    210210    Color m_searchTextBackgroundColor;
    211211    Color m_searchTextForegroundColor;
     212#if ENABLE(VIDEO)
     213    Color m_panelColor;
     214#endif
    212215    Ecore_Evas* m_canvas;
    213216    Evas_Object* m_edje;
Note: See TracChangeset for help on using the changeset viewer.