| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 // Notifies the delegate that a focused editable element has been touched | 240 // Notifies the delegate that a focused editable element has been touched |
| 241 // inside this RenderWidgetHost. If |editable| is true then the focused | 241 // inside this RenderWidgetHost. If |editable| is true then the focused |
| 242 // element accepts text input. | 242 // element accepts text input. |
| 243 virtual void FocusedNodeTouched(bool editable) {} | 243 virtual void FocusedNodeTouched(bool editable) {} |
| 244 | 244 |
| 245 // Return this object cast to a WebContents, if it is one. If the object is | 245 // Return this object cast to a WebContents, if it is one. If the object is |
| 246 // not a WebContents, returns nullptr. | 246 // not a WebContents, returns nullptr. |
| 247 virtual WebContents* GetAsWebContents(); | 247 virtual WebContents* GetAsWebContents(); |
| 248 | 248 |
| 249 // TODO(ekaramad): This is only used for BrowserPlugins. Remove this once the |
| 250 // issue https://crbug.com/533069 is fixed. |
| 251 // Returns true if there are any guests that are currently focused in one of |
| 252 // the delegate's RenderWidgetHosts. |
| 253 virtual bool HasFocusedGuests(); |
| 254 |
| 249 protected: | 255 protected: |
| 250 virtual ~RenderWidgetHostDelegate() {} | 256 virtual ~RenderWidgetHostDelegate() {} |
| 251 }; | 257 }; |
| 252 | 258 |
| 253 } // namespace content | 259 } // namespace content |
| 254 | 260 |
| 255 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 261 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |