Index: content/renderer/blink_input_events_type_converters.cc |
diff --git a/components/html_viewer/blink_input_events_type_converters.cc b/content/renderer/blink_input_events_type_converters.cc |
similarity index 97% |
copy from components/html_viewer/blink_input_events_type_converters.cc |
copy to content/renderer/blink_input_events_type_converters.cc |
index 5b36a77946ec21d81db0e8435c355534adec59b5..1b606e7c67625cbe5fd60c2aca3adc52074ae737 100644 |
--- a/components/html_viewer/blink_input_events_type_converters.cc |
+++ b/content/renderer/blink_input_events_type_converters.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "components/html_viewer/blink_input_events_type_converters.h" |
+#include "content/renderer/blink_input_events_type_converters.h" |
#include "base/logging.h" |
#include "base/time/time.h" |
@@ -117,8 +117,9 @@ scoped_ptr<blink::WebInputEvent> BuildWebKeyboardEvent( |
switch (event->action) { |
case mus::mojom::EVENT_TYPE_KEY_PRESSED: |
- web_event->type = event->key_data->is_char ? blink::WebInputEvent::Char : |
- blink::WebInputEvent::RawKeyDown; |
+ web_event->type = event->key_data->is_char |
+ ? blink::WebInputEvent::Char |
+ : blink::WebInputEvent::RawKeyDown; |
break; |
case mus::mojom::EVENT_TYPE_KEY_RELEASED: |
web_event->type = blink::WebInputEvent::KeyUp; |
@@ -204,7 +205,7 @@ TypeConverter<scoped_ptr<blink::WebInputEvent>, mus::mojom::EventPtr>::Convert( |
if (event->pointer_data && |
event->pointer_data->kind == mus::mojom::POINTER_KIND_MOUSE) { |
return BuildWebMouseEventFrom(event); |
- } |
+ } |
sadrul
2015/12/02 18:20:57
Oh, we should probably return a nullptr here, inst
Fady Samuel
2015/12/02 21:30:28
Done.
|
case mus::mojom::EVENT_TYPE_WHEEL: |
return BuildWebMouseWheelEventFrom(event); |
case mus::mojom::EVENT_TYPE_KEY_PRESSED: |