Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Issue 56076: media player main() entry point (Closed)

Created:
11 years, 8 months ago by fbarchard
Modified:
7 years, 2 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

player_wtl main entry point separated from the rest of media player for code review. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14829

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Total comments: 50

Patch Set 18 : '' #

Total comments: 58

Patch Set 19 : '' #

Patch Set 20 : '' #

Total comments: 39

Patch Set 21 : '' #

Total comments: 3

Patch Set 22 : '' #

Patch Set 23 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -0 lines) Patch
A media/player/player_wtl.cc View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +96 lines, -0 lines 6 comments Download

Messages

Total messages: 18 (0 generated)
fbarchard
This should be easy to check in. Not. But it would sure help me, if ...
11 years, 8 months ago (2009-03-30 20:58:26 UTC) #1
fbarchard
removed 32 bpp view option. added audio enable/disable, to allow working from fremont. some code ...
11 years, 8 months ago (2009-04-17 03:36:34 UTC) #2
fbarchard
GYP build file working. Added View->size menu items, but ghosted full screen. Disabled mmx for ...
11 years, 8 months ago (2009-04-22 00:16:23 UTC) #3
awong
On 2009/04/22 00:16:23, fbarchard wrote: > GYP build file working. > Added View->size menu items, ...
11 years, 8 months ago (2009-04-22 04:45:46 UTC) #4
fbarchard
Added time shifted audio. Cleaned up most lint warnings.
11 years, 8 months ago (2009-04-22 09:44:29 UTC) #5
awong
Here's pass 1 comments for this file. I kinda did it like a readability review ...
11 years, 8 months ago (2009-04-22 22:13:27 UTC) #6
scherkus (not reviewing)
Reviewed movie.h and movie.cc Biggest recommendation is to refactor the globals into a singleton class ...
11 years, 8 months ago (2009-04-23 21:51:22 UTC) #7
fbarchard
Thanks Albert. We're making progress... about 30% checked in now... http://codereview.chromium.org/56076/diff/6266/7192 File media/player/view.h (right): http://codereview.chromium.org/56076/diff/6266/7192#newcode5 ...
11 years, 8 months ago (2009-04-25 00:42:02 UTC) #8
awong
So, I'd like one more person to look over this (andrew?) file before checkin just ...
11 years, 8 months ago (2009-04-25 01:21:49 UTC) #9
fbarchard
header issues addressed, but not movie.cc http://codereview.chromium.org/56076/diff/7204/7214 File media/player/movie.h (right): http://codereview.chromium.org/56076/diff/7204/7214#newcode1 Line 1: // Copyright ...
11 years, 8 months ago (2009-04-28 00:57:13 UTC) #10
fbarchard
This CL reduced to just the main entry point for player_wtl.cc Cleaned up lint warnings, ...
11 years, 8 months ago (2009-04-28 05:37:08 UTC) #11
scherkus (not reviewing)
http://codereview.chromium.org/56076/diff/11004/11005 File media/player/player_wtl.cc (right): http://codereview.chromium.org/56076/diff/11004/11005#newcode1 Line 1: // Copyright (c) 2006-2009 The Chromium Authors. All ...
11 years, 8 months ago (2009-04-28 18:07:55 UTC) #12
fbarchard
all done. Alpha? http://codereview.chromium.org/56076/diff/11004/11005 File media/player/player_wtl.cc (right): http://codereview.chromium.org/56076/diff/11004/11005#newcode1 Line 1: // Copyright (c) 2006-2009 The ...
11 years, 8 months ago (2009-04-29 02:14:12 UTC) #13
Alpha Left Google
http://codereview.chromium.org/56076/diff/10007/11006 File media/player/player_wtl.cc (right): http://codereview.chromium.org/56076/diff/10007/11006#newcode65 Line 65: if (url) { the previous if statement also ...
11 years, 8 months ago (2009-04-29 02:34:27 UTC) #14
fbarchard
done. Look good yet? http://codereview.chromium.org/56076/diff/10007/11006 File media/player/player_wtl.cc (right): http://codereview.chromium.org/56076/diff/10007/11006#newcode45 Line 45: CAppModule _Module; changed to ...
11 years, 8 months ago (2009-04-29 02:58:03 UTC) #15
fbarchard
look good yet?
11 years, 8 months ago (2009-04-29 03:09:41 UTC) #16
Alpha Left Google
LGTM.
11 years, 8 months ago (2009-04-29 03:11:47 UTC) #17
scherkus (not reviewing)
11 years, 7 months ago (2009-04-29 05:29:09 UTC) #18
more comments

http://codereview.chromium.org/56076/diff/11009/10011
File media/player/player_wtl.cc (right):

http://codereview.chromium.org/56076/diff/11009/10011#newcode16
Line 16: #include "media/player/stdafx.h"
usually stdafx.h is your precompiled header, so it may make sense to move the
<atl*.h> headers into there to avoid these tricky header dependencies

http://codereview.chromium.org/56076/diff/11009/10011#newcode45
Line 45: CAppModule g_module;
given that this is used in other files, it'd be good to add a comment describing
its use

http://codereview.chromium.org/56076/diff/11009/10011#newcode48
Line 48: CMessageLoop the_loop;
nit: the_loop is a bit of a funny name :)

most of chrome uses message_loop when referencing message loop objects

http://codereview.chromium.org/56076/diff/11009/10011#newcode59
Line 59: base::AtExitManager exit_manager;
just realized.. this declaration should actually go as one of the first lines in
your main function _tWinMain

http://codereview.chromium.org/56076/diff/11009/10011#newcode67
Line 67: wnd_main.MovieOpenFile(url);
you never use url again, so you may want to rewrite it as:
if (cmd_line && *cmd_line) {
  wnd_main.MovieOpenFile(*cmd_line);
}

http://codereview.chromium.org/56076/diff/11009/10011#newcode79
Line 79: wchar_t* cmd_line, int cmd_show) {
just a bit of a nit regarding TCHAR vs. wchar_t...

TCHAR is either char* or wchar_t* depending on whether the program is compiled
with _UNICODE

Since we _should_ be a unicode app (using wchar_t) you'll want to replace
_tWinMain with wWinMain

Take a look at /chrome/app/chrome_exe_main.cc for an example (they also do the
AtExitManager stuff)

Powered by Google App Engine
This is Rietveld 408576698