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 12 matching lines...) Expand all Loading... |
23 class WebMouseWheelEvent; | 23 class WebMouseWheelEvent; |
24 class WebGestureEvent; | 24 class WebGestureEvent; |
25 } | 25 } |
26 | 26 |
27 namespace gfx { | 27 namespace gfx { |
28 class Point; | 28 class Point; |
29 class Rect; | 29 class Rect; |
30 class Size; | 30 class Size; |
31 } | 31 } |
32 | 32 |
| 33 namespace rappor { |
| 34 class Sample; |
| 35 } |
| 36 |
33 namespace content { | 37 namespace content { |
34 | 38 |
35 class BrowserAccessibilityManager; | 39 class BrowserAccessibilityManager; |
36 class RenderWidgetHostImpl; | 40 class RenderWidgetHostImpl; |
37 class RenderWidgetHostInputEventRouter; | 41 class RenderWidgetHostInputEventRouter; |
38 class RenderViewHostDelegateView; | 42 class RenderViewHostDelegateView; |
39 class TextInputManager; | 43 class TextInputManager; |
40 struct ScreenInfo; | 44 struct ScreenInfo; |
41 struct NativeWebKeyboardEvent; | 45 struct NativeWebKeyboardEvent; |
42 | 46 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // focused WebContents. | 233 // focused WebContents. |
230 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); | 234 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); |
231 | 235 |
232 // In cases with multiple RenderWidgetHosts involved in rendering a page, only | 236 // In cases with multiple RenderWidgetHosts involved in rendering a page, only |
233 // one widget should be focused and active. This ensures that | 237 // one widget should be focused and active. This ensures that |
234 // |render_widget_host| is focused and that its owning WebContents is also | 238 // |render_widget_host| is focused and that its owning WebContents is also |
235 // the focused WebContents. | 239 // the focused WebContents. |
236 virtual void FocusOwningWebContents( | 240 virtual void FocusOwningWebContents( |
237 RenderWidgetHostImpl* render_widget_host) {} | 241 RenderWidgetHostImpl* render_widget_host) {} |
238 | 242 |
| 243 // Augment a Rappor sample with eTLD+1 context. The caller is still |
| 244 // responsible for logging the sample to the RapporService. Returns false |
| 245 // if the eTLD+1 is not known for |render_widget_host|. |
| 246 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample); |
| 247 |
239 protected: | 248 protected: |
240 virtual ~RenderWidgetHostDelegate() {} | 249 virtual ~RenderWidgetHostDelegate() {} |
241 }; | 250 }; |
242 | 251 |
243 } // namespace content | 252 } // namespace content |
244 | 253 |
245 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 254 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |