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_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 }; | 113 }; |
114 | 114 |
115 // Displays and controls touch editing elements such as selection handles. | 115 // Displays and controls touch editing elements such as selection handles. |
116 class TouchEditingClient { | 116 class TouchEditingClient { |
117 public: | 117 public: |
118 TouchEditingClient() {} | 118 TouchEditingClient() {} |
119 | 119 |
120 // Tells the client to start showing touch editing handles. | 120 // Tells the client to start showing touch editing handles. |
121 virtual void StartTouchEditing() = 0; | 121 virtual void StartTouchEditing() = 0; |
122 | 122 |
123 // Notifies the client that touch editing is no longer needed. |quick| | 123 // Notifies the client that touch editing is no longer needed. |
124 // determines whether the handles should fade out quickly or slowly. | 124 virtual void EndTouchEditing() = 0; |
125 virtual void EndTouchEditing(bool quick) = 0; | |
126 | 125 |
127 // Notifies the client that the selection bounds need to be updated. | 126 // Notifies the client that the selection bounds need to be updated. |
128 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, | 127 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, |
129 const gfx::Rect& focus) = 0; | 128 const gfx::Rect& focus) = 0; |
130 | 129 |
131 // Notifies the client that the current text input type as changed. | 130 // Notifies the client that the current text input type as changed. |
132 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; | 131 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; |
133 | 132 |
134 // Notifies the client that an input event is about to be sent to the | 133 // Notifies the client that an input event is about to be sent to the |
135 // renderer. Returns true if the client wants to stop event propagation. | 134 // renderer. Returns true if the client wants to stop event propagation. |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 // passed to windowless plugins like Flash/Silverlight, etc as the | 801 // passed to windowless plugins like Flash/Silverlight, etc as the |
803 // container window. | 802 // container window. |
804 HWND plugin_parent_window_; | 803 HWND plugin_parent_window_; |
805 #endif | 804 #endif |
806 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
807 }; | 806 }; |
808 | 807 |
809 } // namespace content | 808 } // namespace content |
810 | 809 |
811 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |