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

Side by Side Diff: content/shell/renderer/test_runner/test_plugin.cc

Issue 729533003: Remove GestureScrollUpdateWithoutPropagation event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove hard count from the test Created 6 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 unified diff | Download patch
« no previous file with comments | « content/shell/renderer/test_runner/event_sender.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/test_runner/test_plugin.h" 5 #include "content/shell/renderer/test_runner/test_plugin.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 case blink::WebInputEvent::Char: 613 case blink::WebInputEvent::Char:
614 event_name = "Char"; 614 event_name = "Char";
615 break; 615 break;
616 616
617 case blink::WebInputEvent::GestureScrollBegin: 617 case blink::WebInputEvent::GestureScrollBegin:
618 event_name = "GestureScrollBegin"; 618 event_name = "GestureScrollBegin";
619 break; 619 break;
620 case blink::WebInputEvent::GestureScrollEnd: 620 case blink::WebInputEvent::GestureScrollEnd:
621 event_name = "GestureScrollEnd"; 621 event_name = "GestureScrollEnd";
622 break; 622 break;
623 case blink::WebInputEvent::GestureScrollUpdateWithoutPropagation:
624 case blink::WebInputEvent::GestureScrollUpdate: 623 case blink::WebInputEvent::GestureScrollUpdate:
625 event_name = "GestureScrollUpdate"; 624 event_name = "GestureScrollUpdate";
626 break; 625 break;
627 case blink::WebInputEvent::GestureFlingStart: 626 case blink::WebInputEvent::GestureFlingStart:
628 event_name = "GestureFlingStart"; 627 event_name = "GestureFlingStart";
629 break; 628 break;
630 case blink::WebInputEvent::GestureFlingCancel: 629 case blink::WebInputEvent::GestureFlingCancel:
631 event_name = "GestureFlingCancel"; 630 event_name = "GestureFlingCancel";
632 break; 631 break;
633 case blink::WebInputEvent::GestureTap: 632 case blink::WebInputEvent::GestureTap:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 break; 671 break;
673 case blink::WebInputEvent::TouchMove: 672 case blink::WebInputEvent::TouchMove:
674 event_name = "TouchMove"; 673 event_name = "TouchMove";
675 break; 674 break;
676 case blink::WebInputEvent::TouchEnd: 675 case blink::WebInputEvent::TouchEnd:
677 event_name = "TouchEnd"; 676 event_name = "TouchEnd";
678 break; 677 break;
679 case blink::WebInputEvent::TouchCancel: 678 case blink::WebInputEvent::TouchCancel:
680 event_name = "TouchCancel"; 679 event_name = "TouchCancel";
681 break; 680 break;
681 default:
682 NOTREACHED() << "Received unexpected event type: " << event.type;
683 event_name = "unknown";
684 break;
682 } 685 }
683 686
684 delegate_->PrintMessage(std::string("Plugin received event: ") + 687 delegate_->PrintMessage(std::string("Plugin received event: ") +
685 (event_name ? event_name : "unknown") + "\n"); 688 (event_name ? event_name : "unknown") + "\n");
686 if (print_event_details_) 689 if (print_event_details_)
687 PrintEventDetails(delegate_, event); 690 PrintEventDetails(delegate_, event);
688 if (print_user_gesture_status_) 691 if (print_user_gesture_status_)
689 delegate_->PrintMessage( 692 delegate_->PrintMessage(
690 std::string("* ") + 693 std::string("* ") +
691 (blink::WebUserGestureIndicator::isProcessingUserGesture() ? "" 694 (blink::WebUserGestureIndicator::isProcessingUserGesture() ? ""
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 return kPluginPersistsMimeType; 755 return kPluginPersistsMimeType;
753 } 756 }
754 757
755 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { 758 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) {
756 return mime_type == TestPlugin::MimeType() || 759 return mime_type == TestPlugin::MimeType() ||
757 mime_type == PluginPersistsMimeType() || 760 mime_type == PluginPersistsMimeType() ||
758 mime_type == CanCreateWithoutRendererMimeType(); 761 mime_type == CanCreateWithoutRendererMimeType();
759 } 762 }
760 763
761 } // namespace content 764 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/event_sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698