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

Issue 158333002: Merge MediaControlsChromium into MediaControls (2nd try) (Closed)

Created:
6 years, 10 months ago by philipj_slow
Modified:
6 years, 10 months ago
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Visibility:
Public.

Description

Merge MediaControlsChromium into MediaControls (2nd try) To the largest extent possible, code was copied from MediaControlsChromium.* to MediaControls.* without modification. Where MediaControlsChromium virtual functions called the MediaControls base functions, the order was preserved to avoid changing behavior. The 1st try broke Android: https://codereview.chromium.org/144083003/ The problem was that MediaControlsChromiumAndroid::createControls() was merged into the Android MediaControls::create(), but obviously that doesn't have access to the private members it needs. Simplify things by having only a single implementation of create() and make initializeControls() virtual instead. The ifdefery is thus reduced to a single line in MediaControls::create(). BUG=341813 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166893

Patch Set 1 #

Patch Set 2 : fix Android #

Total comments: 2

Patch Set 3 : public constructor #

Total comments: 2

Patch Set 4 : if OS(ANDRIOD) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -327 lines) Patch
M Source/core/core.gypi View 1 chunk +2 lines, -4 lines 0 comments Download
M Source/core/html/shadow/MediaControls.h View 1 4 chunks +8 lines, -5 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 9 chunks +138 lines, -2 lines 0 comments Download
D Source/core/html/shadow/MediaControlsChromium.h View 1 chunk +0 lines, -65 lines 0 comments Download
D Source/core/html/shadow/MediaControlsChromium.cpp View 1 chunk +0 lines, -223 lines 0 comments Download
M Source/core/html/shadow/MediaControlsChromiumAndroid.h View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/html/shadow/MediaControlsChromiumAndroid.cpp View 1 2 chunks +11 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
philipj_slow
PTAL, I've fixed the Android build errors, made an apk for my phone and tested ...
6 years, 10 months ago (2014-02-08 18:31:02 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/158333002/diff/30001/Source/core/html/shadow/MediaControlsChromiumAndroid.h File Source/core/html/shadow/MediaControlsChromiumAndroid.h (right): https://codereview.chromium.org/158333002/diff/30001/Source/core/html/shadow/MediaControlsChromiumAndroid.h#newcode51 Source/core/html/shadow/MediaControlsChromiumAndroid.h:51: friend class MediaControls; Why is this friend declaration needed ...
6 years, 10 months ago (2014-02-10 18:27:32 UTC) #2
philipj_slow
https://codereview.chromium.org/158333002/diff/30001/Source/core/html/shadow/MediaControlsChromiumAndroid.h File Source/core/html/shadow/MediaControlsChromiumAndroid.h (right): https://codereview.chromium.org/158333002/diff/30001/Source/core/html/shadow/MediaControlsChromiumAndroid.h#newcode51 Source/core/html/shadow/MediaControlsChromiumAndroid.h:51: friend class MediaControls; On 2014/02/10 18:27:32, acolwell wrote: > ...
6 years, 10 months ago (2014-02-10 20:13:16 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/158333002/diff/180001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/158333002/diff/180001/Source/core/html/shadow/MediaControls.cpp#newcode31 Source/core/html/shadow/MediaControls.cpp:31: #include "core/html/shadow/MediaControlsChromiumAndroid.h" nit: Surround with #if OS(ANDROID)?
6 years, 10 months ago (2014-02-10 20:32:09 UTC) #4
philipj_slow
https://codereview.chromium.org/158333002/diff/180001/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/158333002/diff/180001/Source/core/html/shadow/MediaControls.cpp#newcode31 Source/core/html/shadow/MediaControls.cpp:31: #include "core/html/shadow/MediaControlsChromiumAndroid.h" On 2014/02/10 20:32:09, acolwell wrote: > nit: ...
6 years, 10 months ago (2014-02-11 03:00:07 UTC) #5
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 10 months ago (2014-02-11 03:00:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/158333002/260001
6 years, 10 months ago (2014-02-11 03:00:19 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 05:08:16 UTC) #8
Message was sent while issue was closed.
Change committed as 166893

Powered by Google App Engine
This is Rietveld 408576698