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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/web_view/web_view_guest.cc
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc
index 97e34148d84d118fb116692c5be450faeb05e3fe..58c579f960608b8598f834d8cb28e58b875bf994 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.cc
+++ b/extensions/browser/guest_view/web_view/web_view_guest.cc
@@ -1062,13 +1062,13 @@ bool WebViewGuest::HandleKeyboardShortcuts(
return false;
}
- if (event.type != blink::WebInputEvent::RawKeyDown)
+ if (event.type() != blink::WebInputEvent::RawKeyDown)
return false;
// If the user hits the escape key without any modifiers then unlock the
// mouse if necessary.
if ((event.windowsKeyCode == ui::VKEY_ESCAPE) &&
- !(event.modifiers & blink::WebInputEvent::InputModifiers)) {
+ !(event.modifiers() & blink::WebInputEvent::InputModifiers)) {
return web_contents()->GotResponseToLockMouseRequest(false);
}

Powered by Google App Engine
This is Rietveld 408576698