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

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

Issue 1278593004: Introduce ThreadedInputConnection behind a switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix selection update to be accurate and fix tests Created 4 years, 10 months 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
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // will not be automatically available to BrowserMessageFilter, for example. 299 // will not be automatically available to BrowserMessageFilter, for example.
300 // FIFO ordering is preserved between messages enqueued with the same 300 // FIFO ordering is preserved between messages enqueued with the same
301 // |policy|, the ordering between messages enqueued for different policies is 301 // |policy|, the ordering between messages enqueued for different policies is
302 // undefined. 302 // undefined.
303 // 303 //
304 // |msg| message to send, ownership of |msg| is transferred. 304 // |msg| message to send, ownership of |msg| is transferred.
305 // |policy| see the comment on MessageDeliveryPolicy. 305 // |policy| see the comment on MessageDeliveryPolicy.
306 void QueueMessage(IPC::Message* msg, MessageDeliveryPolicy policy); 306 void QueueMessage(IPC::Message* msg, MessageDeliveryPolicy policy);
307 307
308 // Handle start and finish of IME event guard. 308 // Handle start and finish of IME event guard.
309 bool IsFromImeDefault();
309 void OnImeEventGuardStart(ImeEventGuard* guard); 310 void OnImeEventGuardStart(ImeEventGuard* guard);
310 void OnImeEventGuardFinish(ImeEventGuard* guard); 311 void OnImeEventGuardFinish(ImeEventGuard* guard);
311 312
312 // Returns whether we currently should handle an IME event. 313 // Returns whether we currently should handle an IME event.
313 bool ShouldHandleImeEvent(); 314 bool ShouldHandleImeEvent();
314 315
315 // ScreenMetricsEmulator class manages screen emulation inside a render 316 // ScreenMetricsEmulator class manages screen emulation inside a render
316 // widget. This includes resizing, placing view on the screen at desired 317 // widget. This includes resizing, placing view on the screen at desired
317 // position, changing device scale factor, and scaling down the whole 318 // position, changing device scale factor, and scaling down the whole
318 // widget if required to fit into the browser window. 319 // widget if required to fit into the browser window.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 void OnShowImeIfNeeded(); 456 void OnShowImeIfNeeded();
456 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); 457 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace);
457 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); 458 void OnHandleCompositorProto(const std::vector<uint8_t>& proto);
458 459
459 #if defined(OS_ANDROID) 460 #if defined(OS_ANDROID)
460 // Called when we send IME event that expects an ACK. 461 // Called when we send IME event that expects an ACK.
461 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); 462 void OnImeEventSentForAck(const blink::WebTextInputInfo& info);
462 463
463 // Called by the browser process for every required IME acknowledgement. 464 // Called by the browser process for every required IME acknowledgement.
464 void OnImeEventAck(); 465 void OnImeEventAck();
466
467 // Called by the browser process to update text input state.
468 void OnRequestTextInputStateUpdate();
465 #endif 469 #endif
466 470
467 // Notify the compositor about a change in viewport size. This should be 471 // Notify the compositor about a change in viewport size. This should be
468 // used only with auto resize mode WebWidgets, as normal WebWidgets should 472 // used only with auto resize mode WebWidgets, as normal WebWidgets should
469 // go through OnResize. 473 // go through OnResize.
470 void AutoResizeCompositor(); 474 void AutoResizeCompositor();
471 475
472 virtual void SetDeviceScaleFactor(float device_scale_factor); 476 virtual void SetDeviceScaleFactor(float device_scale_factor);
473 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile); 477 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile);
474 virtual void ResetDeviceColorProfileForTesting(); 478 virtual void ResetDeviceColorProfileForTesting();
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 762
759 scoped_ptr<scheduler::RenderWidgetSchedulingState> 763 scoped_ptr<scheduler::RenderWidgetSchedulingState>
760 render_widget_scheduling_state_; 764 render_widget_scheduling_state_;
761 765
762 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 766 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
763 }; 767 };
764 768
765 } // namespace content 769 } // namespace content
766 770
767 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 771 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698