Bug 28080 - Adding a bunch of Haiku-specific files for WebCore.
Summary: Adding a bunch of Haiku-specific files for WebCore.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-07 13:09 PDT by Maxime Simon
Modified: 2009-08-15 03:14 PDT (History)
1 user (show)

See Also:


Attachments
Patch to add two Haiku-specfic files to WebCore: TemporaryLinkStubs.cpp and WidgetHaiku.cpp (8.30 KB, patch)
2009-08-07 13:15 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Patch to add four Haiku-specific files for WebCore: PopupMenuHaiku.cpp, ScreenHaiku.cpp, SearchPopupMenuHaiku.cpp and SoundHaiku.cpp (10.42 KB, patch)
2009-08-07 13:34 PDT, Maxime Simon
no flags Details | Formatted Diff | Diff
Patch to add two Haiku-specific files for WebCore: SharedTimerHaiku.h and SharedTimerHaiku.cpp (7.99 KB, patch)
2009-08-07 13:44 PDT, Maxime Simon
eric: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Simon 2009-08-07 13:09:45 PDT
I fill this bug to add
 WebCore/platform/haiku/PopupMenuHaiku.cpp
 WebCore/platform/haiku/RenderThemeHaiku.cpp
 WebCore/platform/haiku/ScreenHaiku.cpp
 WebCore/platform/haiku/SearchPopupMenuHaiku.cpp
 WebCore/platform/haiku/SharedTimerHaiku.cpp
 WebCore/platform/haiku/SharedTimerHaiku.h
 WebCore/platform/haiku/SoundHaiku.cpp
 WebCore/platform/haiku/TemporaryLinkStubs.cpp
 WebCore/platform/haiku/TranslatorDecoder.cpp
 WebCore/platform/haiku/TranslatorDecoder.h
 WebCore/platform/haiku/WidgetHaiku.cpp

If someone thinks it's too much files for a single bug,
please let me know!

Regards,
Maxime
Comment 1 Maxime Simon 2009-08-07 13:15:16 PDT
Created attachment 34316 [details]
Patch to add two Haiku-specfic files to WebCore: TemporaryLinkStubs.cpp and WidgetHaiku.cpp
Comment 2 Maxime Simon 2009-08-07 13:34:47 PDT
Created attachment 34319 [details]
Patch to add four Haiku-specific files for WebCore: PopupMenuHaiku.cpp, ScreenHaiku.cpp, SearchPopupMenuHaiku.cpp and SoundHaiku.cpp
Comment 3 Maxime Simon 2009-08-07 13:44:48 PDT
Created attachment 34322 [details]
Patch to add two Haiku-specific files for WebCore: SharedTimerHaiku.h and SharedTimerHaiku.cpp
Comment 4 Eric Seidel (no email) 2009-08-07 14:41:53 PDT
Comment on attachment 34316 [details]
Patch to add two Haiku-specfic files to WebCore: TemporaryLinkStubs.cpp and WidgetHaiku.cpp

LGTM.
Comment 5 Eric Seidel (no email) 2009-08-07 14:43:24 PDT
Comment on attachment 34319 [details]
Patch to add four Haiku-specific files for WebCore: PopupMenuHaiku.cpp, ScreenHaiku.cpp, SearchPopupMenuHaiku.cpp and SoundHaiku.cpp

In general "cs" is not a good variable name.  Please refer to the webkit style guidelines for variable naming.

 62     color_space cs = screen.ColorSpace();

This looks OK though, and not worth another round of review for just that.

Thank you for splitting these up, it makes reviewing *much* easier. :) (and much less waiting time for you).
Comment 6 Eric Seidel (no email) 2009-08-07 14:46:49 PDT
Comment on attachment 34322 [details]
Patch to add two Haiku-specific files for WebCore: SharedTimerHaiku.h and SharedTimerHaiku.cpp

We prefer constants over defines:
 38 #define FIRE_MESSAGE 'fire'

What does "sleepyTime" mean?
 67         bigtime_t sleepyTime = static_cast<bigtime_t>((m_fireTime - WTF::currentTime()) * 1000000);

bigtime_t sleepTimeInSeconds would be a better name?


This needs a comment:
69         if (sleepyTime < 0)
 70             sleepyTime = 0;

// If the fire time has already passed, fire immediately.
or similar.

Style:
91     BLooper *looper = BLooper::LooperForThread(find_thread(0));

Otherwise this looks sane enough.  You might want to post the new patch on a new bug, since the other patches were approved.
Comment 7 Adam Barth 2009-08-07 16:14:20 PDT
Comment on attachment 34316 [details]
Patch to add two Haiku-specfic files to WebCore: TemporaryLinkStubs.cpp and WidgetHaiku.cpp

Clearing review flag on attachment: 34316

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	A	WebCore/platform/haiku/TemporaryLinkStubs.cpp
	A	WebCore/platform/haiku/WidgetHaiku.cpp
Committed r46923
	M	WebCore/ChangeLog
	A	WebCore/platform/haiku/TemporaryLinkStubs.cpp
	A	WebCore/platform/haiku/WidgetHaiku.cpp
r46923 = fcf9bf19107405d715c42008c807645900f888e1 (trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/46923
Comment 8 Adam Barth 2009-08-07 16:14:37 PDT
Comment on attachment 34319 [details]
Patch to add four Haiku-specific files for WebCore: PopupMenuHaiku.cpp, ScreenHaiku.cpp, SearchPopupMenuHaiku.cpp and SoundHaiku.cpp

Clearing review flag on attachment: 34319

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	A	WebCore/platform/haiku/PopupMenuHaiku.cpp
	A	WebCore/platform/haiku/ScreenHaiku.cpp
	A	WebCore/platform/haiku/SearchPopupMenuHaiku.cpp
	A	WebCore/platform/haiku/SoundHaiku.cpp
Committed r46924
	M	WebCore/ChangeLog
	A	WebCore/platform/haiku/SearchPopupMenuHaiku.cpp
	A	WebCore/platform/haiku/ScreenHaiku.cpp
	A	WebCore/platform/haiku/SoundHaiku.cpp
	A	WebCore/platform/haiku/PopupMenuHaiku.cpp
r46924 = 4c9b811d2965864e940504a2bca5bbc347f174a6 (trunk)
No changes between current HEAD and refs/remotes/trunk
Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/46924
Comment 9 Maxime Simon 2009-08-15 03:14:35 PDT
As SharedTimer has moved to bug 28126 , closing this one.