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 <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 namespace base { | 47 namespace base { |
48 class TimeTicks; | 48 class TimeTicks; |
49 } | 49 } |
50 | 50 |
51 namespace cc { | 51 namespace cc { |
52 class CompositorFrame; | 52 class CompositorFrame; |
53 class CompositorFrameAck; | 53 class CompositorFrameAck; |
54 } | 54 } |
55 | 55 |
| 56 namespace gfx { |
| 57 class Range; |
| 58 } |
| 59 |
56 namespace ui { | 60 namespace ui { |
57 class KeyEvent; | 61 class KeyEvent; |
58 class Range; | |
59 } | 62 } |
60 | 63 |
61 namespace WebKit { | 64 namespace WebKit { |
62 class WebInputEvent; | 65 class WebInputEvent; |
63 class WebMouseEvent; | 66 class WebMouseEvent; |
64 struct WebCompositionUnderline; | 67 struct WebCompositionUnderline; |
65 struct WebScreenInfo; | 68 struct WebScreenInfo; |
66 } | 69 } |
67 | 70 |
68 #if defined(OS_ANDROID) | 71 #if defined(OS_ANDROID) |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 int selection_start, | 338 int selection_start, |
336 int selection_end); | 339 int selection_end); |
337 | 340 |
338 // Finishes an ongoing composition with the specified text. | 341 // Finishes an ongoing composition with the specified text. |
339 // A browser should call this function: | 342 // A browser should call this function: |
340 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag | 343 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag |
341 // (on Windows); | 344 // (on Windows); |
342 // * when it receives a "commit" signal of GtkIMContext (on Linux); | 345 // * when it receives a "commit" signal of GtkIMContext (on Linux); |
343 // * when insertText of NSTextInput is called (on Mac). | 346 // * when insertText of NSTextInput is called (on Mac). |
344 void ImeConfirmComposition(const string16& text, | 347 void ImeConfirmComposition(const string16& text, |
345 const ui::Range& replacement_range, | 348 const gfx::Range& replacement_range, |
346 bool keep_selection); | 349 bool keep_selection); |
347 | 350 |
348 // Cancels an ongoing composition. | 351 // Cancels an ongoing composition. |
349 void ImeCancelComposition(); | 352 void ImeCancelComposition(); |
350 | 353 |
351 // Deletes the current selection plus the specified number of characters | 354 // Deletes the current selection plus the specified number of characters |
352 // before and after the selection or caret. | 355 // before and after the selection or caret. |
353 void ExtendSelectionAndDelete(size_t before, size_t after); | 356 void ExtendSelectionAndDelete(size_t before, size_t after); |
354 | 357 |
355 // This is for derived classes to give us access to the resizer rect. | 358 // This is for derived classes to give us access to the resizer rect. |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 void OnBeginSmoothScroll( | 659 void OnBeginSmoothScroll( |
657 const ViewHostMsg_BeginSmoothScroll_Params& params); | 660 const ViewHostMsg_BeginSmoothScroll_Params& params); |
658 virtual void OnFocus(); | 661 virtual void OnFocus(); |
659 virtual void OnBlur(); | 662 virtual void OnBlur(); |
660 void OnSetCursor(const WebCursor& cursor); | 663 void OnSetCursor(const WebCursor& cursor); |
661 void OnTextInputTypeChanged(ui::TextInputType type, | 664 void OnTextInputTypeChanged(ui::TextInputType type, |
662 ui::TextInputMode input_mode, | 665 ui::TextInputMode input_mode, |
663 bool can_compose_inline); | 666 bool can_compose_inline); |
664 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) | 667 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) |
665 void OnImeCompositionRangeChanged( | 668 void OnImeCompositionRangeChanged( |
666 const ui::Range& range, | 669 const gfx::Range& range, |
667 const std::vector<gfx::Rect>& character_bounds); | 670 const std::vector<gfx::Rect>& character_bounds); |
668 #endif | 671 #endif |
669 void OnImeCancelComposition(); | 672 void OnImeCancelComposition(); |
670 void OnDidActivateAcceleratedCompositing(bool activated); | 673 void OnDidActivateAcceleratedCompositing(bool activated); |
671 void OnLockMouse(bool user_gesture, | 674 void OnLockMouse(bool user_gesture, |
672 bool last_unlocked_by_target, | 675 bool last_unlocked_by_target, |
673 bool privileged); | 676 bool privileged); |
674 void OnUnlockMouse(); | 677 void OnUnlockMouse(); |
675 void OnShowDisambiguationPopup(const gfx::Rect& rect, | 678 void OnShowDisambiguationPopup(const gfx::Rect& rect, |
676 const gfx::Size& size, | 679 const gfx::Size& size, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 int64 last_input_number_; | 929 int64 last_input_number_; |
927 | 930 |
928 BrowserRenderingStats rendering_stats_; | 931 BrowserRenderingStats rendering_stats_; |
929 | 932 |
930 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 933 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
931 }; | 934 }; |
932 | 935 |
933 } // namespace content | 936 } // namespace content |
934 | 937 |
935 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 938 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |