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

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: New implementation using isUserGestureEventType 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // a time period where we may have set a new window rect which has not yet 497 // a time period where we may have set a new window rect which has not yet
498 // been processed by the browser. So we maintain a pending window rect 498 // been processed by the browser. So we maintain a pending window rect
499 // size. If JS code sets the WindowRect, and then immediately calls 499 // size. If JS code sets the WindowRect, and then immediately calls
500 // GetWindowRect() we'll use this pending window rect as the size. 500 // GetWindowRect() we'll use this pending window rect as the size.
501 void SetPendingWindowRect(const blink::WebRect& r); 501 void SetPendingWindowRect(const blink::WebRect& r);
502 502
503 // Called by OnHandleInputEvent() to notify subclasses that a key event was 503 // Called by OnHandleInputEvent() to notify subclasses that a key event was
504 // just handled. 504 // just handled.
505 virtual void DidHandleKeyEvent() {} 505 virtual void DidHandleKeyEvent() {}
506 506
507 // Called by OnHandleInputEvent() to notify subclasses that a user gesture
508 // event is being processed.
509 virtual void ProcessingUserGestureEvent() {}
510
507 // Called by OnHandleInputEvent() to notify subclasses that a mouse event is 511 // Called by OnHandleInputEvent() to notify subclasses that a mouse event is
508 // about to be handled. 512 // about to be handled.
509 // Returns true if no further handling is needed. In that case, the event 513 // Returns true if no further handling is needed. In that case, the event
510 // won't be sent to WebKit or trigger DidHandleMouseEvent(). 514 // won't be sent to WebKit or trigger DidHandleMouseEvent().
511 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event); 515 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event);
512 516
513 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is 517 // Called by OnHandleInputEvent() to notify subclasses that a gesture event is
514 // about to be handled. 518 // about to be handled.
515 // Returns true if no further handling is needed. In that case, the event 519 // Returns true if no further handling is needed. In that case, the event
516 // won't be sent to WebKit. 520 // won't be sent to WebKit.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 790
787 ui::MenuSourceType context_menu_source_type_; 791 ui::MenuSourceType context_menu_source_type_;
788 gfx::Point touch_editing_context_menu_location_; 792 gfx::Point touch_editing_context_menu_location_;
789 793
790 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 794 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
791 }; 795 };
792 796
793 } // namespace content 797 } // namespace content
794 798
795 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 799 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698