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

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

Issue 163843002: Fix check for user gesture on password autofill (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename ProcessingUserGestureEvent to NotifyAboutUserGesture Created 6 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 | 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 // a time period where we may have set a new window rect which has not yet 493 // a time period where we may have set a new window rect which has not yet
494 // been processed by the browser. So we maintain a pending window rect 494 // been processed by the browser. So we maintain a pending window rect
495 // size. If JS code sets the WindowRect, and then immediately calls 495 // size. If JS code sets the WindowRect, and then immediately calls
496 // GetWindowRect() we'll use this pending window rect as the size. 496 // GetWindowRect() we'll use this pending window rect as the size.
497 void SetPendingWindowRect(const blink::WebRect& r); 497 void SetPendingWindowRect(const blink::WebRect& r);
498 498
499 // Called by OnHandleInputEvent() to notify subclasses that a key event was 499 // Called by OnHandleInputEvent() to notify subclasses that a key event was
500 // just handled. 500 // just handled.
501 virtual void DidHandleKeyEvent() {} 501 virtual void DidHandleKeyEvent() {}
502 502
503 // Called by OnHandleInputEvent() to notify subclasses that a user gesture
504 // event is being processed.
505 virtual void NotifyAboutUserGesture() {}
506
503 // Called by OnHandleInputEvent() to notify subclasses that a mouse event is 507 // Called by OnHandleInputEvent() to notify subclasses that a mouse event is
504 // about to be handled. 508 // about to be handled.
505 // Returns true if no further handling is needed. In that case, the event 509 // Returns true if no further handling is needed. In that case, the event
506 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 510 // won't be sent to WebKit or trigger DidHandleMouseEvent().
507 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event); 511 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event);
508 512
509 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is 513 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
510 // about to be handled. 514 // about to be handled.
511 // Returns true if no further handling is needed. In that case, the event 515 // Returns true if no further handling is needed. In that case, the event
512 // won't be sent to WebKit. 516 // won't be sent to WebKit.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 786
783 ui::MenuSourceType context_menu_source_type_; 787 ui::MenuSourceType context_menu_source_type_;
784 gfx::Point touch_editing_context_menu_location_; 788 gfx::Point touch_editing_context_menu_location_;
785 789
786 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 790 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
787 }; 791 };
788 792
789 } // namespace content 793 } // namespace content
790 794
791 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 795 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698