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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
174 void RemoveKeyPressEventCallback( | 174 void RemoveKeyPressEventCallback( |
175 const KeyPressEventCallback& callback) override; | 175 const KeyPressEventCallback& callback) override; |
176 void AddMouseEventCallback(const MouseEventCallback& callback) override; | 176 void AddMouseEventCallback(const MouseEventCallback& callback) override; |
177 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; | 177 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; |
178 void AddInputEventObserver( | 178 void AddInputEventObserver( |
179 RenderWidgetHost::InputEventObserver* observer) override; | 179 RenderWidgetHost::InputEventObserver* observer) override; |
180 void RemoveInputEventObserver( | 180 void RemoveInputEventObserver( |
181 RenderWidgetHost::InputEventObserver* observer) override; | 181 RenderWidgetHost::InputEventObserver* observer) override; |
182 void GetScreenInfo(content::ScreenInfo* result) override; | 182 void GetScreenInfo(content::ScreenInfo* result) override; |
183 void HandleCompositorProto(const std::vector<uint8_t>& proto) override; | 183 void HandleCompositorProto(const std::vector<uint8_t>& proto) override; |
184 void SendOrBatch(IPC::Message* message) override; | |
185 | |
186 // Begin batch edit mode. | |
187 void BeginBatchEdit(); | |
188 // End batch edit mode. | |
189 void EndBatchEdit(); | |
190 // Deletes the current selection plus the specified number of characters | |
191 // before and after the selection or caret. | |
192 void ExtendSelectionAndDelete(size_t before, size_t after); | |
184 | 193 |
185 // Notification that the screen info has changed. | 194 // Notification that the screen info has changed. |
186 void NotifyScreenInfoChanged(); | 195 void NotifyScreenInfoChanged(); |
187 | 196 |
188 // Forces redraw in the renderer and when the update reaches the browser | 197 // Forces redraw in the renderer and when the update reaches the browser |
189 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. | 198 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. |
190 using GetSnapshotFromBrowserCallback = | 199 using GetSnapshotFromBrowserCallback = |
191 base::Callback<void(const unsigned char*, size_t)>; | 200 base::Callback<void(const unsigned char*, size_t)>; |
192 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); | 201 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); |
193 | 202 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
833 RenderWidgetHostDelegate::RendererUnresponsiveType hang_monitor_reason_; | 842 RenderWidgetHostDelegate::RendererUnresponsiveType hang_monitor_reason_; |
834 | 843 |
835 // This value indicates how long to wait for a new compositor frame from a | 844 // This value indicates how long to wait for a new compositor frame from a |
836 // renderer process before clearing any previously displayed content. | 845 // renderer process before clearing any previously displayed content. |
837 base::TimeDelta new_content_rendering_delay_; | 846 base::TimeDelta new_content_rendering_delay_; |
838 | 847 |
839 #if defined(OS_MACOSX) | 848 #if defined(OS_MACOSX) |
840 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; | 849 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; |
841 #endif | 850 #endif |
842 | 851 |
852 // Messages that will be sent at once in a batch edit. | |
853 std::vector<IPC::Message> batch_edit_messages_; | |
854 // Whether or not we are in the batch edit mode. | |
855 bool in_batch_edit_mode_; | |
aelias_OOO_until_Jul13
2016/09/09 04:50:20
nit: in_ime_batch_edit_
Changwan Ryu
2016/09/09 06:28:47
Done.
| |
856 | |
843 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 857 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
844 | 858 |
845 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 859 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
846 }; | 860 }; |
847 | 861 |
848 } // namespace content | 862 } // namespace content |
849 | 863 |
850 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 864 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |