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

Issue 164913004: Chromium plumbing for Screen Orientation API orientationchange events. (Closed)

Created:
6 years, 10 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Peter Beverloo, Inactive, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Chromium plumbing for Screen Orientation API orientationchange events. This is using RenderViewObserver::OrientationChangeEvent and dispatch the information down to the renderer. More will come with locking and unlocking abilities. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253029

Patch Set 1 #

Patch Set 2 : updated #

Total comments: 14

Patch Set 3 : #

Total comments: 2

Patch Set 4 : cdn comments #

Patch Set 5 : make chromium-style checks happy #

Total comments: 4

Patch Set 6 : update for BrowserMessageFilter changes #

Patch Set 7 : rebase #

Patch Set 8 : use RenderThread, not RenderThreadImpl #

Patch Set 9 : with tests #

Patch Set 10 : use enum + android backend #

Total comments: 10

Patch Set 11 : apply nits #

Patch Set 12 : #

Patch Set 13 : error 500 #

Patch Set 14 : error 500 #

Patch Set 15 : error 500 #

Patch Set 16 : error 500 #

Patch Set 17 : ditto #

Patch Set 18 : error 500 #

Patch Set 19 : five hundred #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -4 lines) Patch
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +31 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +12 lines, -1 line 0 comments Download
A content/browser/screen_orientation/screen_orientation_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/common/screen_orientation_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -3 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +13 lines, -0 lines 0 comments Download
A content/renderer/screen_orientation/screen_orientation_dispatcher.h View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A content/renderer/screen_orientation/screen_orientation_dispatcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +45 lines, -0 lines 0 comments Download
A content/renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +111 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
mlamouri (slow - plz ping)
This patch is the Chromium plumbing on top of the current implementation in Blink. In ...
6 years, 10 months ago (2014-02-20 14:56:48 UTC) #1
mlamouri (slow - plz ping)
6 years, 10 months ago (2014-02-20 14:58:46 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/164913004/diff/30001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/164913004/diff/30001/content/browser/renderer_host/render_process_host_impl.h#newcode174 content/browser/renderer_host/render_process_host_impl.h:174: screen_orientation_dispatcher_host() const; nit. inline the body here https://codereview.chromium.org/164913004/diff/30001/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc File ...
6 years, 10 months ago (2014-02-20 16:11:03 UTC) #3
mlamouri (slow - plz ping)
Thanks for the quick review. I applied the comments. PTAL. https://codereview.chromium.org/164913004/diff/30001/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc File content/browser/screen_orientation/screen_orientation_dispatcher_host.cc (right): https://codereview.chromium.org/164913004/diff/30001/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc#newcode18 ...
6 years, 10 months ago (2014-02-20 16:32:46 UTC) #4
mlamouri (slow - plz ping)
cdn@chromium.org: Please review changes in - content/common/screen_orientation_messages.h - ipc/ipc_message_start.h
6 years, 10 months ago (2014-02-20 16:33:21 UTC) #5
mlamouri (slow - plz ping)
https://codereview.chromium.org/164913004/diff/30001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/164913004/diff/30001/content/browser/renderer_host/render_process_host_impl.h#newcode174 content/browser/renderer_host/render_process_host_impl.h:174: screen_orientation_dispatcher_host() const; On 2014/02/20 16:11:04, jochen wrote: > nit. ...
6 years, 10 months ago (2014-02-20 16:49:14 UTC) #6
mlamouri (slow - plz ping)
-abarth -ch.dumez as reviewers +abart +ch.dumez in CC Please, feel free to jump in if ...
6 years, 10 months ago (2014-02-20 16:50:22 UTC) #7
Cris Neckar
https://codereview.chromium.org/164913004/diff/130001/content/renderer/screen_orientation/screen_orientation_dispatcher.cc File content/renderer/screen_orientation/screen_orientation_dispatcher.cc (right): https://codereview.chromium.org/164913004/diff/130001/content/renderer/screen_orientation/screen_orientation_dispatcher.cc#newcode54 content/renderer/screen_orientation/screen_orientation_dispatcher.cc:54: NOTREACHED(); We prefer that you not handle failures when ...
6 years, 10 months ago (2014-02-20 18:47:45 UTC) #8
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/164913004/diff/130001/content/renderer/screen_orientation/screen_orientation_dispatcher.cc File content/renderer/screen_orientation/screen_orientation_dispatcher.cc (right): https://codereview.chromium.org/164913004/diff/130001/content/renderer/screen_orientation/screen_orientation_dispatcher.cc#newcode54 content/renderer/screen_orientation/screen_orientation_dispatcher.cc:54: NOTREACHED(); On 2014/02/20 18:47:45, Cris Neckar ...
6 years, 10 months ago (2014-02-20 19:01:11 UTC) #9
Cris Neckar
On 2014/02/20 19:01:11, Mounir Lamouri wrote: > Comments applied. PTAL. > > https://codereview.chromium.org/164913004/diff/130001/content/renderer/screen_orientation/screen_orientation_dispatcher.cc > File ...
6 years, 10 months ago (2014-02-20 19:55:01 UTC) #10
mlamouri (slow - plz ping)
It's interesting that my Android build did not caught those issue with the dtor being ...
6 years, 10 months ago (2014-02-20 20:13:51 UTC) #11
ostap
https://codereview.chromium.org/164913004/diff/260001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/164913004/diff/260001/content/browser/renderer_host/render_process_host_impl.h#newcode174 content/browser/renderer_host/render_process_host_impl.h:174: screen_orientation_dispatcher_host() const; Don't really understand how this should work. ...
6 years, 10 months ago (2014-02-20 20:51:12 UTC) #12
mlamouri (slow - plz ping)
https://codereview.chromium.org/164913004/diff/260001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): https://codereview.chromium.org/164913004/diff/260001/content/browser/renderer_host/render_process_host_impl.h#newcode174 content/browser/renderer_host/render_process_host_impl.h:174: screen_orientation_dispatcher_host() const; On 2014/02/20 20:51:12, ostap wrote: > Don't ...
6 years, 10 months ago (2014-02-20 21:07:04 UTC) #13
jochen (gone - plz use gerrit)
Can you include the android changes in this CL? Also, can you use enum values ...
6 years, 10 months ago (2014-02-24 11:53:19 UTC) #14
mlamouri (slow - plz ping)
On 2014/02/24 11:53:19, jochen wrote: > Can you include the android changes in this CL? ...
6 years, 10 months ago (2014-02-24 13:58:54 UTC) #15
jochen (gone - plz use gerrit)
lgtm with nits https://codereview.chromium.org/164913004/diff/680001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/164913004/diff/680001/content/browser/android/content_view_core_impl.cc#newcode1804 content/browser/android/content_view_core_impl.cc:1804: break; default: NOTREACHED()? https://codereview.chromium.org/164913004/diff/680001/content/common/screen_orientation_messages.h File content/common/screen_orientation_messages.h ...
6 years, 10 months ago (2014-02-24 14:08:26 UTC) #16
mlamouri (slow - plz ping)
https://codereview.chromium.org/164913004/diff/680001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/164913004/diff/680001/content/browser/android/content_view_core_impl.cc#newcode1804 content/browser/android/content_view_core_impl.cc:1804: break; On 2014/02/24 14:08:26, jochen wrote: > default: NOTREACHED()? ...
6 years, 10 months ago (2014-02-24 14:20:20 UTC) #17
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 10 months ago (2014-02-24 14:42:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/164913004/750001
6 years, 10 months ago (2014-02-24 14:43:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/164913004/750001
6 years, 10 months ago (2014-02-24 20:18:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/164913004/750001
6 years, 10 months ago (2014-02-24 21:01:59 UTC) #21
commit-bot: I haz the power
Change committed as 253029
6 years, 10 months ago (2014-02-24 23:39:04 UTC) #22
acleung1
6 years, 10 months ago (2014-02-25 04:01:45 UTC) #23
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/177293003/ by acleung@chromium.org.

The reason for reverting is: SEE:
https://code.google.com/p/chromium/issues/detail?id=346595.

Powered by Google App Engine
This is Rietveld 408576698