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 RapporService; | |
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 virtual RenderViewHostDelegateView* GetDelegateView(); | 216 virtual RenderViewHostDelegateView* GetDelegateView(); |
213 | 217 |
214 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is | 218 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is |
215 // not intended for use with other types of fullscreen, such as HTML | 219 // not intended for use with other types of fullscreen, such as HTML |
216 // fullscreen, and will return nullptr for those cases. | 220 // fullscreen, and will return nullptr for those cases. |
217 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; | 221 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; |
218 | 222 |
219 // Allow the delegate to handle the cursor update. Returns true if handled. | 223 // Allow the delegate to handle the cursor update. Returns true if handled. |
220 virtual bool OnUpdateDragCursor(); | 224 virtual bool OnUpdateDragCursor(); |
221 | 225 |
226 // Returns the RapporService from browser process for the metric reporting | |
227 // purposes per url. See getRapporCommittedUrl for getting the url. | |
Charlie Reis
2016/11/16 23:55:21
nit: I'm not sure what "for the metric reporting p
Navid Zolghadr
2016/12/01 18:27:15
Removed this API altogether.
| |
228 virtual ::rappor::RapporService* getRapporService(); | |
Charlie Reis
2016/11/16 23:55:21
nit: Capitalize.
There's no uses of this method i
Navid Zolghadr
2016/11/17 20:05:49
Here is one use of this:
https://codereview.chromi
| |
229 | |
230 // Returns the Url of the current page to be used in Rappor metric reporting. | |
231 virtual std::string getRapporCommittedUrl(); | |
Charlie Reis
2016/11/16 23:55:21
nit: Capitalize.
As above, I'm concerned about pu
Navid Zolghadr
2016/12/01 18:27:15
Actually RenderFrameHostDelegate already has a met
| |
232 | |
222 protected: | 233 protected: |
223 virtual ~RenderWidgetHostDelegate() {} | 234 virtual ~RenderWidgetHostDelegate() {} |
224 }; | 235 }; |
225 | 236 |
226 } // namespace content | 237 } // namespace content |
227 | 238 |
228 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 239 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |