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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual void SetIsLoading(bool is_loading) = 0; | 99 virtual void SetIsLoading(bool is_loading) = 0; |
100 | 100 |
101 // Updates the type of the input method attached to the view. | 101 // Updates the type of the input method attached to the view. |
102 virtual void TextInputTypeChanged(ui::TextInputType type, | 102 virtual void TextInputTypeChanged(ui::TextInputType type, |
103 ui::TextInputMode mode, | 103 ui::TextInputMode mode, |
104 bool can_compose_inline) = 0; | 104 bool can_compose_inline) = 0; |
105 | 105 |
106 // Cancel the ongoing composition of the input method attached to the view. | 106 // Cancel the ongoing composition of the input method attached to the view. |
107 virtual void ImeCancelComposition() = 0; | 107 virtual void ImeCancelComposition() = 0; |
108 | 108 |
| 109 // Informs that the focused DOM node has changed. |
| 110 virtual void FocusedNodeChanged(bool is_editable_node) = 0; |
| 111 |
109 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) | 112 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) |
110 // Updates the range of the marked text in an IME composition. | 113 // Updates the range of the marked text in an IME composition. |
111 virtual void ImeCompositionRangeChanged( | 114 virtual void ImeCompositionRangeChanged( |
112 const gfx::Range& range, | 115 const gfx::Range& range, |
113 const std::vector<gfx::Rect>& character_bounds) = 0; | 116 const std::vector<gfx::Rect>& character_bounds) = 0; |
114 #endif | 117 #endif |
115 | 118 |
116 // Informs the view that a portion of the widget's backing store was scrolled | 119 // Informs the view that a portion of the widget's backing store was scrolled |
117 // and/or painted. The view should ensure this gets copied to the screen. | 120 // and/or painted. The view should ensure this gets copied to the screen. |
118 // | 121 // |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 344 |
342 // Returns an HWND that's given as the parent window for windowless Flash to | 345 // Returns an HWND that's given as the parent window for windowless Flash to |
343 // workaround crbug.com/301548. | 346 // workaround crbug.com/301548. |
344 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 347 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
345 #endif | 348 #endif |
346 }; | 349 }; |
347 | 350 |
348 } // namespace content | 351 } // namespace content |
349 | 352 |
350 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 353 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |