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

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

Issue 2499623002: Make PostTask and Send failures in input routing fatal. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « content/renderer/input/input_event_filter.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 private: 805 private:
806 // Applies/Removes the DevTools device emulation transformation to/from a 806 // Applies/Removes the DevTools device emulation transformation to/from a
807 // window rect. 807 // window rect.
808 void ScreenRectToEmulatedIfNeeded(blink::WebRect* window_rect) const; 808 void ScreenRectToEmulatedIfNeeded(blink::WebRect* window_rect) const;
809 void EmulatedToScreenRectIfNeeded(blink::WebRect* window_rect) const; 809 void EmulatedToScreenRectIfNeeded(blink::WebRect* window_rect) const;
810 810
811 bool CreateWidget(int32_t opener_id, 811 bool CreateWidget(int32_t opener_id,
812 blink::WebPopupType popup_type, 812 blink::WebPopupType popup_type,
813 int32_t* routing_id); 813 int32_t* routing_id);
814 814
815 // A variant of Send but is fatal if it fails.
Charlie Reis 2016/11/11 18:01:52 Please expand a bit in the comment to say why this
816 void SendOrCrash(IPC::Message* msg);
817
815 // Indicates whether this widget has focus. 818 // Indicates whether this widget has focus.
816 bool has_focus_; 819 bool has_focus_;
817 820
818 #if defined(OS_MACOSX) 821 #if defined(OS_MACOSX)
819 // Responds to IPCs from TextInputClientMac regarding getting string at given 822 // Responds to IPCs from TextInputClientMac regarding getting string at given
820 // position or range as well as finding character index at a given position. 823 // position or range as well as finding character index at a given position.
821 std::unique_ptr<TextInputClientObserver> text_input_client_observer_; 824 std::unique_ptr<TextInputClientObserver> text_input_client_observer_;
822 #endif 825 #endif
823 826
824 // This reference is set by the RenderFrame and is used to query the IME- 827 // This reference is set by the RenderFrame and is used to query the IME-
825 // related state from the plugin to later send to the browser. 828 // related state from the plugin to later send to the browser.
826 PepperPluginInstanceImpl* focused_pepper_plugin_; 829 PepperPluginInstanceImpl* focused_pepper_plugin_;
827 830
828 // Stores edit commands associated to the next key event. 831 // Stores edit commands associated to the next key event.
829 // Will be cleared as soon as the next key event is processed. 832 // Will be cleared as soon as the next key event is processed.
830 EditCommands edit_commands_; 833 EditCommands edit_commands_;
831 834
832 // This field stores drag/drop related info for the event that is currently 835 // This field stores drag/drop related info for the event that is currently
833 // being handled. If the current event results in starting a drag/drop 836 // being handled. If the current event results in starting a drag/drop
834 // session, this info is sent to the browser along with other drag/drop info. 837 // session, this info is sent to the browser along with other drag/drop info.
835 DragEventSourceInfo possible_drag_event_info_; 838 DragEventSourceInfo possible_drag_event_info_;
836 839
837 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 840 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
838 }; 841 };
839 842
840 } // namespace content 843 } // namespace content
841 844
842 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 845 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_event_filter.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698