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 2852823002: Rename KeyLock to KeyboardLock and return enum from IPC (Closed)

Created:
3 years, 7 months ago by Hzj_jie
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, haraken, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename KeyLock to KeyboardLock and return enum from IPC This change addresses one remaining work in change https://codereview.chromium.org/2805763004/ to modify the return value of RequestKeyLock() mojom interface from (bool, string) to an enumeration. Meanwhile, after discussing with Gary (GaryKac@), we would prefer to keep "Keyboard" as part of the function name. So all "KeyLock"s are changed to "KeyboardLock". BUG=680809 Review-Url: https://codereview.chromium.org/2852823002 Cr-Commit-Position: refs/heads/master@{#468791} Committed: https://chromium.googlesource.com/chromium/src/+/b67deca63eb94ec8e8fef981b0581d35ed7341fe

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove KeyboardLockRequestResult::FAILURE; it is not used by Chrome. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -120 lines) Patch
M content/browser/keyboard_lock/keyboard_lock_service_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/keyboard_lock/keyboard_lock_service_impl.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/W3CImportExpectations View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/idlharness.https.html View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/idlharness.https-expected.txt View 1 chunk +5 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-cancelKeyLock.https.html View 1 chunk +0 lines, -12 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-cancelKeyboardLock.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock-two-parallel-requests.https.html View 1 chunk +0 lines, -15 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock-two-sequential-requests.https.html View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyLock.https.html View 1 chunk +0 lines, -13 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock-two-parallel-requests.https.html View 1 chunk +4 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock-two-sequential-requests.https.html View 1 chunk +3 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/keyboard-lock/navigator-requestKeyboardLock.https.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.h View 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.cpp View 4 chunks +14 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/keyboard_lock/NavigatorKeyboardLock.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom View 1 1 chunk +9 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
Hzj_jie
This is a follow up change to address several of unresolved comments in https://codereview.chromium.org/2805763004/. As ...
3 years, 7 months ago (2017-05-01 17:53:23 UTC) #12
Avi (use Gerrit)
lgtm stamp
3 years, 7 months ago (2017-05-01 18:06:48 UTC) #13
whywhat
lgtm do you intend to throw an exception with a different message based on the ...
3 years, 7 months ago (2017-05-02 02:02:27 UTC) #14
haraken
WebKit LGTM
3 years, 7 months ago (2017-05-02 04:39:59 UTC) #15
Hzj_jie
On 2017/05/02 02:02:27, whywhat wrote: > lgtm > > do you intend to throw an ...
3 years, 7 months ago (2017-05-02 04:45:15 UTC) #16
dcheng
lgtm https://codereview.chromium.org/2852823002/diff/20001/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom File third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom (right): https://codereview.chromium.org/2852823002/diff/20001/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom#newcode9 third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom:9: FAILURE = 1, // Chrome never returns a ...
3 years, 7 months ago (2017-05-02 07:38:16 UTC) #17
Hzj_jie
https://codereview.chromium.org/2852823002/diff/20001/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom File third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom (right): https://codereview.chromium.org/2852823002/diff/20001/third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom#newcode9 third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom:9: FAILURE = 1, // Chrome never returns a failure. ...
3 years, 7 months ago (2017-05-02 22:12:08 UTC) #22
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/2852823002/40001
3 years, 7 months ago (2017-05-02 22:12:56 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 22:18:56 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b67deca63eb94ec8e8fef981b058...

Powered by Google App Engine
This is Rietveld 408576698