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

Issue 658963003: Change Clipboard to use virtual methods for testing purposes. (Closed)

Created:
6 years, 2 months ago by dcheng
Modified:
6 years, 2 months ago
Reviewers:
sky
CC:
dcheng, chromium-reviews, jam, jochen (gone - plz use gerrit), Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change ui::Clipboard to use virtual methods for testing purposes. Platform-specific implementations now have their own derived classes. This allows some cleanup of platform-specific hackery in clipboard.h, and paves the way for adding a fake clipboard implementation in the future for testing. BUG=319285 Committed: https://crrev.com/24f3d91568c470b69a62e6dab5998a295f2eb46b Cr-Commit-Position: refs/heads/master@{#300063}

Patch Set 1 #

Patch Set 2 : Gyp updates #

Patch Set 3 : Trim unneeded header #

Patch Set 4 : Add missing headers #

Patch Set 5 : Fix Windows #include #

Patch Set 6 : Fix Windows again? #

Patch Set 7 : Maybe? #

Patch Set 8 : And more speculative fixes. Broken VPN is annoying. #

Patch Set 9 : One more typo... #

Total comments: 1

Patch Set 10 : Test rebase #

Total comments: 8

Patch Set 11 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+776 lines, -431 lines) Patch
M ui/base/BUILD.gn View 1 chunk +3 lines, -1 line 0 comments Download
M ui/base/android/ui_base_jni_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/clipboard/clipboard.h View 1 2 3 4 5 6 6 chunks +51 lines, -90 lines 0 comments Download
M ui/base/clipboard/clipboard.cc View 1 chunk +1 line, -1 line 0 comments Download
A ui/base/clipboard/clipboard_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 2 3 4 5 6 7 8 9 9 chunks +57 lines, -46 lines 0 comments Download
D ui/base/clipboard/clipboard_android_initialization.h View 1 chunk +0 lines, -22 lines 0 comments Download
A ui/base/clipboard/clipboard_aura.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_aura.cc View 1 2 3 4 5 6 7 8 9 5 chunks +52 lines, -44 lines 0 comments Download
A ui/base/clipboard/clipboard_aurax11.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +70 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_aurax11.cc View 1 2 3 4 5 6 7 8 9 27 chunks +89 lines, -73 lines 0 comments Download
A ui/base/clipboard/clipboard_mac.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +63 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_mac.mm View 1 2 3 4 5 6 7 8 9 16 chunks +57 lines, -51 lines 0 comments Download
A ui/base/clipboard/clipboard_win.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +77 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_win.cc View 1 2 3 4 5 6 7 8 9 27 chunks +120 lines, -101 lines 0 comments Download
M ui/base/ui_base.gyp View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
dcheng
Sorry for the size of the CL. Most of the diffs in the implementation files ...
6 years, 2 months ago (2014-10-16 09:38:05 UTC) #2
sky
Can you break this up. A change the makes declaration and definition match order and ...
6 years, 2 months ago (2014-10-16 16:16:03 UTC) #3
dcheng
PTAL. I've rebased this patch on top of https://codereview.chromium.org/659103002, so it should be much easier ...
6 years, 2 months ago (2014-10-16 16:57:52 UTC) #4
sky
https://codereview.chromium.org/658963003/diff/170001/ui/base/clipboard/clipboard_android.h File ui/base/clipboard/clipboard_android.h (right): https://codereview.chromium.org/658963003/diff/170001/ui/base/clipboard/clipboard_android.h#newcode19 ui/base/clipboard/clipboard_android.h:19: ~ClipboardAndroid() override; virtual and I don't believe we use ...
6 years, 2 months ago (2014-10-16 19:40:12 UTC) #5
dcheng
Apparently I didn't actually send out my drafts, sorry. PTAL. https://codereview.chromium.org/658963003/diff/170001/ui/base/clipboard/clipboard_android.h File ui/base/clipboard/clipboard_android.h (right): https://codereview.chromium.org/658963003/diff/170001/ui/base/clipboard/clipboard_android.h#newcode19 ...
6 years, 2 months ago (2014-10-16 21:51:39 UTC) #6
sky
Something tells me I need to read the style guide again. LGTM
6 years, 2 months ago (2014-10-16 22:37:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/658963003/190001
6 years, 2 months ago (2014-10-17 03:42:33 UTC) #9
commit-bot: I haz the power
Committed patchset #11 (id:190001)
6 years, 2 months ago (2014-10-17 04:32:01 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 04:32:56 UTC) #11
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/24f3d91568c470b69a62e6dab5998a295f2eb46b
Cr-Commit-Position: refs/heads/master@{#300063}

Powered by Google App Engine
This is Rietveld 408576698