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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 blink::WebPopupType popup_type, | 796 blink::WebPopupType popup_type, |
797 int32_t* routing_id); | 797 int32_t* routing_id); |
798 | 798 |
799 // A variant of Send but is fatal if it fails. The browser may | 799 // A variant of Send but is fatal if it fails. The browser may |
800 // be waiting for this IPC Message and if the send fails the browser will | 800 // be waiting for this IPC Message and if the send fails the browser will |
801 // be left in a state waiting for something that never comes. And if it | 801 // be left in a state waiting for something that never comes. And if it |
802 // never comes then it may later determine this is a hung renderer; so | 802 // never comes then it may later determine this is a hung renderer; so |
803 // instead fail right away. | 803 // instead fail right away. |
804 void SendOrCrash(IPC::Message* msg); | 804 void SendOrCrash(IPC::Message* msg); |
805 | 805 |
| 806 // Determines whether or not RenderWidget should process IME events from the |
| 807 // browser. It always returns true unless there is no WebFrameWidget to |
| 808 // handle the event, or there is no page focus. |
| 809 bool ShouldHandleImeEvents() const; |
| 810 |
806 // Indicates whether this widget has focus. | 811 // Indicates whether this widget has focus. |
807 bool has_focus_; | 812 bool has_focus_; |
808 | 813 |
809 // A callback into the creator/opener of this widget, to be executed when | 814 // A callback into the creator/opener of this widget, to be executed when |
810 // WebWidgetClient::show() occurs. | 815 // WebWidgetClient::show() occurs. |
811 ShowCallback show_callback_; | 816 ShowCallback show_callback_; |
812 | 817 |
813 #if defined(OS_MACOSX) | 818 #if defined(OS_MACOSX) |
814 // Responds to IPCs from TextInputClientMac regarding getting string at given | 819 // Responds to IPCs from TextInputClientMac regarding getting string at given |
815 // position or range as well as finding character index at a given position. | 820 // position or range as well as finding character index at a given position. |
(...skipping 12 matching lines...) Expand all Loading... |
828 // being handled. If the current event results in starting a drag/drop | 833 // being handled. If the current event results in starting a drag/drop |
829 // session, this info is sent to the browser along with other drag/drop info. | 834 // session, this info is sent to the browser along with other drag/drop info. |
830 DragEventSourceInfo possible_drag_event_info_; | 835 DragEventSourceInfo possible_drag_event_info_; |
831 | 836 |
832 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 837 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
833 }; | 838 }; |
834 | 839 |
835 } // namespace content | 840 } // namespace content |
836 | 841 |
837 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 842 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |