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

Issue 315693002: Use WebViewClient instead of BlinkPlatform for screen lock. (Closed)

Created:
6 years, 6 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 6 months ago
Reviewers:
Inactive, eseidel
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium, dcheng
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use WebViewClient instead of BlinkPlatform for screen lock. Using BlinkPlatform hides the WebView that requested the lock, making it very hard to have a clever handling of screen lock on the browser side given that it's unknown whom and when requested the lock. It will also allow locking the appropriate screen in a multi-screen scenario. BUG=162827 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175472

Patch Set 1 #

Total comments: 14

Patch Set 2 : review comments #

Total comments: 2

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -28 lines) Patch
M Source/modules/screen_orientation/ScreenOrientation.h View 2 chunks +2 lines, -0 lines 1 comment Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 2 5 chunks +17 lines, -6 lines 2 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.h View 1 chunk +16 lines, -6 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 5 chunks +37 lines, -12 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M public/platform/Platform.h View 1 chunk +1 line, -1 line 0 comments Download
A public/platform/WebScreenOrientationClient.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
M public/web/WebViewClient.h View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mlamouri (slow - plz ping)
Chris, could you take a look at this? Thanks :)
6 years, 6 months ago (2014-06-03 17:35:39 UTC) #1
Inactive
On 2014/06/03 17:35:39, Mounir Lamouri wrote: > Chris, could you take a look at this? ...
6 years, 6 months ago (2014-06-03 17:41:59 UTC) #2
mlamouri (slow - plz ping)
On 2014/06/03 17:41:59, Chris Dumez wrote: > On 2014/06/03 17:35:39, Mounir Lamouri wrote: > > ...
6 years, 6 months ago (2014-06-03 17:43:33 UTC) #3
Inactive
https://codereview.chromium.org/315693002/diff/1/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/315693002/diff/1/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode106 Source/modules/screen_orientation/ScreenOrientation.cpp:106: ASSERT(document()->page()); This seems unsafe. We should probably return 0 ...
6 years, 6 months ago (2014-06-03 18:04:52 UTC) #4
mlamouri (slow - plz ping)
Review comments applied. PTAL :) https://codereview.chromium.org/315693002/diff/1/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/315693002/diff/1/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode106 Source/modules/screen_orientation/ScreenOrientation.cpp:106: ASSERT(document()->page()); On 2014/06/03 18:04:53, ...
6 years, 6 months ago (2014-06-03 19:49:30 UTC) #5
Inactive
https://codereview.chromium.org/315693002/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/315693002/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode128 Source/modules/screen_orientation/ScreenOrientation.cpp:128: if (!screenOrientation.document()) { This check needs to be updated ...
6 years, 6 months ago (2014-06-03 20:04:40 UTC) #6
mlamouri (slow - plz ping)
https://codereview.chromium.org/315693002/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/315693002/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode128 Source/modules/screen_orientation/ScreenOrientation.cpp:128: if (!screenOrientation.document()) { On 2014/06/03 20:04:40, Chris Dumez wrote: ...
6 years, 6 months ago (2014-06-03 20:07:49 UTC) #7
Inactive
lgtm for screen_orientation/ but you'll need OWNERS for other folders.
6 years, 6 months ago (2014-06-03 20:38:32 UTC) #8
mlamouri (slow - plz ping)
6 years, 6 months ago (2014-06-03 20:55:15 UTC) #9
eseidel
daniel cheng is probably the right reviewer. https://codereview.chromium.org/315693002/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/315693002/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode132 Source/modules/screen_orientation/ScreenOrientation.cpp:132: ScreenOrientationController& controller ...
6 years, 6 months ago (2014-06-03 20:57:50 UTC) #10
dcheng
https://codereview.chromium.org/315693002/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/315693002/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode132 Source/modules/screen_orientation/ScreenOrientation.cpp:132: ScreenOrientationController& controller = ScreenOrientationController::from(*screenOrientation.page()); On 2014/06/03 20:57:49, eseidel wrote: ...
6 years, 6 months ago (2014-06-03 21:02:04 UTC) #11
eseidel
lgtm So this is moving things from being a detail of how the platform is ...
6 years, 6 months ago (2014-06-03 21:06:51 UTC) #12
mlamouri (slow - plz ping)
On 2014/06/03 21:06:51, eseidel wrote: > lgtm > > So this is moving things from ...
6 years, 6 months ago (2014-06-03 21:22:37 UTC) #13
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 6 months ago (2014-06-03 21:23:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/315693002/40001
6 years, 6 months ago (2014-06-03 21:23:53 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-03 23:16:25 UTC) #16
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 6 months ago (2014-06-04 10:33:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/315693002/40001
6 years, 6 months ago (2014-06-04 10:34:19 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 10:34:50 UTC) #19
Message was sent while issue was closed.
Change committed as 175472

Powered by Google App Engine
This is Rietveld 408576698