OLD | NEW |
---|---|
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 Loading... | |
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. | |
jamesr
2014/02/20 16:32:38
s/is being processed/will be processed/
vabr (Chromium)
2014/02/20 16:43:20
Done.
| |
505 virtual void WillProcessUserGesture() {} | |
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 Loading... | |
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_ |
OLD | NEW |