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

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

Issue 241193002: Password autofill: Check for user gesture switches to new Blink backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OVERRIDE removed test enabled Created 6 years, 8 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 | Annotate | Revision Log
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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // a time period where we may have set a new window rect which has not yet 477 // a time period where we may have set a new window rect which has not yet
478 // been processed by the browser. So we maintain a pending window rect 478 // been processed by the browser. So we maintain a pending window rect
479 // size. If JS code sets the WindowRect, and then immediately calls 479 // size. If JS code sets the WindowRect, and then immediately calls
480 // GetWindowRect() we'll use this pending window rect as the size. 480 // GetWindowRect() we'll use this pending window rect as the size.
481 void SetPendingWindowRect(const blink::WebRect& r); 481 void SetPendingWindowRect(const blink::WebRect& r);
482 482
483 // Called by OnHandleInputEvent() to notify subclasses that a key event was 483 // Called by OnHandleInputEvent() to notify subclasses that a key event was
484 // just handled. 484 // just handled.
485 virtual void DidHandleKeyEvent() {} 485 virtual void DidHandleKeyEvent() {}
486 486
487 // Called by OnHandleInputEvent() to notify subclasses that a user gesture
488 // event will be processed.
489 virtual void WillProcessUserGesture() {}
490
491 // Called by OnHandleInputEvent() to notify subclasses that a mouse event is 487 // Called by OnHandleInputEvent() to notify subclasses that a mouse event is
492 // about to be handled. 488 // about to be handled.
493 // Returns true if no further handling is needed. In that case, the event 489 // Returns true if no further handling is needed. In that case, the event
494 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 490 // won't be sent to WebKit or trigger DidHandleMouseEvent().
495 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event); 491 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event);
496 492
497 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is 493 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
498 // about to be handled. 494 // about to be handled.
499 // Returns true if no further handling is needed. In that case, the event 495 // Returns true if no further handling is needed. In that case, the event
500 // won't be sent to WebKit. 496 // won't be sent to WebKit.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 788
793 ui::MenuSourceType context_menu_source_type_; 789 ui::MenuSourceType context_menu_source_type_;
794 gfx::Point touch_editing_context_menu_location_; 790 gfx::Point touch_editing_context_menu_location_;
795 791
796 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 792 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
797 }; 793 };
798 794
799 } // namespace content 795 } // namespace content
800 796
801 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 797 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698