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

Side by Side Diff: content/renderer/render_widget.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 7 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.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_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is 554 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
555 // about to be handled. 555 // about to be handled.
556 // Returns true if no further handling is needed. In that case, the event 556 // Returns true if no further handling is needed. In that case, the event
557 // won't be sent to WebKit. 557 // won't be sent to WebKit.
558 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event); 558 virtual bool WillHandleGestureEvent(const blink::WebGestureEvent& event);
559 559
560 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was 560 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
561 // just handled. 561 // just handled.
562 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} 562 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {}
563 563
564 // Called by OnHandleInputEvent() to notify subclasses that a touch event was
565 // just handled.
566 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {}
567
568 // Called by OnHandleInputEvent() to forward a mouse wheel event to the 564 // Called by OnHandleInputEvent() to forward a mouse wheel event to the
569 // compositor thread, to effect the elastic overscroll effect. 565 // compositor thread, to effect the elastic overscroll effect.
570 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event, 566 void ObserveWheelEventAndResult(const blink::WebMouseWheelEvent& wheel_event,
571 bool event_processed); 567 bool event_processed);
572 568
573 // Check whether the WebWidget has any touch event handlers registered 569 // Check whether the WebWidget has any touch event handlers registered
574 // at the given point. 570 // at the given point.
575 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const; 571 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const;
576 572
577 // Check whether the WebWidget has any touch event handlers registered. 573 // Check whether the WebWidget has any touch event handlers registered.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 ui::MenuSourceType context_menu_source_type_; 805 ui::MenuSourceType context_menu_source_type_;
810 bool has_host_context_menu_location_; 806 bool has_host_context_menu_location_;
811 gfx::Point host_context_menu_location_; 807 gfx::Point host_context_menu_location_;
812 808
813 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 809 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
814 }; 810 };
815 811
816 } // namespace content 812 } // namespace content
817 813
818 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 814 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698