Chromium Code Reviews| 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. | 123 // Notifies the client that touch editing is no longer needed. |quick| |
| 124 virtual void EndTouchEditing() = 0; | 124 // determines whether the handles should fade out quickly or slowly. |
| 125 virtual void EndTouchEditing(bool quick) = 0; | |
|
sky
2014/01/16 23:15:02
If !quick means no animation, how about renaming t
mohsen
2014/01/17 02:09:41
Actually it was first named |animate|. But, since
| |
| 125 | 126 |
| 126 // Notifies the client that the selection bounds need to be updated. | 127 // Notifies the client that the selection bounds need to be updated. |
| 127 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, | 128 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, |
| 128 const gfx::Rect& focus) = 0; | 129 const gfx::Rect& focus) = 0; |
| 129 | 130 |
| 130 // Notifies the client that the current text input type as changed. | 131 // Notifies the client that the current text input type as changed. |
| 131 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; | 132 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; |
| 132 | 133 |
| 133 // Notifies the client that an input event is about to be sent to the | 134 // Notifies the client that an input event is about to be sent to the |
| 134 // renderer. Returns true if the client wants to stop event propagation. | 135 // renderer. Returns true if the client wants to stop event propagation. |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 801 // passed to windowless plugins like Flash/Silverlight, etc as the | 802 // passed to windowless plugins like Flash/Silverlight, etc as the |
| 802 // container window. | 803 // container window. |
| 803 HWND plugin_parent_window_; | 804 HWND plugin_parent_window_; |
| 804 #endif | 805 #endif |
| 805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 806 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 806 }; | 807 }; |
| 807 | 808 |
| 808 } // namespace content | 809 } // namespace content |
| 809 | 810 |
| 810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 811 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |