| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // |render_widget_host| is focused and that its owning WebContents is also | 237 // |render_widget_host| is focused and that its owning WebContents is also |
| 238 // the focused WebContents. | 238 // the focused WebContents. |
| 239 virtual void FocusOwningWebContents( | 239 virtual void FocusOwningWebContents( |
| 240 RenderWidgetHostImpl* render_widget_host) {} | 240 RenderWidgetHostImpl* render_widget_host) {} |
| 241 | 241 |
| 242 // Augment a Rappor sample with eTLD+1 context. The caller is still | 242 // Augment a Rappor sample with eTLD+1 context. The caller is still |
| 243 // responsible for logging the sample to the RapporService. Returns false | 243 // responsible for logging the sample to the RapporService. Returns false |
| 244 // if the eTLD+1 is not known for |render_widget_host|. | 244 // if the eTLD+1 is not known for |render_widget_host|. |
| 245 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample); | 245 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample); |
| 246 | 246 |
| 247 // Notifies the delegate that a focused editable element has been touched |
| 248 // inside this RenderWidgetHost. If |editable| is true then the focused |
| 249 // element accepts text input. |
| 250 virtual void FocusedNodeTouched(bool editable) {} |
| 251 |
| 247 protected: | 252 protected: |
| 248 virtual ~RenderWidgetHostDelegate() {} | 253 virtual ~RenderWidgetHostDelegate() {} |
| 249 }; | 254 }; |
| 250 | 255 |
| 251 } // namespace content | 256 } // namespace content |
| 252 | 257 |
| 253 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |