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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 // |show_ime| should be SHOW_IME_IF_NEEDED iff the update may cause the ime to | 320 // |show_ime| should be SHOW_IME_IF_NEEDED iff the update may cause the ime to |
321 // be displayed, e.g. after a tap on an input field on mobile. | 321 // be displayed, e.g. after a tap on an input field on mobile. |
322 // |change_source| should be FROM_NON_IME when the renderer has to wait for | 322 // |change_source| should be FROM_NON_IME when the renderer has to wait for |
323 // the browser to acknowledge the change before the renderer handles any more | 323 // the browser to acknowledge the change before the renderer handles any more |
324 // IME events. This is when the text change did not originate from the IME in | 324 // IME events. This is when the text change did not originate from the IME in |
325 // the browser side, such as changes by JavaScript or autofill. | 325 // the browser side, such as changes by JavaScript or autofill. |
326 void UpdateTextInputState(ShowIme show_ime, ChangeSource change_source); | 326 void UpdateTextInputState(ShowIme show_ime, ChangeSource change_source); |
327 #endif | 327 #endif |
328 | 328 |
329 // Called when animations due to focus change have completed (if any). Can be | 329 // This indicates that animations after showing a virtual keyboard (if any) |
330 // called from the renderer, browser, or compositor. | 330 // have completed. Can be called from browser, renderer, or compositor. |
331 virtual void FocusChangeComplete() {} | 331 virtual void ImeShownAnimationsComplete() {} |
332 | 332 |
333 // Checks if the composition range or composition character bounds have been | 333 // Checks if the composition range or composition character bounds have been |
334 // changed. If they are changed, the new value will be sent to the browser | 334 // changed. If they are changed, the new value will be sent to the browser |
335 // process. This method does nothing when the browser process is not able to | 335 // process. This method does nothing when the browser process is not able to |
336 // handle composition range and composition character bounds. | 336 // handle composition range and composition character bounds. |
337 void UpdateCompositionInfo(bool should_update_range); | 337 void UpdateCompositionInfo(bool should_update_range); |
338 | 338 |
339 #if defined(OS_ANDROID) | 339 #if defined(OS_ANDROID) |
340 void DidChangeBodyBackgroundColor(SkColor bg_color); | 340 void DidChangeBodyBackgroundColor(SkColor bg_color); |
341 bool DoesRecordFullLayer() const; | 341 bool DoesRecordFullLayer() const; |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 ui::MenuSourceType context_menu_source_type_; | 813 ui::MenuSourceType context_menu_source_type_; |
814 bool has_host_context_menu_location_; | 814 bool has_host_context_menu_location_; |
815 gfx::Point host_context_menu_location_; | 815 gfx::Point host_context_menu_location_; |
816 | 816 |
817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 817 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
818 }; | 818 }; |
819 | 819 |
820 } // namespace content | 820 } // namespace content |
821 | 821 |
822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 822 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |