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

Unified Diff: content/child/npapi/webplugin_delegate_impl_win.cc

Issue 1294003002: clang/win: Enable -Wswitch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 5 years, 4 months 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
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/webplugin_delegate_impl_win.cc
diff --git a/content/child/npapi/webplugin_delegate_impl_win.cc b/content/child/npapi/webplugin_delegate_impl_win.cc
index 7a8ae8e3475cf4a0d4104169f1ce393a6c6e59a8..d64af01c4fdb989cbb2ff0049d7983a3bedfeae9 100644
--- a/content/child/npapi/webplugin_delegate_impl_win.cc
+++ b/content/child/npapi/webplugin_delegate_impl_win.cc
@@ -1092,8 +1092,8 @@ bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) {
static bool NPEventFromWebMouseEvent(const WebMouseEvent& event,
NPEvent* np_event) {
- np_event->lParam = static_cast<uint32>(MAKELPARAM(event.windowX,
- event.windowY));
+ np_event->lParam =
+ static_cast<uint32>(MAKELPARAM(event.windowX, event.windowY));
np_event->wParam = 0;
if (event.modifiers & WebInputEvent::ControlKey)
@@ -1124,6 +1124,8 @@ static bool NPEventFromWebMouseEvent(const WebMouseEvent& event,
case WebMouseEvent::ButtonRight:
np_event->event = WM_RBUTTONDOWN;
break;
+ case WebMouseEvent::ButtonNone:
+ break;
}
return true;
case WebInputEvent::MouseUp:
@@ -1137,6 +1139,8 @@ static bool NPEventFromWebMouseEvent(const WebMouseEvent& event,
case WebMouseEvent::ButtonRight:
np_event->event = WM_RBUTTONUP;
break;
+ case WebMouseEvent::ButtonNone:
+ break;
}
return true;
default:
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698