| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // This function can also update the cursor position and mark the specified | 331 // This function can also update the cursor position and mark the specified |
| 332 // range in the composition node. | 332 // range in the composition node. |
| 333 // A browser should call this function: | 333 // A browser should call this function: |
| 334 // * when it receives a WM_IME_COMPOSITION message with a GCS_COMPSTR flag | 334 // * when it receives a WM_IME_COMPOSITION message with a GCS_COMPSTR flag |
| 335 // (on Windows); | 335 // (on Windows); |
| 336 // * when it receives a "preedit_changed" signal of GtkIMContext (on Linux); | 336 // * when it receives a "preedit_changed" signal of GtkIMContext (on Linux); |
| 337 // * when markedText of NSTextInput is called (on Mac). | 337 // * when markedText of NSTextInput is called (on Mac). |
| 338 void ImeSetComposition( | 338 void ImeSetComposition( |
| 339 const base::string16& text, | 339 const base::string16& text, |
| 340 const std::vector<blink::WebCompositionUnderline>& underlines, | 340 const std::vector<blink::WebCompositionUnderline>& underlines, |
| 341 const gfx::Range& replacement_range, |
| 341 int selection_start, | 342 int selection_start, |
| 342 int selection_end); | 343 int selection_end); |
| 343 | 344 |
| 344 // Finishes an ongoing composition with the specified text. | 345 // Finishes an ongoing composition with the specified text. |
| 345 // A browser should call this function: | 346 // A browser should call this function: |
| 346 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag | 347 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag |
| 347 // (on Windows); | 348 // (on Windows); |
| 348 // * when it receives a "commit" signal of GtkIMContext (on Linux); | 349 // * when it receives a "commit" signal of GtkIMContext (on Linux); |
| 349 // * when insertText of NSTextInput is called (on Mac). | 350 // * when insertText of NSTextInput is called (on Mac). |
| 350 void ImeConfirmComposition(const base::string16& text, | 351 void ImeConfirmComposition(const base::string16& text, |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; | 826 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
| 826 | 827 |
| 827 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 828 | 829 |
| 829 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 830 }; | 831 }; |
| 831 | 832 |
| 832 } // namespace content | 833 } // namespace content |
| 833 | 834 |
| 834 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |