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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
369 int selection_end); | 369 int selection_end); |
370 | 370 |
371 // Finishes an ongoing composition with the specified text. | 371 // Finishes an ongoing composition with the specified text. |
372 // A browser should call this function: | 372 // A browser should call this function: |
373 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag | 373 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag |
374 // (on Windows); | 374 // (on Windows); |
375 // * when it receives a "commit" signal of GtkIMContext (on Linux); | 375 // * when it receives a "commit" signal of GtkIMContext (on Linux); |
376 // * when insertText of NSTextInput is called (on Mac). | 376 // * when insertText of NSTextInput is called (on Mac). |
377 void ImeConfirmComposition(const base::string16& text, | 377 void ImeConfirmComposition(const base::string16& text, |
378 const gfx::Range& replacement_range, | 378 const gfx::Range& replacement_range, |
379 bool keep_selection); | 379 bool keep_selection, |
380 int relative_cursor_pos = 0); | |
aelias_OOO_until_Jul13
2016/09/01 05:21:58
Default argument values are against Chromium style
yabinh
2016/09/06 11:25:54
Done.
| |
380 | 381 |
381 // Cancels an ongoing composition. | 382 // Cancels an ongoing composition. |
382 void ImeCancelComposition(); | 383 void ImeCancelComposition(); |
383 | 384 |
384 bool ignore_input_events() const { | 385 bool ignore_input_events() const { |
385 return ignore_input_events_; | 386 return ignore_input_events_; |
386 } | 387 } |
387 | 388 |
388 // Whether forwarded WebInputEvents should be dropped. | 389 // Whether forwarded WebInputEvents should be dropped. |
389 bool ShouldDropInputEvents() const; | 390 bool ShouldDropInputEvents() const; |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
841 #endif | 842 #endif |
842 | 843 |
843 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 844 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
844 | 845 |
845 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 846 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
846 }; | 847 }; |
847 | 848 |
848 } // namespace content | 849 } // namespace content |
849 | 850 |
850 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 851 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |