| 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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // focused WebContents. | 229 // focused WebContents. |
| 230 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); | 230 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); |
| 231 | 231 |
| 232 // In cases with multiple RenderWidgetHosts involved in rendering a page, only | 232 // In cases with multiple RenderWidgetHosts involved in rendering a page, only |
| 233 // one widget should be focused and active. This ensures that | 233 // one widget should be focused and active. This ensures that |
| 234 // |render_widget_host| is focused and that its owning WebContents is also | 234 // |render_widget_host| is focused and that its owning WebContents is also |
| 235 // the focused WebContents. | 235 // the focused WebContents. |
| 236 virtual void FocusOwningWebContents( | 236 virtual void FocusOwningWebContents( |
| 237 RenderWidgetHostImpl* render_widget_host) {} | 237 RenderWidgetHostImpl* render_widget_host) {} |
| 238 | 238 |
| 239 // Notifies the delegate that a focused editable element has been touched |
| 240 // inside this RenderWidgetHost. If |editable| is true then the focused |
| 241 // element accepts text input. |
| 242 virtual void FocusedNodeTouched(bool editable) {} |
| 243 |
| 239 protected: | 244 protected: |
| 240 virtual ~RenderWidgetHostDelegate() {} | 245 virtual ~RenderWidgetHostDelegate() {} |
| 241 }; | 246 }; |
| 242 | 247 |
| 243 } // namespace content | 248 } // namespace content |
| 244 | 249 |
| 245 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 250 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |