view modules/web/src/main/native/Source/WebCore/platform/graphics/java/IconJava.cpp @ 5976:94331ac42150

RT-25869: Update copyright year in header of modified source code files to 2013 Reviewed-by: Mong Hang Vo
author kcr
date Mon, 23 Dec 2013 13:46:39 -0800
parents 8cbaf9096cda
children
line wrap: on
line source
/*
 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 */
#include "config.h"

#include "GraphicsContext.h"
#include "GraphicsContextJava.h"
#include "Icon.h"
#include "IntRect.h"
#include "JavaEnv.h"
#include "JavaRef.h"
#include "NotImplemented.h"

#include <wtf/RefPtr.h>
#include <wtf/PassRefPtr.h>
#include <wtf/text/WTFString.h>

#include "PlatformContextJava.h"
#include "com_sun_webkit_graphics_GraphicsDecoder.h"


using namespace WebCore;

namespace WebCore {

Icon::Icon(const JLObject &jicon)
    : m_jicon(RQRef::create(jicon))
{   
}

Icon::~Icon()
{
}
  
PassRefPtr<Icon> Icon::createIconForFiles(const Vector<String>& filenames)
{
    notImplemented();
    return 0;
}

void Icon::paint(GraphicsContext* gc, const IntRect& rect)
{
    gc->platformContext()->rq().freeSpace(16)    
    << (jint)com_sun_webkit_graphics_GraphicsDecoder_DRAWICON  
    << *m_jicon << (jint)rect.x() <<  (jint)rect.y();
}

} // namespace WebCore