Compare commits
11 Commits
feature_te
...
DIE_GTKLAY
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad20a1de67 | ||
|
|
9966f3f1a8 | ||
|
|
6d93c5d47f | ||
|
|
8059e538b5 | ||
|
|
a45efc822e | ||
|
|
ed2fbcb18b | ||
|
|
1ba2a1ebb2 | ||
|
|
1d8185735b | ||
|
|
df70f9f698 | ||
|
|
b2d8e5ef55 | ||
|
|
70ef32cff9 |
@@ -1,6 +0,0 @@
|
||||
# List clobbering rationale in this file. Please include bug numbers whenever possible.
|
||||
- 20070619: and now libxul is back on again
|
||||
- 20070618: clobbering for bug 345517 (enable libxul), after it was backed out for Mac
|
||||
- 20070612: clobbering for bug 345517 (enable libxul). Again, after fixing mozconfig
|
||||
- 20070612: clobbering for bug 345517 (enable libxul)
|
||||
- 20070529: CLOBBER to get symbols uploaded for the first time
|
||||
@@ -1,26 +0,0 @@
|
||||
#
|
||||
## hostname: bm-xservex11.build.mozilla.org
|
||||
## uname: Darwin bm-xserve11.build.mozilla.org 8.8.4 Darwin Kernel Version 8.8.4: Sun Oct 29 15:26:54 PST 2006; root:xnu-792.16.4.obj~1/RELEASE_I386 i386 i386
|
||||
#
|
||||
|
||||
. $topsrcdir/build/macosx/universal/mozconfig
|
||||
|
||||
mk_add_options MOZ_MAKE_FLAGS="-j4"
|
||||
mk_add_options MOZ_CO_MODULE="mozilla/tools/update-packaging mozilla/tools/codesighs"
|
||||
mk_add_options MOZ_CO_PROJECT="browser"
|
||||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../build/universal
|
||||
mk_add_options MOZ_MAKE_FLAGS="MOZ_ENABLE_NEW_TEXT_FRAME=1"
|
||||
|
||||
ac_add_options --enable-application=browser
|
||||
ac_add_options --enable-update-channel=nightly
|
||||
ac_add_options --enable-optimize="-O2 -g"
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --disable-tests
|
||||
ac_add_options --enable-update-packaging
|
||||
|
||||
# ac_add_options --enable-official-branding
|
||||
ac_add_app_options ppc --enable-prebinding
|
||||
ac_add_options --enable-svg
|
||||
ac_add_options --enable-canvas
|
||||
|
||||
ac_add_options --enable-codesighs
|
||||
@@ -1,257 +0,0 @@
|
||||
#
|
||||
## hostname: bm-xservex11.build.mozilla.org
|
||||
## uname: Darwin bm-xserve11.build.mozilla.org 8.8.4 Darwin Kernel Version 8.8.4: Sun Oct 29 15:26:54 PST 2006; root:xnu-792.16.4.obj~1/RELEASE_I386 i386 i386
|
||||
#
|
||||
|
||||
#- tinder-config.pl - Tinderbox configuration file.
|
||||
#- Uncomment the variables you need to set.
|
||||
#- The default values are the same as the commented variables.
|
||||
|
||||
$ENV{NO_EM_RESTART} = "1";
|
||||
$ENV{DYLD_NO_FIX_PREBINDING} = "1";
|
||||
$ENV{LD_PREBIND_ALLOW_OVERLAP} = "1";
|
||||
$ENV{CVS_RSH} = "ssh";
|
||||
|
||||
$MacUniversalBinary = 1;
|
||||
|
||||
# $ENV{MOZ_PACKAGE_MSI}
|
||||
#-----------------------------------------------------------------------------
|
||||
# Default: 0
|
||||
# Values: 0 | 1
|
||||
# Purpose: Controls whether a MSI package is made.
|
||||
# Requires: Windows and a local MakeMSI installation.
|
||||
#$ENV{MOZ_PACKAGE_MSI} = 0;
|
||||
|
||||
# $ENV{MOZ_SYMBOLS_TRANSFER_TYPE}
|
||||
#-----------------------------------------------------------------------------
|
||||
# Default: scp
|
||||
# Values: scp | rsync
|
||||
# Purpose: Use scp or rsync to transfer symbols to the Talkback server.
|
||||
# Requires: The selected type requires the command be available both locally
|
||||
# and on the Talkback server.
|
||||
#$ENV{MOZ_SYMBOLS_TRANSFER_TYPE} = "scp";
|
||||
|
||||
#- PLEASE FILL THIS IN WITH YOUR PROPER EMAIL ADDRESS
|
||||
$BuildAdministrator = 'build@mozilla.org';
|
||||
#$BuildAdministrator = "$ENV{USER}\@$ENV{HOST}";
|
||||
#$BuildAdministrator = ($ENV{USER} || "cltbld") . "\@" . ($ENV{HOST} || "dhcp");
|
||||
|
||||
#- You'll need to change these to suit your machine's needs
|
||||
#$DisplayServer = ':0.0';
|
||||
|
||||
#- Default values of command-line opts
|
||||
#-
|
||||
#$BuildDepend = 1; # Depend or Clobber
|
||||
#$BuildDebug = 0; # Debug or Opt (Darwin)
|
||||
#$ReportStatus = 1; # Send results to server, or not
|
||||
#$ReportFinalStatus = 1; # Finer control over $ReportStatus.
|
||||
#$UseTimeStamp = 1; # Use the CVS 'pull-by-timestamp' option, or not
|
||||
#$BuildOnce = 0; # Build once, don't send results to server
|
||||
#$TestOnly = 0; # Only run tests, don't pull/build
|
||||
#$BuildEmbed = 0; # After building seamonkey, go build embed app.
|
||||
#$SkipMozilla = 0; # Use to debug post-mozilla.pl scripts.
|
||||
#$BuildLocales = 0; # Do l10n packaging?
|
||||
|
||||
# Tests
|
||||
$CleanProfile = 1;
|
||||
#$ResetHomeDirForTests = 1;
|
||||
$ProductName = 'Minefield';
|
||||
$VendorName = "";
|
||||
|
||||
$RunMozillaTests = 1; # Allow turning off of all tests if needed.
|
||||
$RegxpcomTest = 1;
|
||||
$AliveTest = 1;
|
||||
#$JavaTest = 0;
|
||||
#$ViewerTest = 0;
|
||||
#$BloatTest = 0; # warren memory bloat test
|
||||
#$BloatTest2 = 0; # dbaron memory bloat test, require tracemalloc
|
||||
#$DomToTextConversionTest = 0;
|
||||
#$XpcomGlueTest = 0;
|
||||
$CodesizeTest = 0; # Z, require mozilla/tools/codesighs
|
||||
$EmbedCodesizeTest = 0; # mZ, require mozilla/tools/codesigns
|
||||
#$MailBloatTest = 0;
|
||||
#$EmbedTest = 0; # Assumes you wanted $BuildEmbed=1
|
||||
$LayoutPerformanceTest = 1; # Tp
|
||||
$LayoutPerformanceLocalTest = 0; # Tp2
|
||||
$DHTMLPerformanceTest = 1; # Tdhtml
|
||||
#$QATest = 0;
|
||||
$XULWindowOpenTest = 1; # Txul
|
||||
$StartupPerformanceTest = 1; # Ts
|
||||
|
||||
$TestsPhoneHome = 1; # Should test report back to server?
|
||||
|
||||
$GraphNameOverride = 'xserve11.build.mozilla.org_TextFrame';
|
||||
|
||||
# $results_server
|
||||
#----------------------------------------------------------------------------
|
||||
# Server on which test results will be accessible. This was originally tegu,
|
||||
# then became axolotl. Once we moved services from axolotl, it was time
|
||||
# to give this service its own hostname to make future transitions easier.
|
||||
# - cmp@mozilla.org
|
||||
#$results_server = "build-graphs.mozilla.org";
|
||||
|
||||
#$pageload_server = "spider"; # localhost
|
||||
$pageload_server = "pageload.build.mozilla.org"; # localhost
|
||||
|
||||
#
|
||||
# Timeouts, values are in seconds.
|
||||
#
|
||||
#$CVSCheckoutTimeout = 3600;
|
||||
#$CreateProfileTimeout = 45;
|
||||
#$RegxpcomTestTimeout = 120;
|
||||
|
||||
$AliveTestTimeout = 10;
|
||||
#$ViewerTestTimeout = 45;
|
||||
#$EmbedTestTimeout = 45;
|
||||
#$BloatTestTimeout = 120; # seconds
|
||||
#$MailBloatTestTimeout = 120; # seconds
|
||||
#$JavaTestTimeout = 45;
|
||||
#$DomTestTimeout = 45; # seconds
|
||||
#$XpcomGlueTestTimeout = 15;
|
||||
#$CodesizeTestTimeout = 900; # seconds
|
||||
#$CodesizeTestType = "auto"; # {"auto"|"base"}
|
||||
#$LayoutPerformanceTestTimeout = 1200; # entire test, seconds
|
||||
#$LayoutPerformanceLocalTestTimeout = 1200; # entire test, seconds
|
||||
#$DHTMLPerformanceTestTimeout = 1200; # entire test, seconds
|
||||
#$QATestTimeout = 1200; # entire test, seconds
|
||||
#$LayoutPerformanceTestPageTimeout = 30000; # each page, ms
|
||||
#$StartupPerformanceTestTimeout = 15; # seconds
|
||||
#$XULWindowOpenTestTimeout = 150; # seconds
|
||||
|
||||
|
||||
#$MozConfigFileName = 'mozconfig';
|
||||
|
||||
#$UseMozillaProfile = 1;
|
||||
#$MozProfileName = 'default';
|
||||
|
||||
#- Set these to what makes sense for your system
|
||||
#$Make = 'gmake'; # Must be GNU make
|
||||
#$MakeOverrides = '';
|
||||
#$mail = '/bin/mail';
|
||||
#$CVS = 'cvs -q';
|
||||
#$CVSCO = 'checkout -P';
|
||||
|
||||
# win32 usually doesn't have /bin/mail
|
||||
#$blat = 'c:/nstools/bin/blat';
|
||||
#$use_blat = 0;
|
||||
|
||||
# Set moz_cvsroot to something like:
|
||||
# :pserver:$ENV{USER}%netscape.com\@cvs.mozilla.org:/cvsroot
|
||||
# :pserver:anonymous\@cvs-mirror.mozilla.org:/cvsroot
|
||||
#
|
||||
# Note that win32 may not need \@, depends on ' or ".
|
||||
# :pserver:$ENV{USER}%netscape.com@cvs.mozilla.org:/cvsroot
|
||||
|
||||
#$moz_cvsroot = $ENV{CVSROOT};
|
||||
$moz_cvsroot = ":ext:cltbld\@cvs.mozilla.org:/cvsroot";
|
||||
#$moz_cvsroot = "/builds/cvs.hourly/cvsroot";
|
||||
|
||||
#- Set these proper values for your tinderbox server
|
||||
#$Tinderbox_server = 'tinderbox-daemon@tinderbox.mozilla.org';
|
||||
|
||||
# Allow for non-client builds, e.g. camino.
|
||||
#$moz_client_mk = 'client.mk';
|
||||
|
||||
#- Set if you want to build in a separate object tree
|
||||
$ObjDir = '../build/universal';
|
||||
|
||||
# Extra build name, if needed.
|
||||
$BuildNameExtra = 'TextFrame';
|
||||
|
||||
# User comment, eg. ip address for dhcp builds.
|
||||
# ex: $UserComment = "ip = 208.12.36.108";
|
||||
#$UserComment = 0;
|
||||
|
||||
#-
|
||||
#- The rest should not need to be changed
|
||||
#-
|
||||
|
||||
#- Minimum wait period from start of build to start of next build in minutes.
|
||||
#$BuildSleep = 10;
|
||||
|
||||
#- Until you get the script working. When it works,
|
||||
#- change to the tree you're actually building
|
||||
$BuildTree = 'MozillaExperimental';
|
||||
|
||||
#$BuildName = '';
|
||||
#$BuildTag = '';
|
||||
#$BuildConfigDir = 'mozilla/config';
|
||||
#$Topsrcdir = 'mozilla';
|
||||
|
||||
$BinaryName = 'firefox-bin';
|
||||
|
||||
#
|
||||
# For embedding app, use:
|
||||
#$EmbedBinaryName = 'TestGtkEmbed';
|
||||
#$EmbedDistDir = 'dist/bin'
|
||||
|
||||
|
||||
#$ShellOverride = ''; # Only used if the default shell is too stupid
|
||||
#$ConfigureArgs = '';
|
||||
#$ConfigureEnvArgs = '';
|
||||
#$Compiler = 'gcc';
|
||||
#$NSPRArgs = '';
|
||||
#$ShellOverride = '';
|
||||
|
||||
# Release build options
|
||||
$ReleaseBuild = 1;
|
||||
$shiptalkback = 0;
|
||||
#$ReleaseToLatest = 1; # Push the release to latest-<milestone>?
|
||||
#$ReleaseToDated = 1; # Push the release to YYYY-MM-DD-HH-<milestone>?
|
||||
$build_hour = "4";
|
||||
$package_creation_path = "/browser/installer";
|
||||
# needs setting for mac + talkback: $mac_bundle_path = "/browser/app";
|
||||
$mac_bundle_path = "/browser/app";
|
||||
$ssh_version = "2";
|
||||
#$ssh_user = "cltbld";
|
||||
#$ssh_server = "stage.mozilla.org";
|
||||
$ftp_path = "/home/ftp/pub/firefox/nightly/experimental/textframe";
|
||||
$url_path = "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/experimental/textframe";
|
||||
$tbox_ftp_path = "/home/ftp/pub/firefox/tinderbox-builds";
|
||||
$tbox_url_path = "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds";
|
||||
$milestone = "trunk";
|
||||
$notify_list = "build-announce\@mozilla.org";
|
||||
$stub_installer = 0;
|
||||
$sea_installer = 0;
|
||||
$archive = 1;
|
||||
#$push_raw_xpis = 1;
|
||||
$update_package = 1;
|
||||
$update_product = "Firefox";
|
||||
$update_version = "trunk";
|
||||
$update_platform = "Darwin_Universal-gcc3";
|
||||
$update_hash = "md5";
|
||||
$update_filehost = "ftp.mozilla.org";
|
||||
$update_ver_file = 'browser/config/version.txt';
|
||||
$update_pushinfo = 0;
|
||||
$crashreporter_buildsymbols = 0;
|
||||
$crashreporter_pushsymbols = 0;
|
||||
$ENV{SYMBOL_SERVER_HOST} = 'stage.mozilla.org';
|
||||
$ENV{SYMBOL_SERVER_USER} = 'ffxbld';
|
||||
$ENV{SYMBOL_SERVER_PATH} = '/mnt/netapp/breakpad/symbols_ffx/';
|
||||
$ENV{SYMBOL_SERVER_SSH_KEY} = "$ENV{HOME}/.ssh/ffxbld_dsa";
|
||||
$ENV{MOZ_SYMBOLS_EXTRA_BUILDID} = 'textframe';
|
||||
|
||||
# Reboot the OS at the end of build-and-test cycle. This is primarily
|
||||
# intended for Win9x, which can't last more than a few cycles before
|
||||
# locking up (and testing would be suspect even after a couple of cycles).
|
||||
# Right now, there is only code to force the reboot for Win9x, so even
|
||||
# setting this to 1, will not have an effect on other platforms. Setting
|
||||
# up win9x to automatically logon and begin running tinderbox is left
|
||||
# as an exercise to the reader.
|
||||
#$RebootSystem = 0;
|
||||
|
||||
# LogCompression specifies the type of compression used on the log file.
|
||||
# Valid options are 'gzip', and 'bzip2'. Please make sure the binaries
|
||||
# for 'gzip' or 'bzip2' are in the user's path before setting this
|
||||
# option.
|
||||
#$LogCompression = '';
|
||||
|
||||
# LogEncoding specifies the encoding format used for the logs. Valid
|
||||
# options are 'base64', and 'uuencode'. If $LogCompression is set above,
|
||||
# this needs to be set to 'base64' or 'uuencode' to ensure that the
|
||||
# binary data is transferred properly.
|
||||
#$LogEncoding = '';
|
||||
|
||||
# Prevent Extension Manager from spawning child processes during tests
|
||||
# - processes that tbox scripts cannot kill.
|
||||
#$ENV{NO_EM_RESTART} = '1';
|
||||
@@ -1,5 +0,0 @@
|
||||
# List clobbering rationale in this file. Please include bug numbers whenever possible.
|
||||
- 2007/06/12: clobbering for bug 345517 (enable libxul). Again, after fixing mozconfig
|
||||
- 2007/06/12: clobbering for bug 345517 (enable libxul)
|
||||
- 2007/05/28: clobbering for bug 382141 to get symbols uploaded
|
||||
- 2007/05/22: clobbering a win32 trunk build to test aus2 migration (see http://wiki.mozilla.org/WeeklyUpdates/2007-05-21#Build and http://weblogs.mozillazine.org/preed/2007/05/aus2s_a_movin_can_you_help_us.html)
|
||||
@@ -1,24 +0,0 @@
|
||||
#
|
||||
## hostname: fxexp-win32-tbox
|
||||
## uname: CYGWIN_NT-5.2 fx-win32-tbox 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
|
||||
#
|
||||
|
||||
# . $topsrcdir/browser/config/mozconfig
|
||||
|
||||
mk_add_options MOZ_CO_PROJECT=browser
|
||||
mk_add_options MOZ_MAKE_FLAGS="-j5"
|
||||
mk_add_options MOZ_MAKE_FLAGS="MOZ_ENABLE_NEW_TEXT_FRAME=1"
|
||||
mk_add_options MOZ_CO_MODULE="mozilla/tools/update-packaging"
|
||||
mk_add_options MOZ_PACKAGE_NSIS=1
|
||||
|
||||
ac_add_options --enable-application=browser
|
||||
ac_add_options --enable-update-channel=nightly
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --disable-debug
|
||||
# ac_add_options --enable-codesighs
|
||||
ac_add_options --disable-tests
|
||||
# ac_add_options --enable-official-branding
|
||||
ac_add_options --enable-svg
|
||||
ac_add_options --enable-canvas
|
||||
ac_add_options --enable-default-toolkit=cairo-windows
|
||||
ac_add_options --enable-update-packaging
|
||||
@@ -1,253 +0,0 @@
|
||||
#
|
||||
## hostname: fx-win32-tbox
|
||||
## uname: CYGWIN_NT-5.2 fx-win32-tbox 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
|
||||
#
|
||||
|
||||
#- tinder-config.pl - Tinderbox configuration file.
|
||||
#- Uncomment the variables you need to set.
|
||||
#- The default values are the same as the commented variables.
|
||||
|
||||
$ENV{MOZ_INSTALLER_USE_7ZIP} = '1';
|
||||
$ENV{NO_EM_RESTART} = '1';
|
||||
$ENV{MOZ_PACKAGE_NSIS} = '1';
|
||||
|
||||
# $ENV{MOZ_PACKAGE_MSI}
|
||||
#-----------------------------------------------------------------------------
|
||||
# Default: 0
|
||||
# Values: 0 | 1
|
||||
# Purpose: Controls whether a MSI package is made.
|
||||
# Requires: Windows and a local MakeMSI installation.
|
||||
#$ENV{MOZ_PACKAGE_MSI} = 0;
|
||||
|
||||
# $ENV{MOZ_SYMBOLS_TRANSFER_TYPE}
|
||||
#-----------------------------------------------------------------------------
|
||||
# Default: scp
|
||||
# Values: scp | rsync
|
||||
# Purpose: Use scp or rsync to transfer symbols to the Talkback server.
|
||||
# Requires: The selected type requires the command be available both locally
|
||||
# and on the Talkback server.
|
||||
#$ENV{MOZ_SYMBOLS_TRANSFER_TYPE} = "scp";
|
||||
|
||||
#- PLEASE FILL THIS IN WITH YOUR PROPER EMAIL ADDRESS
|
||||
$BuildAdministrator = 'build@mozilla.org';
|
||||
#$BuildAdministrator = "$ENV{USER}\@$ENV{HOST}";
|
||||
#$BuildAdministrator = ($ENV{USER} || "cltbld") . "\@" . ($ENV{HOST} || "dhcp");
|
||||
|
||||
#- You'll need to change these to suit your machine's needs
|
||||
#$DisplayServer = ':0.0';
|
||||
|
||||
#- Default values of command-line opts
|
||||
#-
|
||||
#$BuildDepend = 1; # Depend or Clobber
|
||||
#$BuildDebug = 0; # Debug or Opt (Darwin)
|
||||
#$ReportStatus = 1; # Send results to server, or not
|
||||
#$ReportFinalStatus = 1; # Finer control over $ReportStatus.
|
||||
#$UseTimeStamp = 1; # Use the CVS 'pull-by-timestamp' option, or not
|
||||
#$BuildOnce = 0; # Build once, don't send results to server
|
||||
#$TestOnly = 0; # Only run tests, don't pull/build
|
||||
#$BuildEmbed = 0; # After building seamonkey, go build embed app.
|
||||
#$SkipMozilla = 0; # Use to debug post-mozilla.pl scripts.
|
||||
#$BuildLocales = 0; # Do l10n packaging?
|
||||
|
||||
# Tests
|
||||
$CleanProfile = 1;
|
||||
#$ResetHomeDirForTests = 1;
|
||||
$ProductName = "Firefox";
|
||||
$VendorName = "Mozilla";
|
||||
|
||||
$RunMozillaTests = 1; # Allow turning off of all tests if needed.
|
||||
$RegxpcomTest = 1;
|
||||
$AliveTest = 1;
|
||||
$JavaTest = 0;
|
||||
$ViewerTest = 0;
|
||||
$BloatTest = 0; # warren memory bloat test
|
||||
$BloatTest2 = 0; # dbaron memory bloat test, require tracemalloc
|
||||
$DomToTextConversionTest = 0;
|
||||
$XpcomGlueTest = 0;
|
||||
$CodesizeTest = 0; # Z, require mozilla/tools/codesighs
|
||||
$EmbedCodesizeTest = 0; # mZ, require mozilla/tools/codesigns
|
||||
$MailBloatTest = 0;
|
||||
$EmbedTest = 0; # Assumes you wanted $BuildEmbed=1
|
||||
$LayoutPerformanceTest = 0; # Tp
|
||||
$DHTMLPerformanceTest = 0; # Tdhtml
|
||||
$QATest = 0;
|
||||
$XULWindowOpenTest = 0; # Txul
|
||||
$StartupPerformanceTest = 0; # Ts
|
||||
$NeckoUnitTest = 0;
|
||||
$RenderPerformanceTest = 0; # Tgfx
|
||||
|
||||
$TestsPhoneHome = 0; # Should test report back to server?
|
||||
$GraphNameOverride = 'fx-win32-tbox';
|
||||
|
||||
# $results_server
|
||||
#----------------------------------------------------------------------------
|
||||
# Server on which test results will be accessible. This was originally tegu,
|
||||
# then became axolotl. Once we moved services from axolotl, it was time
|
||||
# to give this service its own hostname to make future transitions easier.
|
||||
# - cmp@mozilla.org
|
||||
#$results_server = "build-graphs.mozilla.org";
|
||||
|
||||
$pageload_server = "pageload.build.mozilla.org"; # localhost
|
||||
|
||||
#
|
||||
# Timeouts, values are in seconds.
|
||||
#
|
||||
#$CVSCheckoutTimeout = 3600;
|
||||
#$CreateProfileTimeout = 45;
|
||||
#$RegxpcomTestTimeout = 120;
|
||||
|
||||
#$AliveTestTimeout = 30;
|
||||
#$ViewerTestTimeout = 45;
|
||||
#$EmbedTestTimeout = 45;
|
||||
#$BloatTestTimeout = 120; # seconds
|
||||
#$MailBloatTestTimeout = 120; # seconds
|
||||
#$JavaTestTimeout = 45;
|
||||
#$DomTestTimeout = 45; # seconds
|
||||
#$XpcomGlueTestTimeout = 15;
|
||||
#$CodesizeTestTimeout = 900; # seconds
|
||||
#$CodesizeTestType = "auto"; # {"auto"|"base"}
|
||||
$LayoutPerformanceTestTimeout = 800; # entire test, seconds
|
||||
#$DHTMLPerformanceTestTimeout = 1200; # entire test, seconds
|
||||
#$QATestTimeout = 1200; # entire test, seconds
|
||||
#$LayoutPerformanceTestPageTimeout = 30000; # each page, ms
|
||||
#$StartupPerformanceTestTimeout = 20; # seconds
|
||||
#$XULWindowOpenTestTimeout = 90; # seconds
|
||||
#$NeckoUnitTestTimeout = 30; # seconds
|
||||
$RenderPerformanceTestTimeout = 1800; # seconds
|
||||
|
||||
#$MozConfigFileName = 'mozconfig';
|
||||
|
||||
#$UseMozillaProfile = 1;
|
||||
#$MozProfileName = 'default';
|
||||
|
||||
#- Set these to what makes sense for your system
|
||||
$Make = 'make'; # Must be GNU make
|
||||
#$MakeOverrides = '';
|
||||
#$mail = '/bin/mail';
|
||||
#$CVS = 'cvs -q';
|
||||
#$CVSCO = 'checkout -P';
|
||||
|
||||
# win32 usually doesn't have /bin/mail
|
||||
$blat = 'd:/moztools/bin/blat';
|
||||
$use_blat = 0;
|
||||
|
||||
# Set moz_cvsroot to something like:
|
||||
# :pserver:$ENV{USER}%netscape.com\@cvs.mozilla.org:/cvsroot
|
||||
# :pserver:anonymous\@cvs-mirror.mozilla.org:/cvsroot
|
||||
#
|
||||
# Note that win32 may not need \@, depends on ' or ".
|
||||
# :pserver:$ENV{USER}%netscape.com@cvs.mozilla.org:/cvsroot
|
||||
|
||||
#$moz_cvsroot = $ENV{CVSROOT};
|
||||
$moz_cvsroot = ':ext:cltbld@cvs.mozilla.org:/cvsroot';
|
||||
|
||||
#- Set these proper values for your tinderbox server
|
||||
#$Tinderbox_server = 'tinderbox-daemon@tinderbox.mozilla.org';
|
||||
|
||||
# Allow for non-client builds, e.g. camino.
|
||||
#$moz_client_mk = 'client.mk';
|
||||
|
||||
#- Set if you want to build in a separate object tree
|
||||
#XXX: this breaks talkback currently
|
||||
#$ObjDir = 'fx-trunk';
|
||||
|
||||
# Extra build name, if needed.
|
||||
$BuildNameExtra = 'TextFrame';
|
||||
|
||||
# User comment, eg. ip address for dhcp builds.
|
||||
# ex: $UserComment = "ip = 208.12.36.108";
|
||||
#$UserComment = 0;
|
||||
|
||||
#-
|
||||
#- The rest should not need to be changed
|
||||
#-
|
||||
|
||||
#- Minimum wait period from start of build to start of next build in minutes.
|
||||
#$BuildSleep = 10;
|
||||
|
||||
#- Until you get the script working. When it works,
|
||||
#- change to the tree you're actually building
|
||||
#$BuildTree = 'MozillaTest';
|
||||
$BuildTree = 'MozillaExperimental';
|
||||
|
||||
#$BuildName = '';
|
||||
#$BuildTag = '';
|
||||
#$BuildConfigDir = 'mozilla/config';
|
||||
#$Topsrcdir = 'mozilla';
|
||||
|
||||
$BinaryName = 'firefox.exe';
|
||||
|
||||
#
|
||||
# For embedding app, use:
|
||||
#$EmbedBinaryName = 'TestGtkEmbed';
|
||||
#$EmbedDistDir = 'dist/bin'
|
||||
|
||||
|
||||
#$ShellOverride = ''; # Only used if the default shell is too stupid
|
||||
#$ConfigureArgs = '';
|
||||
#$ConfigureEnvArgs = '';
|
||||
#$Compiler = 'gcc';
|
||||
#$NSPRArgs = '';
|
||||
#$ShellOverride = '';
|
||||
|
||||
# Release build options
|
||||
$ReleaseBuild = 1;
|
||||
$shiptalkback = 0;
|
||||
$ReleaseToLatest = 1; # Push the release to latest-<milestone>?
|
||||
$ReleaseToDated = 1; # Push the release to YYYY-MM-DD-HH-<milestone>?
|
||||
$build_hour = "7";
|
||||
$package_creation_path = "/browser/installer";
|
||||
# needs setting for mac + talkback: $mac_bundle_path = "/browser/app";
|
||||
$ssh_version = "2";
|
||||
#$ssh_user = "cltbld";
|
||||
#$ssh_server = "stage.mozilla.org";
|
||||
$ftp_path = "/home/ftp/pub/firefox/nightly/experimental/textframe";
|
||||
$url_path = "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/experimental/textframe";
|
||||
$tbox_ftp_path = "/home/ftp/pub/firefox/tinderbox-builds";
|
||||
$tbox_url_path = "http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds";
|
||||
$milestone = "trunk";
|
||||
$notify_list = 'build-announce@mozilla.org';
|
||||
$stub_installer = 0;
|
||||
$sea_installer = 1;
|
||||
$archive = 1;
|
||||
$push_raw_xpis = 1;
|
||||
$update_package = 1;
|
||||
$update_product = "Firefox";
|
||||
$update_version = "trunk";
|
||||
$update_platform = "WINNT_x86-msvc";
|
||||
$update_hash = "sha1";
|
||||
$update_filehost = "ftp.mozilla.org";
|
||||
$update_ver_file = 'browser/config/version.txt';
|
||||
$update_pushinfo = 0;
|
||||
$crashreporter_buildsymbols = 0;
|
||||
$crashreporter_pushsymbols = 0;
|
||||
$ENV{SYMBOL_SERVER_HOST} = 'stage.mozilla.org';
|
||||
$ENV{SYMBOL_SERVER_USER} = 'ffxbld';
|
||||
$ENV{SYMBOL_SERVER_PATH} = '/mnt/netapp/breakpad/symbols_ffx/';
|
||||
$ENV{SYMBOL_SERVER_SSH_KEY} = "$ENV{HOME}/.ssh/ffxbld_dsa";
|
||||
$ENV{MOZ_SYMBOLS_EXTRA_BUILDID} = 'textframe';
|
||||
|
||||
# Reboot the OS at the end of build-and-test cycle. This is primarily
|
||||
# intended for Win9x, which can't last more than a few cycles before
|
||||
# locking up (and testing would be suspect even after a couple of cycles).
|
||||
# Right now, there is only code to force the reboot for Win9x, so even
|
||||
# setting this to 1, will not have an effect on other platforms. Setting
|
||||
# up win9x to automatically logon and begin running tinderbox is left
|
||||
# as an exercise to the reader.
|
||||
#$RebootSystem = 0;
|
||||
|
||||
# LogCompression specifies the type of compression used on the log file.
|
||||
# Valid options are 'gzip', and 'bzip2'. Please make sure the binaries
|
||||
# for 'gzip' or 'bzip2' are in the user's path before setting this
|
||||
# option.
|
||||
#$LogCompression = '';
|
||||
|
||||
# LogEncoding specifies the encoding format used for the logs. Valid
|
||||
# options are 'base64', and 'uuencode'. If $LogCompression is set above,
|
||||
# this needs to be set to 'base64' or 'uuencode' to ensure that the
|
||||
# binary data is transferred properly.
|
||||
#$LogEncoding = '';
|
||||
|
||||
# Prevent Extension Manager from spawning child processes during tests
|
||||
# - processes that tbox scripts cannot kill.
|
||||
#$ENV{NO_EM_RESTART} = '1';
|
||||
345
mozilla/widget/src/gtk/gdksuperwin.c
Normal file
345
mozilla/widget/src/gtk/gdksuperwin.c
Normal file
@@ -0,0 +1,345 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.0 (the "MPL"); you may not use this file except in
|
||||
* compliance with the MPL. You may obtain a copy of the MPL at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* MPL.
|
||||
*
|
||||
* The Initial Developers of this code under the MPL are Owen Taylor
|
||||
* <otaylor@redhat.com> and Christopher Blizzard <blizzard@redhat.com>.
|
||||
* Portions created by the Initial Developers are Copyright (C) 1999
|
||||
* Owen Taylor and Christopher Blizzard. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#include "gdksuperwin.h"
|
||||
|
||||
static void gdk_superwin_class_init(GdkSuperWinClass *klass);
|
||||
static void gdk_superwin_init(GdkSuperWin *superwin);
|
||||
|
||||
typedef struct _GdkSuperWinTranslate GdkSuperWinTranslate;
|
||||
|
||||
struct _GdkSuperWinTranslate
|
||||
{
|
||||
unsigned long serial;
|
||||
gint dx;
|
||||
gint dy;
|
||||
};
|
||||
|
||||
GtkType
|
||||
gdk_superwin_get_type(void)
|
||||
{
|
||||
static GtkType superwin_type = 0;
|
||||
|
||||
if (!superwin_type)
|
||||
{
|
||||
static const GtkTypeInfo superwin_info =
|
||||
{
|
||||
"GtkSuperWin",
|
||||
sizeof(GdkSuperWin),
|
||||
sizeof(GdkSuperWinClass),
|
||||
(GtkClassInitFunc) gdk_superwin_class_init,
|
||||
(GtkObjectInitFunc) gdk_superwin_init,
|
||||
/* reserved_1 */ NULL,
|
||||
/* reserved_2 */ NULL,
|
||||
(GtkClassInitFunc) NULL
|
||||
};
|
||||
|
||||
superwin_type = gtk_type_unique (gtk_object_get_type(), &superwin_info);
|
||||
}
|
||||
return superwin_type;
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_superwin_class_init(GdkSuperWinClass *klass)
|
||||
{
|
||||
GtkObjectClass *object_class;
|
||||
|
||||
object_class = GTK_OBJECT_CLASS(klass);
|
||||
|
||||
/* XXX do we need a finalize in here to destroy the
|
||||
window? */
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_superwin_init(GdkSuperWin *superwin)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static GdkFilterReturn gdk_superwin_bin_filter (GdkXEvent *gdk_xevent,
|
||||
GdkEvent *event,
|
||||
gpointer data);
|
||||
static GdkFilterReturn gdk_superwin_shell_filter (GdkXEvent *gdk_xevent,
|
||||
GdkEvent *event,
|
||||
gpointer data);
|
||||
static void gdk_superwin_expose_area (GdkSuperWin *superwin,
|
||||
gint x,
|
||||
gint y,
|
||||
gint width,
|
||||
gint height);
|
||||
static gboolean gravity_works;
|
||||
|
||||
GdkSuperWin *
|
||||
gdk_superwin_new (GdkWindow *parent_window,
|
||||
guint x,
|
||||
guint y,
|
||||
guint width,
|
||||
guint height)
|
||||
{
|
||||
GdkWindowAttr attributes;
|
||||
gint attributes_mask;
|
||||
GdkSuperWin *superwin = gtk_type_new(GDK_TYPE_SUPERWIN);
|
||||
|
||||
superwin->translate_queue = NULL;
|
||||
|
||||
superwin->shell_func = NULL;
|
||||
superwin->bin_func = NULL;
|
||||
superwin->func_data = NULL;
|
||||
superwin->notify = NULL;
|
||||
|
||||
/* Create the shell (clipping) window */
|
||||
attributes.window_type = GDK_WINDOW_CHILD;
|
||||
attributes.x = x;
|
||||
attributes.y = y;
|
||||
attributes.width = width;
|
||||
attributes.height = height;
|
||||
attributes.wclass = GDK_INPUT_OUTPUT;
|
||||
attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK;
|
||||
|
||||
attributes_mask = GDK_WA_X | GDK_WA_Y;
|
||||
|
||||
superwin->shell_window = gdk_window_new (parent_window,
|
||||
&attributes, attributes_mask);
|
||||
|
||||
/* Create the bin window for drawing */
|
||||
|
||||
attributes.x = 0;
|
||||
attributes.y = 0;
|
||||
attributes.event_mask = GDK_EXPOSURE_MASK;
|
||||
|
||||
superwin->bin_window = gdk_window_new (superwin->shell_window,
|
||||
&attributes, attributes_mask);
|
||||
gdk_window_show (superwin->bin_window);
|
||||
|
||||
gdk_window_add_filter (superwin->shell_window, gdk_superwin_shell_filter, superwin);
|
||||
gdk_window_add_filter (superwin->bin_window, gdk_superwin_bin_filter, superwin);
|
||||
|
||||
gravity_works = gdk_window_set_static_gravities (superwin->bin_window, TRUE);
|
||||
|
||||
return superwin;
|
||||
}
|
||||
|
||||
/* XXX this should really be part of the object... */
|
||||
/* XXX and it should chain up to the object's destructor */
|
||||
|
||||
void gdk_superwin_destroy(GdkSuperWin *superwin)
|
||||
{
|
||||
gdk_window_remove_filter(superwin->shell_window,
|
||||
gdk_superwin_shell_filter,
|
||||
superwin);
|
||||
gdk_window_remove_filter(superwin->bin_window,
|
||||
gdk_superwin_bin_filter,
|
||||
superwin);
|
||||
gdk_window_destroy(superwin->bin_window);
|
||||
gdk_window_destroy(superwin->shell_window);
|
||||
/* XXX this needs to free itself */
|
||||
}
|
||||
|
||||
void
|
||||
gdk_superwin_scroll (GdkSuperWin *superwin,
|
||||
gint dx,
|
||||
gint dy)
|
||||
{
|
||||
GdkSuperWinTranslate *translate;
|
||||
gint width, height;
|
||||
|
||||
gdk_window_get_size (superwin->shell_window, &width, &height);
|
||||
|
||||
if (dx > 0 || dy > 0)
|
||||
{
|
||||
translate = g_new (GdkSuperWinTranslate, 1);
|
||||
translate->dx = MAX (0, dx);
|
||||
translate->dy = MAX (0, dy);
|
||||
translate->serial = NextRequest (GDK_DISPLAY());
|
||||
superwin->translate_queue = g_list_append (superwin->translate_queue, translate);
|
||||
}
|
||||
|
||||
|
||||
gdk_window_move_resize (superwin->bin_window,
|
||||
MIN (0, -dx), MIN (0, -dy),
|
||||
width + ABS(dx), height + ABS(dy));
|
||||
|
||||
gdk_window_move (superwin->bin_window,
|
||||
MIN (0, -dx) + dx, MIN (0, -dy) + dy);
|
||||
|
||||
if (dx < 0 || dy < 0)
|
||||
{
|
||||
translate = g_new (GdkSuperWinTranslate, 1);
|
||||
translate->dx = MIN (0, dx);
|
||||
translate->dy = MIN (0, dy);
|
||||
translate->serial = NextRequest (GDK_DISPLAY());
|
||||
superwin->translate_queue = g_list_append (superwin->translate_queue, translate);
|
||||
}
|
||||
|
||||
gdk_window_move_resize (superwin->bin_window,
|
||||
0, 0, width, height);
|
||||
|
||||
if (dx < 0)
|
||||
gdk_superwin_expose_area (superwin,
|
||||
MAX (width + dx, 0), 0,
|
||||
MIN (-dx, width), height);
|
||||
else
|
||||
gdk_superwin_expose_area (superwin,
|
||||
0, 0,
|
||||
MIN (dx, width), height);
|
||||
|
||||
if (dy < 0)
|
||||
gdk_superwin_expose_area (superwin,
|
||||
MIN (dx, 0), MAX (height + dy, 0),
|
||||
MIN (width - ABS(dx), 0), MIN (-dy, height));
|
||||
else
|
||||
gdk_superwin_expose_area (superwin,
|
||||
MIN (dx, 0), 0,
|
||||
MIN (width - ABS(dx), 0), MIN (dy, height));
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
gdk_superwin_set_event_funcs (GdkSuperWin *superwin,
|
||||
GdkSuperWinFunc shell_func,
|
||||
GdkSuperWinFunc bin_func,
|
||||
gpointer func_data,
|
||||
GDestroyNotify notify)
|
||||
|
||||
{
|
||||
if (superwin->notify && superwin->func_data)
|
||||
superwin->notify (superwin->func_data);
|
||||
|
||||
superwin->shell_func = shell_func;
|
||||
superwin->bin_func = bin_func;
|
||||
superwin->func_data = func_data;
|
||||
superwin->notify = notify;
|
||||
|
||||
}
|
||||
|
||||
void gdk_superwin_resize (GdkSuperWin *superwin,
|
||||
gint width,
|
||||
gint height)
|
||||
{
|
||||
gdk_window_resize (superwin->bin_window, width, height);
|
||||
gdk_window_resize (superwin->shell_window, width, height);
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_superwin_expose_area (GdkSuperWin *superwin,
|
||||
gint x,
|
||||
gint y,
|
||||
gint width,
|
||||
gint height)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static GdkFilterReturn
|
||||
gdk_superwin_bin_filter (GdkXEvent *gdk_xevent,
|
||||
GdkEvent *event,
|
||||
gpointer data)
|
||||
{
|
||||
XEvent *xevent = (XEvent *)gdk_xevent;
|
||||
GdkSuperWin *superwin = data;
|
||||
GdkSuperWinTranslate *translate;
|
||||
GList *tmp_list;
|
||||
|
||||
switch (xevent->xany.type) {
|
||||
case Expose:
|
||||
tmp_list = superwin->translate_queue;
|
||||
while (tmp_list) {
|
||||
translate = tmp_list->data;
|
||||
|
||||
xevent->xexpose.x += translate->dx;
|
||||
xevent->xexpose.y += translate->dy;
|
||||
tmp_list = tmp_list->next;
|
||||
}
|
||||
|
||||
if (superwin->bin_func) {
|
||||
superwin->bin_func (superwin, xevent, superwin->func_data);
|
||||
}
|
||||
|
||||
return GDK_FILTER_REMOVE;
|
||||
break;
|
||||
|
||||
case ConfigureNotify:
|
||||
gdk_superwin_clear_translate_queue(superwin, xevent->xany.serial);
|
||||
break;
|
||||
}
|
||||
|
||||
return GDK_FILTER_CONTINUE;
|
||||
}
|
||||
|
||||
static GdkFilterReturn
|
||||
gdk_superwin_shell_filter (GdkXEvent *gdk_xevent,
|
||||
GdkEvent *event,
|
||||
gpointer data)
|
||||
{
|
||||
XEvent *xevent = (XEvent *)gdk_xevent;
|
||||
GdkSuperWin *superwin = data;
|
||||
|
||||
if (xevent->type == VisibilityNotify)
|
||||
{
|
||||
switch (xevent->xvisibility.state)
|
||||
{
|
||||
case VisibilityFullyObscured:
|
||||
superwin->visibility = GDK_VISIBILITY_FULLY_OBSCURED;
|
||||
break;
|
||||
|
||||
case VisibilityPartiallyObscured:
|
||||
superwin->visibility = GDK_VISIBILITY_PARTIAL;
|
||||
break;
|
||||
|
||||
case VisibilityUnobscured:
|
||||
superwin->visibility = GDK_VISIBILITY_UNOBSCURED;
|
||||
break;
|
||||
}
|
||||
|
||||
return GDK_FILTER_REMOVE;
|
||||
}
|
||||
|
||||
if (superwin->shell_func) {
|
||||
/* g_print("calling func %p with arg %p in win %p\n",
|
||||
superwin->event_func, superwin->func_data, superwin); */
|
||||
superwin->shell_func (superwin, xevent, superwin->func_data);
|
||||
}
|
||||
|
||||
return GDK_FILTER_CONTINUE;
|
||||
}
|
||||
|
||||
void
|
||||
gdk_superwin_clear_translate_queue(GdkSuperWin *superwin, unsigned long serial)
|
||||
{
|
||||
GdkSuperWinTranslate *translate;
|
||||
GList *tmp_list;
|
||||
GList *link_to_remove = NULL;
|
||||
|
||||
if (superwin->translate_queue) {
|
||||
tmp_list = superwin->translate_queue;
|
||||
while (tmp_list) {
|
||||
translate = tmp_list->data;
|
||||
if (serial == translate->serial) {
|
||||
g_free (tmp_list->data);
|
||||
superwin->translate_queue = g_list_remove_link (superwin->translate_queue, tmp_list);
|
||||
link_to_remove = tmp_list;
|
||||
}
|
||||
tmp_list = tmp_list->next;
|
||||
if (link_to_remove) {
|
||||
g_list_free_1(link_to_remove);
|
||||
link_to_remove = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
93
mozilla/widget/src/gtk/gdksuperwin.h
Normal file
93
mozilla/widget/src/gtk/gdksuperwin.h
Normal file
@@ -0,0 +1,93 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.0 (the "MPL"); you may not use this file except in
|
||||
* compliance with the MPL. You may obtain a copy of the MPL at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* MPL.
|
||||
*
|
||||
* The Initial Developers of this code under the MPL are Owen Taylor
|
||||
* <otaylor@redhat.com> and Christopher Blizzard <blizzard@redhat.com>.
|
||||
* Portions created by the Initial Developers are Copyright (C) 1999
|
||||
* Owen Taylor and Christopher Blizzard. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef __GDK_SUPERWIN_H__
|
||||
#define __GDK_SUPERWIN_H__
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gdk/gdkx.h>
|
||||
#include <gtk/gtkobject.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef struct _GdkSuperWin GdkSuperWin;
|
||||
typedef struct _GdkSuperWinClass GdkSuperWinClass;
|
||||
|
||||
#define GDK_TYPE_SUPERWIN (gdk_superwin_get_type())
|
||||
#define GDK_SUPERWIN(obj) (GTK_CHECK_CAST((obj), GDK_TYPE_SUPERWIN, GdkSuperWin))
|
||||
#define GDK_SUPERWIN_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass), GDK_TYPE_SUPERWIN, GdkSuperWinClass))
|
||||
#define GDK_IS_SUPERWIN(obj) (GTK_CHECK_TYPE((obj), GDK_TYPE_SUPERWIN))
|
||||
#define GDK_IS_SUPERWIN_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDK_TYPE_SUPERWIN))
|
||||
|
||||
typedef void (*GdkSuperWinFunc) (GdkSuperWin *super_win,
|
||||
XEvent *event,
|
||||
gpointer data);
|
||||
struct _GdkSuperWin
|
||||
{
|
||||
GtkObject object;
|
||||
GdkWindow *shell_window;
|
||||
GdkWindow *bin_window;
|
||||
|
||||
/* Private */
|
||||
GList *translate_queue;
|
||||
GdkSuperWinFunc shell_func;
|
||||
GdkSuperWinFunc bin_func;
|
||||
gpointer func_data;
|
||||
GDestroyNotify notify;
|
||||
|
||||
GdkVisibilityState visibility;
|
||||
};
|
||||
|
||||
struct _GdkSuperWinClass
|
||||
{
|
||||
GtkObjectClass object_class;
|
||||
};
|
||||
|
||||
GtkType gdk_superwin_get_type(void);
|
||||
|
||||
GdkSuperWin *gdk_superwin_new (GdkWindow *parent_window,
|
||||
guint x,
|
||||
guint y,
|
||||
guint width,
|
||||
guint height);
|
||||
|
||||
void
|
||||
gdk_superwin_set_event_funcs (GdkSuperWin *superwin,
|
||||
GdkSuperWinFunc shell_func,
|
||||
GdkSuperWinFunc bin_func,
|
||||
gpointer func_data,
|
||||
GDestroyNotify notify);
|
||||
|
||||
void gdk_superwin_scroll (GdkSuperWin *superwin,
|
||||
gint dx,
|
||||
gint dy);
|
||||
void gdk_superwin_resize (GdkSuperWin *superwin,
|
||||
gint width,
|
||||
gint height);
|
||||
void gdk_superwin_destroy(GdkSuperWin *superwin);
|
||||
void gdk_superwin_clear_translate_queue(GdkSuperWin *superwin,
|
||||
unsigned long serial);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* _GDK_SUPERWIN_H__ */
|
||||
|
||||
110
mozilla/widget/src/gtk/gtkmozarea.c
Normal file
110
mozilla/widget/src/gtk/gtkmozarea.c
Normal file
@@ -0,0 +1,110 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.0 (the "MPL"); you may not use this file except in
|
||||
* compliance with the MPL. You may obtain a copy of the MPL at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* MPL.
|
||||
*
|
||||
* The Initial Developers of this code under the MPL are Owen Taylor
|
||||
* <otaylor@redhat.com> and Christopher Blizzard <blizzard@redhat.com>.
|
||||
* Portions created by the Initial Developers are Copyright (C) 1999
|
||||
* Owen Taylor and Christopher Blizzard. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#include "gtkmozarea.h"
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
static void gtk_mozarea_class_init (GtkMozAreaClass *klass);
|
||||
static void gtk_mozarea_init (GtkMozArea *mozarea);
|
||||
static void gtk_mozarea_realize (GtkWidget *widget);
|
||||
static void gtk_mozarea_size_allocate (GtkWidget *widget, GtkAllocation *allocation);
|
||||
|
||||
GtkType
|
||||
gtk_mozarea_get_type (void)
|
||||
{
|
||||
static GtkType mozarea_type = 0;
|
||||
|
||||
if (!mozarea_type)
|
||||
{
|
||||
static const GtkTypeInfo mozarea_info =
|
||||
{
|
||||
"GtkMozArea",
|
||||
sizeof (GtkMozArea),
|
||||
sizeof (GtkMozAreaClass),
|
||||
(GtkClassInitFunc) gtk_mozarea_class_init,
|
||||
(GtkObjectInitFunc) gtk_mozarea_init,
|
||||
/* reserved_1 */ NULL,
|
||||
/* reserved_2 */ NULL,
|
||||
(GtkClassInitFunc) NULL
|
||||
};
|
||||
|
||||
mozarea_type = gtk_type_unique (GTK_TYPE_WIDGET, &mozarea_info);
|
||||
}
|
||||
|
||||
return mozarea_type;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozarea_class_init (GtkMozAreaClass *klass)
|
||||
{
|
||||
GtkWidgetClass *widget_class;
|
||||
|
||||
widget_class = GTK_WIDGET_CLASS (klass);
|
||||
|
||||
widget_class->realize = gtk_mozarea_realize;
|
||||
widget_class->size_allocate = gtk_mozarea_size_allocate;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozarea_init (GtkMozArea *mozarea)
|
||||
{
|
||||
mozarea->superwin = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozarea_realize (GtkWidget *widget)
|
||||
{
|
||||
GtkMozArea *mozarea;
|
||||
|
||||
g_return_if_fail (GTK_IS_MOZAREA (widget));
|
||||
|
||||
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
|
||||
|
||||
mozarea = GTK_MOZAREA (widget);
|
||||
|
||||
mozarea->superwin = gdk_superwin_new (gtk_widget_get_parent_window (widget),
|
||||
widget->allocation.x, widget->allocation.y,
|
||||
widget->allocation.width, widget->allocation.height);
|
||||
gdk_window_set_user_data (mozarea->superwin->shell_window, mozarea);
|
||||
widget->window = mozarea->superwin->shell_window;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozarea_size_allocate (GtkWidget *widget,
|
||||
GtkAllocation *allocation)
|
||||
{
|
||||
GtkMozArea *mozarea;
|
||||
|
||||
g_return_if_fail (GTK_IS_MOZAREA (widget));
|
||||
|
||||
mozarea = GTK_MOZAREA (widget);
|
||||
|
||||
if (GTK_WIDGET_REALIZED (widget))
|
||||
{
|
||||
gdk_window_move (mozarea->superwin->shell_window,
|
||||
allocation->x, allocation->y);
|
||||
gdk_superwin_resize (mozarea->superwin,
|
||||
allocation->width, allocation->height);
|
||||
}
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtk_mozarea_new (GdkWindow *parent_window)
|
||||
{
|
||||
return GTK_WIDGET (gtk_type_new (GTK_TYPE_MOZAREA));
|
||||
}
|
||||
56
mozilla/widget/src/gtk/gtkmozarea.h
Normal file
56
mozilla/widget/src/gtk/gtkmozarea.h
Normal file
@@ -0,0 +1,56 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.0 (the "MPL"); you may not use this file except in
|
||||
* compliance with the MPL. You may obtain a copy of the MPL at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* MPL.
|
||||
*
|
||||
* The Initial Developers of this code under the MPL are Owen Taylor
|
||||
* <otaylor@redhat.com> and Christopher Blizzard <blizzard@redhat.com>.
|
||||
* Portions created by the Initial Developers are Copyright (C) 1999
|
||||
* Owen Taylor and Christopher Blizzard. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_MOZAREA_H__
|
||||
#define __GTK_MOZAREA_H__
|
||||
|
||||
#include <gtk/gtkwindow.h>
|
||||
#include "gdksuperwin.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef struct _GtkMozArea GtkMozArea;
|
||||
typedef struct _GtkMozAreaClass GtkMozAreaClass;
|
||||
|
||||
#define GTK_TYPE_MOZAREA (gtk_mozarea_get_type ())
|
||||
#define GTK_MOZAREA(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MOZAREA, GtkMozArea))
|
||||
#define GTK_MOZAREA_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MOZAREA, GtkMozAreaClass))
|
||||
#define GTK_IS_MOZAREA(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MOZAREA))
|
||||
#define GTK_IS_MOZAREA_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MOZAREA))
|
||||
|
||||
struct _GtkMozArea
|
||||
{
|
||||
GtkWidget widget;
|
||||
GdkSuperWin *superwin;
|
||||
};
|
||||
|
||||
struct _GtkMozAreaClass
|
||||
{
|
||||
GtkWindowClass window_class;
|
||||
};
|
||||
|
||||
GtkType gtk_mozarea_get_type (void);
|
||||
GtkWidget *gtk_mozarea_new ();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_MOZAREA_H__ */
|
||||
155
mozilla/widget/src/gtk/gtkmozbox.c
Normal file
155
mozilla/widget/src/gtk/gtkmozbox.c
Normal file
@@ -0,0 +1,155 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.0 (the "MPL"); you may not use this file except in
|
||||
* compliance with the MPL. You may obtain a copy of the MPL at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* MPL.
|
||||
*
|
||||
* The Initial Developers of this code under the MPL are Owen Taylor
|
||||
* <otaylor@redhat.com> and Christopher Blizzard <blizzard@redhat.com>.
|
||||
* Portions created by the Initial Developers are Copyright (C) 1999
|
||||
* Owen Taylor and Christopher Blizzard. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#include "gtkmozbox.h"
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
static void gtk_mozbox_class_init (GtkMozBoxClass *klass);
|
||||
static void gtk_mozbox_init (GtkMozBox *mozbox);
|
||||
static void gtk_mozbox_realize (GtkWidget *widget);
|
||||
static GdkFilterReturn gtk_mozbox_filter (GdkXEvent *xevent,
|
||||
GdkEvent *event,
|
||||
gpointer data);
|
||||
|
||||
GtkType
|
||||
gtk_mozbox_get_type (void)
|
||||
{
|
||||
static GtkType mozbox_type = 0;
|
||||
|
||||
if (!mozbox_type)
|
||||
{
|
||||
static const GtkTypeInfo mozbox_info =
|
||||
{
|
||||
"GtkMozBox",
|
||||
sizeof (GtkMozBox),
|
||||
sizeof (GtkMozBoxClass),
|
||||
(GtkClassInitFunc) gtk_mozbox_class_init,
|
||||
(GtkObjectInitFunc) gtk_mozbox_init,
|
||||
/* reserved_1 */ NULL,
|
||||
/* reserved_2 */ NULL,
|
||||
(GtkClassInitFunc) NULL
|
||||
};
|
||||
|
||||
mozbox_type = gtk_type_unique (GTK_TYPE_WINDOW, &mozbox_info);
|
||||
}
|
||||
|
||||
return mozbox_type;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozbox_class_init (GtkMozBoxClass *klass)
|
||||
{
|
||||
GtkWidgetClass *widget_class;
|
||||
|
||||
widget_class = GTK_WIDGET_CLASS (klass);
|
||||
|
||||
widget_class->realize = gtk_mozbox_realize;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozbox_init (GtkMozBox *mozbox)
|
||||
{
|
||||
mozbox->parent_window = NULL;
|
||||
mozbox->x = 0;
|
||||
mozbox->y = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_mozbox_realize (GtkWidget *widget)
|
||||
{
|
||||
GdkWindowAttr attributes;
|
||||
gint attributes_mask;
|
||||
GtkMozBox *mozbox;
|
||||
|
||||
g_return_if_fail (GTK_IS_MOZBOX (widget));
|
||||
|
||||
mozbox = GTK_MOZBOX (widget);
|
||||
|
||||
/* GtkWindow checks against premature realization here. Just
|
||||
* don't do it.
|
||||
*/
|
||||
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
|
||||
|
||||
attributes.window_type = GDK_WINDOW_CHILD;
|
||||
attributes.x = mozbox->x;
|
||||
attributes.y = mozbox->y;
|
||||
attributes.width = widget->allocation.width;
|
||||
attributes.height = widget->allocation.height;
|
||||
attributes.wclass = GDK_INPUT_OUTPUT;
|
||||
attributes.visual = gtk_widget_get_visual (widget);
|
||||
attributes.colormap = gtk_widget_get_colormap (widget);
|
||||
attributes.event_mask = gtk_widget_get_events (widget);
|
||||
attributes.event_mask |= GDK_EXPOSURE_MASK;
|
||||
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
|
||||
|
||||
widget->window = gdk_window_new (mozbox->parent_window,
|
||||
&attributes, attributes_mask);
|
||||
gdk_window_set_user_data (widget->window, mozbox);
|
||||
|
||||
widget->style = gtk_style_attach (widget->style, widget->window);
|
||||
gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
|
||||
|
||||
gdk_window_add_filter (widget->window, gtk_mozbox_filter, mozbox);
|
||||
}
|
||||
|
||||
static GdkFilterReturn
|
||||
gtk_mozbox_filter (GdkXEvent *xevent,
|
||||
GdkEvent *event,
|
||||
gpointer data)
|
||||
{
|
||||
XEvent *xev = xevent;
|
||||
GtkWidget *widget = data;
|
||||
|
||||
switch (xev->xany.type)
|
||||
{
|
||||
case ConfigureNotify:
|
||||
event->configure.type = GDK_CONFIGURE;
|
||||
event->configure.window = widget->window;
|
||||
event->configure.x = 0;
|
||||
event->configure.y = 0;
|
||||
event->configure.width = xev->xconfigure.width;
|
||||
event->configure.height = xev->xconfigure.height;
|
||||
return GDK_FILTER_TRANSLATE;
|
||||
default:
|
||||
return GDK_FILTER_CONTINUE;
|
||||
}
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gtk_mozbox_new (GdkWindow *parent_window)
|
||||
{
|
||||
GtkMozBox *mozbox;
|
||||
|
||||
mozbox = gtk_type_new (GTK_TYPE_MOZBOX);
|
||||
mozbox->parent_window = parent_window;
|
||||
|
||||
return GTK_WIDGET (mozbox);
|
||||
}
|
||||
|
||||
void
|
||||
gtk_mozbox_set_position (GtkMozBox *mozbox,
|
||||
gint x,
|
||||
gint y)
|
||||
{
|
||||
mozbox->x = x;
|
||||
mozbox->y = y;
|
||||
|
||||
if (GTK_WIDGET_REALIZED (mozbox))
|
||||
gdk_window_move (GTK_WIDGET (mozbox)->window, x, y);
|
||||
}
|
||||
|
||||
60
mozilla/widget/src/gtk/gtkmozbox.h
Normal file
60
mozilla/widget/src/gtk/gtkmozbox.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.0 (the "MPL"); you may not use this file except in
|
||||
* compliance with the MPL. You may obtain a copy of the MPL at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* MPL.
|
||||
*
|
||||
* The Initial Developers of this code under the MPL are Owen Taylor
|
||||
* <otaylor@redhat.com> and Christopher Blizzard <blizzard@redhat.com>.
|
||||
* Portions created by the Initial Developers are Copyright (C) 1999
|
||||
* Owen Taylor and Christopher Blizzard. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_MOZBOX_H__
|
||||
#define __GTK_MOZBOX_H__
|
||||
|
||||
#include <gtk/gtkwindow.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef struct _GtkMozBox GtkMozBox;
|
||||
typedef struct _GtkMozBoxClass GtkMozBoxClass;
|
||||
|
||||
#define GTK_TYPE_MOZBOX (gtk_mozbox_get_type ())
|
||||
#define GTK_MOZBOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_MOZBOX, GtkMozBox))
|
||||
#define GTK_MOZBOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_MOZBOX, GtkMozBoxClass))
|
||||
#define GTK_IS_MOZBOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_MOZBOX))
|
||||
#define GTK_IS_MOZBOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MOZBOX))
|
||||
|
||||
struct _GtkMozBox
|
||||
{
|
||||
GtkWindow window;
|
||||
GdkWindow *parent_window;
|
||||
gint x;
|
||||
gint y;
|
||||
};
|
||||
|
||||
struct _GtkMozBoxClass
|
||||
{
|
||||
GtkWindowClass window_class;
|
||||
};
|
||||
|
||||
GtkType gtk_mozbox_get_type (void);
|
||||
GtkWidget *gtk_mozbox_new (GdkWindow *parent_window);
|
||||
void gtk_mozbox_set_position (GtkMozBox *mozbox,
|
||||
gint x,
|
||||
gint y);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __GTK_MOZBOX_H__ */
|
||||
Reference in New Issue
Block a user