HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document* document, bool createdByParser)
: HTMLElement(tagName, document)
, ActiveDOMObject(document, this)
+#if ENABLE(TIZEN_DEVICE_ROTATION)
+ , m_rotation(ROTATE_0)
+#endif
, m_loadTimer(this, &HTMLMediaElement::loadTimerFired)
, m_progressEventTimer(this, &HTMLMediaElement::progressEventTimerFired)
, m_playbackProgressTimer(this, &HTMLMediaElement::playbackProgressTimerFired)
#if ENABLE(TIZEN_GSTREAMER_VIDEO)
, m_suspended(false)
#endif
-#if ENABLE(TIZEN_DEVICE_ROTATION)
- , m_rotation(ROTATE_0)
-#endif
{
LOG(Media, "HTMLMediaElement::HTMLMediaElement");
document->registerForMediaVolumeCallbacks(this);
virtual void reachedMaxAppCacheSize(int64_t) { }
virtual void reachedApplicationCacheOriginQuota(SecurityOrigin*, int64_t) { }
#if ENABLE(TIZEN_APPLICATION_CACHE)
- virtual bool requestApplicationCachePermission(Frame*) { }
+ virtual bool requestApplicationCachePermission(Frame*) { return false; }
#endif
#if ENABLE(DIRECTORY_UPLOAD)
#endif
#if ENABLE(TIZEN_INDEXED_DATABASE)
- virtual bool exceededIndexedDatabaseQuota(Frame*, int64_t) { }
+ virtual bool exceededIndexedDatabaseQuota(Frame*, int64_t) { return false; }
#endif
#if ENABLE(TIZEN_FILE_SYSTEM)
- virtual bool exceededLocalFileSystemQuota(Frame* frame, int64_t currentUsage) { }
+ virtual bool exceededLocalFileSystemQuota(Frame* frame, int64_t currentUsage) { return false; }
#endif
};
return false;
}
- bool result;
if (S_ISDIR(buf.st_mode)) {
if (!getDirectorySize(absolutePath, size)) {
closedir(directory);
xPosition = (m_size.width() - other->m_size.width() * yScale) / 2;
xScale = yScale;
break;
+ default:
+ break;
}
}
graphicsContext->translate(xPosition, yPosition);
}
#if ENABLE(TIZEN_WEBKIT2_TILED_AC_SHARED_PLATFORM_SURFACE)
+/*
+// Defined but not used.
static gboolean platformSurfaceUpdateTimeoutCallback(VideoLayerTizen* layer)
{
layer->notifySyncRequired();
return FALSE;
}
+*/
bool VideoLayerTizen::swapPlatformSurfaces()
{
#if ENABLE(WEB_INTENTS)
return intent->action();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS)
return intent->type();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS)
return intent->service();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS_TAG)
return service->action();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS_TAG)
return service->type();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS_TAG)
return service->href();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS_TAG)
return service->title();
+#else
+ return 0;
#endif
}
#if ENABLE(WEB_INTENTS_TAG)
return service->disposition();
+#else
+ return 0;
#endif
}
evas_object_smart_changed(smartData->self);
}
+#if !ENABLE(TIZEN_ICON_DATABASE)
static void _ewk_view_on_favicon_changed(const char* pageURL, void* eventInfo)
{
Evas_Object* ewkView = static_cast<Evas_Object*>(eventInfo);
impl->informIconChange();
}
+#endif
// Default Event Handling.
static Eina_Bool _ewk_view_smart_focus_in(Ewk_View_Smart_Data* smartData)
bool isDone() const { return m_done; }
+#if ENABLE(TIZEN_DAILY_UPVERSIONING)
+ void setDone()
+#else
bool setDone()
+#endif
{
if (m_timer) {
ecore_timer_del(m_timer);
ClipboardHelper::ClipboardHelper(EwkViewImpl* viewImpl)
: m_viewImpl(viewImpl)
#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
+ , m_clipboardWindowOpened(false)
+ , m_cbhmPropertyChangeHandler(0)
, m_selectionClearHandler(0)
, m_selectionNotifyHandler(0)
, m_clientMessageHandler(0)
- , m_cbhmPropertyChangeHandler(0)
- , m_clipboardWindowOpened(false)
#endif
{
#if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_CLIPBOARD)
void ClipboardHelper::updateClipboardWindowState(Ecore_X_Event_Window_Property* ev)
{
- Ecore_X_Window zone = ecore_x_e_illume_zone_get(ev->win);
Ecore_X_Illume_Clipboard_State state = ecore_x_e_illume_clipboard_state_get(ev->win);
if (state == ECORE_X_ILLUME_CLIPBOARD_STATE_UNKNOWN)
static void onIMFInputSequenceComplete(void* data, Ecore_IMF_Context*, void* eventInfo);
static void onIMFPreeditSequenceChanged(void* data, Ecore_IMF_Context*, void* eventInfo);
+ EwkViewImpl* m_viewImpl;
+ OwnPtr<Ecore_IMF_Context> m_context;
+ bool m_focused;
+
#if ENABLE(TIZEN_ISF_PORT)
void initializeIMFContext(Ecore_IMF_Context*, Ecore_IMF_Input_Panel_Layout);
int m_state;
WebCore::IntRect m_imeRect;
#endif
-
- EwkViewImpl* m_viewImpl;
- OwnPtr<Ecore_IMF_Context> m_context;
- bool m_focused;
};
} // namespace WebKit
DatabaseDetails details = DatabaseTracker::tracker().detailsForNameAndOrigin(databaseName, origin);
uint64_t currentQuota = DatabaseTracker::tracker().quotaForOrigin(origin);
- uint64_t currentOriginUsage = DatabaseTracker::tracker().usageForOrigin(origin);
- uint64_t newQuota = 0;
+
#if ENABLE(TIZEN_SQL_DATABASE)
+ uint64_t newQuota = 0;
const uint64_t defaultQuota = 5 * 1024 * 1024;
uint64_t requirement = currentQuota + details.expectedUsage();
if (requirement <= defaultQuota)
newQuota = currentQuota;
}
#else
+ uint64_t currentOriginUsage = DatabaseTracker::tracker().usageForOrigin(origin);
+ uint64_t newQuota = 0;
WebProcess::shared().connection()->sendSync(
Messages::WebPageProxy::ExceededDatabaseQuota(webFrame->frameID(), origin->databaseIdentifier(), databaseName, details.displayName(), currentQuota, currentOriginUsage, details.currentUsage(), details.expectedUsage()),
Messages::WebPageProxy::ExceededDatabaseQuota::Reply(newQuota), m_page->pageID());
else {
// Generate a unique file name since no name was suggested.
char unique_path[] = "/tmp/downloaded-file.XXXXXX";
- mktemp(unique_path);
- eina_strbuf_append(destination_path, unique_path);
+ // change from org distribution
+ eina_strbuf_append(destination_path, mktemp(unique_path));
}
ewk_download_job_destination_set(download, eina_strbuf_string_get(destination_path));