forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WPE] Add the WebKitVersion.h header
https://bugs.webkit.org/show_bug.cgi?id=191015 Reviewed by Michael Catanzaro. Source/WebKit: Add the WebKitVersion.h API header for the WPE port. As with other headers providing the GLib API, we have to provide a WPE-specific version, but the implementation file can be shared with the GTK port, and is moved under the UIProcess/API/glib/ directory accordingly. * PlatformWPE.cmake: * SourcesWPE.txt: * UIProcess/API/glib/WebKitVersion.cpp: Renamed from Source/WebKit/UIProcess/API/gtk/WebKitVersion.cpp. * UIProcess/API/wpe/WebKitVersion.h.in: Added. * UIProcess/API/wpe/webkit.h: Tools: * MiniBrowser/wpe/main.cpp: (automationStartedCallback): Remove the FIXME and finally enable the webkit_application_info_set_version() call. * TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: Remove this FIXME as well and remove the custom WEBKIT_*_VERSION macros. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@237541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
f24bbd3
commit 9361882
Showing
10 changed files
with
120 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
2018-10-28 Zan Dobersek <[email protected]> | ||
|
||
[WPE] Add the WebKitVersion.h header | ||
https://bugs.webkit.org/show_bug.cgi?id=191015 | ||
|
||
Reviewed by Michael Catanzaro. | ||
|
||
Add the WebKitVersion.h API header for the WPE port. As with other | ||
headers providing the GLib API, we have to provide a WPE-specific | ||
version, but the implementation file can be shared with the GTK port, | ||
and is moved under the UIProcess/API/glib/ directory accordingly. | ||
|
||
* PlatformWPE.cmake: | ||
* SourcesWPE.txt: | ||
* UIProcess/API/glib/WebKitVersion.cpp: Renamed from Source/WebKit/UIProcess/API/gtk/WebKitVersion.cpp. | ||
* UIProcess/API/wpe/WebKitVersion.h.in: Added. | ||
* UIProcess/API/wpe/webkit.h: | ||
|
||
2018-10-26 Megan Gardner <[email protected]> | ||
|
||
Remove Unused WebSelectionAssistant | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* Copyright (C) 2012 Igalia S.L. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Library General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Library General Public License | ||
* along with this library; see the file COPYING.LIB. If not, write to | ||
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
* Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
#if !defined(__WEBKIT_H_INSIDE__) && !defined(WEBKIT2_COMPILATION) | ||
#error "Only <wpe/webkit.h> can be included directly." | ||
#endif | ||
|
||
#ifndef WebKitVersion_h | ||
#define WebKitVersion_h | ||
|
||
#include <wpe/WebKitDefines.h> | ||
|
||
G_BEGIN_DECLS | ||
|
||
/** | ||
* WEBKIT_MAJOR_VERSION: | ||
* | ||
* Like webkit_get_major_version(), but from the headers used at | ||
* application compile time, rather than from the library linked | ||
* against at application run time. | ||
*/ | ||
#define WEBKIT_MAJOR_VERSION (@PROJECT_VERSION_MAJOR@) | ||
|
||
/** | ||
* WEBKIT_MINOR_VERSION: | ||
* | ||
* Like webkit_get_minor_version(), but from the headers used at | ||
* application compile time, rather than from the library linked | ||
* against at application run time. | ||
*/ | ||
#define WEBKIT_MINOR_VERSION (@PROJECT_VERSION_MINOR@) | ||
|
||
/** | ||
* WEBKIT_MICRO_VERSION: | ||
* | ||
* Like webkit_get_micro_version(), but from the headers used at | ||
* application compile time, rather than from the library linked | ||
* against at application run time. | ||
*/ | ||
#define WEBKIT_MICRO_VERSION (@PROJECT_VERSION_MICRO@) | ||
|
||
/** | ||
* WEBKIT_CHECK_VERSION: | ||
* @major: major version (e.g. 1 for version 1.2.5) | ||
* @minor: minor version (e.g. 2 for version 1.2.5) | ||
* @micro: micro version (e.g. 5 for version 1.2.5) | ||
* | ||
* Returns: %TRUE if the version of the WebKit header files | ||
* is the same as or newer than the passed-in version. | ||
*/ | ||
#define WEBKIT_CHECK_VERSION(major, minor, micro) \ | ||
(WEBKIT_MAJOR_VERSION > (major) || \ | ||
(WEBKIT_MAJOR_VERSION == (major) && WEBKIT_MINOR_VERSION > (minor)) || \ | ||
(WEBKIT_MAJOR_VERSION == (major) && WEBKIT_MINOR_VERSION == (minor) && \ | ||
WEBKIT_MICRO_VERSION >= (micro))) | ||
|
||
WEBKIT_API guint | ||
webkit_get_major_version (void); | ||
|
||
WEBKIT_API guint | ||
webkit_get_minor_version (void); | ||
|
||
WEBKIT_API guint | ||
webkit_get_micro_version (void); | ||
|
||
G_END_DECLS | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
2018-10-28 Zan Dobersek <[email protected]> | ||
|
||
[WPE] Add the WebKitVersion.h header | ||
https://bugs.webkit.org/show_bug.cgi?id=191015 | ||
|
||
Reviewed by Michael Catanzaro. | ||
|
||
* MiniBrowser/wpe/main.cpp: | ||
(automationStartedCallback): Remove the FIXME and finally enable the | ||
webkit_application_info_set_version() call. | ||
* TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: Remove | ||
this FIXME as well and remove the custom WEBKIT_*_VERSION macros. | ||
|
||
2018-10-28 Fujii Hironori <[email protected]> | ||
|
||
[Win] Remove obsolete code for vcxproj builds in build-api-tests and build-jsc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters