source: trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h @ 113893

Revision 113893, 4.7 KB checked in by commit-queue@webkit.org, 2 years ago (diff)

[EFL] LayoutTestController needs implementation of pageProperty
https://bugs.webkit.org/show_bug.cgi?id=82449

Source/WebKit/efl:

Add missing implementation pageProperty to EFL's
DumpRenderTreeSupport.

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-04-11
Reviewed by Antonio Gomes.

  • WebCoreSupport/DumpRenderTreeSupportEfl.cpp:

(DumpRenderTreeSupportEfl::pageProperty):

  • WebCoreSupport/DumpRenderTreeSupportEfl.h:

Tools:

Add missing implementation pageProperty to EFL's LayoutTestController
in order to unskip printing/page-rule-selection.html

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-04-11
Reviewed by Antonio Gomes.

  • DumpRenderTree/efl/LayoutTestControllerEfl.cpp:

(LayoutTestController::pageProperty):

LayoutTests:

Unskip printing/page-rule-selection.html

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-04-11
Reviewed by Antonio Gomes.

  • platform/efl/Skipped:
Line 
1/*
2    Copyright (C) 2011 ProFUSION embedded systems
3    Copyright (C) 2011 Samsung Electronics
4
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Library General Public
7    License as published by the Free Software Foundation; either
8    version 2 of the License, or (at your option) any later version.
9
10    This library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14
15    You should have received a copy of the GNU Library General Public License
16    along with this library; see the file COPYING.LIB.  If not, write to
17    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18    Boston, MA 02110-1301, USA.
19*/
20
21#ifndef DumpRenderTreeSupportEfl_h
22#define DumpRenderTreeSupportEfl_h
23
24#include <Eina.h>
25#include <FindOptions.h>
26#include <IntRect.h>
27#include <JavaScriptCore/APICast.h>
28#include <JavaScriptCore/JSStringRef.h>
29#include <wtf/Vector.h>
30#include <wtf/text/WTFString.h>
31
32typedef struct _Evas_Object Evas_Object;
33typedef struct _Ewk_History_Item Ewk_History_Item;
34
35typedef Vector<Ewk_History_Item*> HistoryItemChildrenVector;
36
37namespace WebCore {
38class Frame;
39}
40
41class EAPI DumpRenderTreeSupportEfl {
42public:
43    DumpRenderTreeSupportEfl() { }
44
45    ~DumpRenderTreeSupportEfl() { }
46
47    static unsigned activeAnimationsCount(const Evas_Object* ewkFrame);
48    static void clearFrameName(Evas_Object* ewkFrame);
49    static void clearOpener(Evas_Object* ewkFrame);
50    static String counterValueByElementId(const Evas_Object* ewkFrame, const char* elementId);
51    static Eina_List* frameChildren(const Evas_Object* ewkFrame);
52    static WebCore::Frame* frameParent(const Evas_Object* ewkFrame);
53    static bool isPageBoxVisible(const Evas_Object* ewkFrame, int pageIndex);
54    static void layoutFrame(Evas_Object* ewkFrame);
55    static int numberOfPages(const Evas_Object* ewkFrame, float pageWidth, float pageHeight);
56    static int numberOfPagesForElementId(const Evas_Object* ewkFrame, const char* elementId, float pageWidth, float pageHeight);
57    static String pageProperty(const Evas_Object* ewkFrame, const char* propertyName, int pageNumber);
58    static String pageSizeAndMarginsInPixels(const Evas_Object* ewkFrame, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft);
59    static bool pauseAnimation(Evas_Object* ewkFrame, const char* name, const char* elementId, double time);
60    static bool pauseTransition(Evas_Object* ewkFrame, const char* name, const char* elementId, double time);
61    static unsigned pendingUnloadEventCount(const Evas_Object* ewkFrame);
62    static String renderTreeDump(Evas_Object* ewkFrame);
63    static String responseMimeType(const Evas_Object* ewkFrame);
64    static void resumeAnimations(Evas_Object* ewkFrame);
65    static WebCore::IntRect selectionRectangle(const Evas_Object* ewkFrame);
66    static String suitableDRTFrameName(const Evas_Object* ewkFrame);
67    static void suspendAnimations(Evas_Object* ewkFrame);
68    static void setValueForUser(JSContextRef, JSValueRef nodeObject, JSStringRef value);
69    static void setAutofilled(JSContextRef, JSValueRef nodeObject, bool autofilled);
70    static void setDefersLoading(Evas_Object* ewkView, bool defers);
71
72    static void addUserStyleSheet(const Evas_Object* ewkView, const char* sourceCode, bool allFrames);
73    static bool findString(const Evas_Object* ewkView, const char* text, WebCore::FindOptions);
74    static void setSmartInsertDeleteEnabled(Evas_Object* ewkView, bool enabled);
75    static void setSelectTrailingWhitespaceEnabled(Evas_Object* ewkView, bool enabled);
76
77    static void garbageCollectorCollect();
78    static void garbageCollectorCollectOnAlternateThread(bool waitUntilDone);
79    static size_t javaScriptObjectsCount();
80    static unsigned workerThreadCount();
81
82    static HistoryItemChildrenVector childHistoryItems(const Ewk_History_Item*);
83    static String historyItemTarget(const Ewk_History_Item*);
84    static bool isTargetItem(const Ewk_History_Item*);
85
86    static void setMockScrollbarsEnabled(bool);
87
88    static void dumpConfigurationForViewport(Evas_Object* ewkView, int deviceDPI, const WebCore::IntSize& deviceSize, const WebCore::IntSize& availableSize);
89
90    static void deliverAllMutationsIfNecessary();
91    static void setEditingBehavior(Evas_Object* ewkView, const char* editingBehavior);
92    static String markerTextForListItem(JSContextRef, JSValueRef nodeObject);
93    static void setInteractiveFormValidationEnabled(Evas_Object* ewkView, bool enabled);
94    static JSValueRef computedStyleIncludingVisitedInfo(JSContextRef, JSValueRef);
95};
96
97#endif // DumpRenderTreeSupportEfl_h
Note: See TracBrowser for help on using the repository browser.