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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 2551493002: Don't request wheel or touch events when the view of pepper has no area. (Closed)
Patch Set: Rename method 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 626
627 // Update any transforms that should be applied to the texture layer. 627 // Update any transforms that should be applied to the texture layer.
628 void UpdateLayerTransform(); 628 void UpdateLayerTransform();
629 629
630 // Determines if we think the plugin has focus, both content area and webkit 630 // Determines if we think the plugin has focus, both content area and webkit
631 // (see has_webkit_focus_ below). 631 // (see has_webkit_focus_ below).
632 bool PluginHasFocus() const; 632 bool PluginHasFocus() const;
633 void SendFocusChangeNotification(); 633 void SendFocusChangeNotification();
634 634
635 void UpdateTouchEventRequest(); 635 void UpdateTouchEventRequest();
636 636 void UpdateWheelEventRequest();
637 // Returns true if the plugin has registered to accept wheel events.
638 bool IsAcceptingWheelEvents() const;
639 637
640 void ScheduleAsyncDidChangeView(); 638 void ScheduleAsyncDidChangeView();
641 void SendAsyncDidChangeView(); 639 void SendAsyncDidChangeView();
642 void SendDidChangeView(); 640 void SendDidChangeView();
643 641
644 // Reports the current plugin geometry to the plugin by calling 642 // Reports the current plugin geometry to the plugin by calling
645 // DidChangeView. 643 // DidChangeView.
646 void ReportGeometry(); 644 void ReportGeometry();
647 645
648 // Queries the plugin for supported print formats and sets |format| to the 646 // Queries the plugin for supported print formats and sets |format| to the
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // view change events. 987 // view change events.
990 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 988 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
991 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 989 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
992 990
993 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 991 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
994 }; 992 };
995 993
996 } // namespace content 994 } // namespace content
997 995
998 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 996 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698