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

Issue 2400923002: Move BlimpInputManager to BlimpDocument from BlimpCompositor. (Closed)

Created:
4 years, 2 months ago by xingliu
Modified:
4 years, 2 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move BlimpInputManager to BlimpDocument from BlimpCompositor. Previously BlimpCompositor also routes the input events, And we have the following call chain: UI->BlimpInputManager->BlimpCompositor->BlimpDocument-> BlimpDocumentManager->RenderWidgetFeature. This CL moves the ownership of BlimpInputManager to BlimpDocument, the call chain of sending input event to engine becomes: UI->BlimpInputManager->BlimpDocument->BlimpDocumentManager-> RenderWidgetFeature. BUG=644326 Committed: https://crrev.com/f899472e1c9bf5487449603df5a6584f22b8068d Cr-Commit-Position: refs/heads/master@{#424343}

Patch Set 1 #

Patch Set 2 : Removed unused mock class. #

Total comments: 11

Patch Set 3 : Fixes based on review. #

Total comments: 2

Patch Set 4 : Use c++11 ctor. #

Total comments: 2

Patch Set 5 : Removed unnecessary DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -86 lines) Patch
M blimp/client/core/compositor/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M blimp/client/core/compositor/blimp_compositor.h View 8 chunks +7 lines, -22 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor.cc View 1 2 5 chunks +5 lines, -22 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_unittest.cc View 3 chunks +0 lines, -11 lines 0 comments Download
M blimp/client/core/render_widget/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document.h View 1 2 3 4 chunks +25 lines, -4 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document.cc View 1 2 3 4 3 chunks +37 lines, -11 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/render_widget/blimp_document_manager_unittest.cc View 1 2 4 chunks +10 lines, -10 lines 0 comments Download
M blimp/client/core/render_widget/blimp_document_unittest.cc View 1 2 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (15 generated)
xingliu
Pulled out BlimpInputManager from BlimpCompositor. Please help take a look, thanks.
4 years, 2 months ago (2016-10-07 02:33:52 UTC) #4
Khushal
https://codereview.chromium.org/2400923002/diff/20001/blimp/client/core/compositor/blimp_compositor.cc File blimp/client/core/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/2400923002/diff/20001/blimp/client/core/compositor/blimp_compositor.cc#newcode165 blimp/client/core/compositor/blimp_compositor.cc:165: // Returns a reference to the InputHandler owned by ...
4 years, 2 months ago (2016-10-07 03:40:15 UTC) #5
David Trainor- moved to gerrit
https://codereview.chromium.org/2400923002/diff/20001/blimp/client/core/compositor/blimp_compositor.cc File blimp/client/core/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/2400923002/diff/20001/blimp/client/core/compositor/blimp_compositor.cc#newcode168 blimp/client/core/compositor/blimp_compositor.cc:168: DCHECK(host_); On 2016/10/07 03:40:15, Khushal wrote: > Don't need ...
4 years, 2 months ago (2016-10-07 07:07:08 UTC) #6
xingliu
Thanks for the review, please help to take a look. Major change: added a protected ...
4 years, 2 months ago (2016-10-10 19:00:17 UTC) #9
David Trainor- moved to gerrit
lgtm % nit and khushal's +2. Thanks! https://codereview.chromium.org/2400923002/diff/40001/blimp/client/core/render_widget/blimp_document.cc File blimp/client/core/render_widget/blimp_document.cc (right): https://codereview.chromium.org/2400923002/diff/40001/blimp/client/core/render_widget/blimp_document.cc#newcode18 blimp/client/core/render_widget/blimp_document.cc:18: BlimpDocumentManager* document_manager) ...
4 years, 2 months ago (2016-10-10 21:12:20 UTC) #12
xingliu
Thanks for the review, start to land this patch. https://codereview.chromium.org/2400923002/diff/40001/blimp/client/core/render_widget/blimp_document.cc File blimp/client/core/render_widget/blimp_document.cc (right): https://codereview.chromium.org/2400923002/diff/40001/blimp/client/core/render_widget/blimp_document.cc#newcode18 blimp/client/core/render_widget/blimp_document.cc:18: ...
4 years, 2 months ago (2016-10-10 21:48:00 UTC) #15
Khushal
https://codereview.chromium.org/2400923002/diff/60001/blimp/client/core/render_widget/blimp_document.cc File blimp/client/core/render_widget/blimp_document.cc (right): https://codereview.chromium.org/2400923002/diff/60001/blimp/client/core/render_widget/blimp_document.cc#newcode31 blimp/client/core/render_widget/blimp_document.cc:31: DCHECK(!input_manager_); You shouldn't DCHECK. The |input_manager_| has not been ...
4 years, 2 months ago (2016-10-10 21:54:54 UTC) #16
xingliu
Removed the DCHECK in the ctor. https://codereview.chromium.org/2400923002/diff/60001/blimp/client/core/render_widget/blimp_document.cc File blimp/client/core/render_widget/blimp_document.cc (right): https://codereview.chromium.org/2400923002/diff/60001/blimp/client/core/render_widget/blimp_document.cc#newcode31 blimp/client/core/render_widget/blimp_document.cc:31: DCHECK(!input_manager_); On 2016/10/10 ...
4 years, 2 months ago (2016-10-10 23:00:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2400923002/80001
4 years, 2 months ago (2016-10-11 01:02:55 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-11 02:11:29 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 02:19:04 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f899472e1c9bf5487449603df5a6584f22b8068d
Cr-Commit-Position: refs/heads/master@{#424343}

Powered by Google App Engine
This is Rietveld 408576698