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

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

Issue 18750003: Require ACK for editor-related changes not originating from browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void OnRepaint(gfx::Size size_to_paint); 325 void OnRepaint(gfx::Size size_to_paint);
326 void OnSmoothScrollCompleted(); 326 void OnSmoothScrollCompleted();
327 void OnSetTextDirection(WebKit::WebTextDirection direction); 327 void OnSetTextDirection(WebKit::WebTextDirection direction);
328 void OnGetFPS(); 328 void OnGetFPS();
329 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, 329 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect,
330 const gfx::Rect& window_screen_rect); 330 const gfx::Rect& window_screen_rect);
331 #if defined(OS_ANDROID) 331 #if defined(OS_ANDROID)
332 void OnImeBatchStateChanged(bool is_begin); 332 void OnImeBatchStateChanged(bool is_begin);
333 void OnShowImeIfNeeded(); 333 void OnShowImeIfNeeded();
334 #endif 334 #endif
335 // Returns whether strict IME processing has been enabled.
336 bool has_strict_ime_processing() { return strict_ime_processing_; }
337 // Whenever an IME event that needs an acknowledgement is sent to the browser,
338 // the number of outstanding IME events that needs acknowledgement should be
339 // incremented.
340 void IncrementOutstandingImeEventAcknowledgements();
341 // If there are outstanding IME events that needs to be acknowledged, all
342 // new IME events should be discarded. This only returns true if strict IME
343 // processing is enabled.
344 bool HasOutstandingImeEventAcknowledgements();
345 // Called by the browser process for every required IME acknowledgement.
346 void OnImeAcknowledgeImeEvent();
347
335 void OnSnapshot(const gfx::Rect& src_subrect); 348 void OnSnapshot(const gfx::Rect& src_subrect);
336 void OnSetBrowserRenderingStats(const BrowserRenderingStats& stats); 349 void OnSetBrowserRenderingStats(const BrowserRenderingStats& stats);
337 350
338 // Notify the compositor about a change in viewport size. This should be 351 // Notify the compositor about a change in viewport size. This should be
339 // used only with auto resize mode WebWidgets, as normal WebWidgets should 352 // used only with auto resize mode WebWidgets, as normal WebWidgets should
340 // go through OnResize. 353 // go through OnResize.
341 void AutoResizeCompositor(); 354 void AutoResizeCompositor();
342 355
343 virtual void SetDeviceScaleFactor(float device_scale_factor); 356 virtual void SetDeviceScaleFactor(float device_scale_factor);
344 357
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 bool is_threaded_compositing_enabled_; 721 bool is_threaded_compositing_enabled_;
709 722
710 // The last set of rendering stats received from the browser. This is only 723 // The last set of rendering stats received from the browser. This is only
711 // received when using the --enable-gpu-benchmarking flag. 724 // received when using the --enable-gpu-benchmarking flag.
712 BrowserRenderingStats browser_rendering_stats_; 725 BrowserRenderingStats browser_rendering_stats_;
713 726
714 // The latency information for any current non-accelerated-compositing 727 // The latency information for any current non-accelerated-compositing
715 // frame. 728 // frame.
716 ui::LatencyInfo latency_info_; 729 ui::LatencyInfo latency_info_;
717 730
731 // Specifies if the strict IME processing has been enabled.
732 bool strict_ime_processing_;
kochi 2013/07/08 04:28:43 Same here. rename the member as has_strict_ime_pro
nyquist 2013/07/09 07:47:36 Done.
733
734 // A counter for number of outstanding messages from the renderer to the
735 // browser regarding IME-type events that have not been acknowledged by the
736 // browser.
737 int outstanding_ime_acknowledgements_;
738
718 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 739 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
719 740
720 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 741 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
721 }; 742 };
722 743
723 } // namespace content 744 } // namespace content
724 745
725 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 746 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698