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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 954973003: Always forward touch events to the TouchEventQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More validation Created 5 years, 10 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 unified diff | Download patch
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 } 373 }
374 374
375 bool input_method_active() const { 375 bool input_method_active() const {
376 return input_method_active_; 376 return input_method_active_;
377 } 377 }
378 378
379 // Whether forwarded WebInputEvents should be ignored. True if either 379 // Whether forwarded WebInputEvents should be ignored. True if either
380 // |ignore_input_events_| or |process_->IgnoreInputEvents()| is true. 380 // |ignore_input_events_| or |process_->IgnoreInputEvents()| is true.
381 bool IgnoreInputEvents() const; 381 bool IgnoreInputEvents() const;
382 382
383 // Event queries delegated to the |input_router_|.
384 bool ShouldForwardTouchEvent() const;
385
386 bool has_touch_handler() const { return has_touch_handler_; } 383 bool has_touch_handler() const { return has_touch_handler_; }
387 384
388 // Notification that the user has made some kind of input that could 385 // Notification that the user has made some kind of input that could
389 // perform an action. See OnUserGesture for more details. 386 // perform an action. See OnUserGesture for more details.
390 void StartUserGesture(); 387 void StartUserGesture();
391 388
392 // Set the RenderView background transparency. 389 // Set the RenderView background transparency.
393 void SetBackgroundOpaque(bool opaque); 390 void SetBackgroundOpaque(bool opaque);
394 391
395 // Notifies the renderer that the next key event is bound to one or more 392 // Notifies the renderer that the next key event is bound to one or more
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 bool is_focused_; 857 bool is_focused_;
861 858
862 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 859 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
863 860
864 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 861 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
865 }; 862 };
866 863
867 } // namespace content 864 } // namespace content
868 865
869 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 866 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698