| 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/keyboard_listener.h" | 10 #include "content/public/browser/keyboard_listener.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // Edit operations. | 115 // Edit operations. |
| 116 virtual void Undo() = 0; | 116 virtual void Undo() = 0; |
| 117 virtual void Redo() = 0; | 117 virtual void Redo() = 0; |
| 118 virtual void Cut() = 0; | 118 virtual void Cut() = 0; |
| 119 virtual void Copy() = 0; | 119 virtual void Copy() = 0; |
| 120 virtual void CopyToFindPboard() = 0; | 120 virtual void CopyToFindPboard() = 0; |
| 121 virtual void Paste() = 0; | 121 virtual void Paste() = 0; |
| 122 virtual void PasteAndMatchStyle() = 0; | 122 virtual void PasteAndMatchStyle() = 0; |
| 123 virtual void Delete() = 0; | 123 virtual void Delete() = 0; |
| 124 virtual void SelectAll() = 0; | 124 virtual void SelectAll() = 0; |
| 125 virtual void SpeakSelection() = 0; |
| 125 | 126 |
| 126 // Update the text direction of the focused input element and notify it to a | 127 // Update the text direction of the focused input element and notify it to a |
| 127 // renderer process. | 128 // renderer process. |
| 128 // These functions have two usage scenarios: changing the text direction | 129 // These functions have two usage scenarios: changing the text direction |
| 129 // from a menu (as Safari does), and; changing the text direction when a user | 130 // from a menu (as Safari does), and; changing the text direction when a user |
| 130 // presses a set of keys (as IE and Firefox do). | 131 // presses a set of keys (as IE and Firefox do). |
| 131 // 1. Change the text direction from a menu. | 132 // 1. Change the text direction from a menu. |
| 132 // In this scenario, we receive a menu event only once and we should update | 133 // In this scenario, we receive a menu event only once and we should update |
| 133 // the text direction immediately when a user chooses a menu item. So, we | 134 // the text direction immediately when a user chooses a menu item. So, we |
| 134 // should call both functions at once as listed in the following snippet. | 135 // should call both functions at once as listed in the following snippet. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // within content/. This method is necessary because | 280 // within content/. This method is necessary because |
| 280 // RenderWidgetHost is the root of a diamond inheritance pattern, so | 281 // RenderWidgetHost is the root of a diamond inheritance pattern, so |
| 281 // subclasses inherit it virtually, which removes our ability to | 282 // subclasses inherit it virtually, which removes our ability to |
| 282 // static_cast to the subclass. | 283 // static_cast to the subclass. |
| 283 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; | 284 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace content | 287 } // namespace content |
| 287 | 288 |
| 288 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
| OLD | NEW |