| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState> | 807 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState> |
| 808 render_widget_scheduling_state_; | 808 render_widget_scheduling_state_; |
| 809 | 809 |
| 810 // Mouse Lock dispatcher attached to this view. | 810 // Mouse Lock dispatcher attached to this view. |
| 811 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; | 811 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; |
| 812 | 812 |
| 813 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 813 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
| 814 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 814 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
| 815 | 815 |
| 816 private: | 816 private: |
| 817 // Applies/Removes the DevTools device emulation transformation to/from a |
| 818 // window rect. |
| 819 void ApplyWindowEmulation(blink::WebRect* window_rect) const; |
| 820 void RemoveWindowEmulation(blink::WebRect* window_rect) const; |
| 821 |
| 817 // Indicates whether this widget has focus. | 822 // Indicates whether this widget has focus. |
| 818 bool has_focus_; | 823 bool has_focus_; |
| 819 | 824 |
| 820 #if defined(OS_MACOSX) | 825 #if defined(OS_MACOSX) |
| 821 // Responds to IPCs from TextInputClientMac regarding getting string at given | 826 // Responds to IPCs from TextInputClientMac regarding getting string at given |
| 822 // position or range as well as finding character index at a given position. | 827 // position or range as well as finding character index at a given position. |
| 823 std::unique_ptr<TextInputClientObserver> text_input_client_observer_; | 828 std::unique_ptr<TextInputClientObserver> text_input_client_observer_; |
| 824 #endif | 829 #endif |
| 825 | 830 |
| 826 // This reference is set by the RenderFrame and is used to query the IME- | 831 // This reference is set by the RenderFrame and is used to query the IME- |
| 827 // related state from the plugin to later send to the browser. | 832 // related state from the plugin to later send to the browser. |
| 828 PepperPluginInstanceImpl* focused_pepper_plugin_; | 833 PepperPluginInstanceImpl* focused_pepper_plugin_; |
| 829 | 834 |
| 830 // Stores edit commands associated to the next key event. | 835 // Stores edit commands associated to the next key event. |
| 831 // Will be cleared as soon as the next key event is processed. | 836 // Will be cleared as soon as the next key event is processed. |
| 832 EditCommands edit_commands_; | 837 EditCommands edit_commands_; |
| 833 | 838 |
| 834 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 839 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 835 }; | 840 }; |
| 836 | 841 |
| 837 } // namespace content | 842 } // namespace content |
| 838 | 843 |
| 839 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 844 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |