mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
72 lines
1.8 KiB
C
72 lines
1.8 KiB
C
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
|
|
/*
|
|
gnomeedit.c --- gnome functions for fe
|
|
specific editor stuff.
|
|
*/
|
|
|
|
#include "libimg.h" /* Image Library public API. */
|
|
#include "xp_core.h"
|
|
#include "structs.h"
|
|
#include "ntypes.h"
|
|
#include "lo_ele.h"
|
|
|
|
#include "layers.h"
|
|
|
|
#include "g-util.h"
|
|
|
|
void
|
|
FE_ReleaseTextAttrFeData(MWContext *context,
|
|
LO_TextAttr *attr)
|
|
{
|
|
printf ("FE_ReleaseTextAttrFeData\n");
|
|
}
|
|
|
|
PRBool
|
|
FE_HandleLayerEvent(MWContext *context,
|
|
CL_Layer *layer,
|
|
CL_Event *event)
|
|
{
|
|
MozHTMLView *view = find_html_view(context);
|
|
|
|
switch(event->type)
|
|
{
|
|
case CL_EVENT_MOUSE_MOVE:
|
|
html_view_handle_pointer_motion_for_layer(view, layer, event);
|
|
break;
|
|
case CL_EVENT_MOUSE_BUTTON_DOWN:
|
|
html_view_handle_button_press_for_layer(view, layer, event);
|
|
break;
|
|
case CL_EVENT_MOUSE_BUTTON_UP:
|
|
html_view_handle_button_release_for_layer(view, layer, event);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
PRBool
|
|
FE_HandleEmbedEvent(MWContext *context,
|
|
LO_EmbedStruct *embed,
|
|
CL_Event *event)
|
|
{
|
|
printf ("FE_HandleEmbedEvent\n");
|
|
}
|
|
|