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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 class RenderWidgetHostInputEventRouter; | 32 class RenderWidgetHostInputEventRouter; |
33 struct NativeWebKeyboardEvent; | 33 struct NativeWebKeyboardEvent; |
34 | 34 |
35 // | 35 // |
36 // RenderWidgetHostDelegate | 36 // RenderWidgetHostDelegate |
37 // | 37 // |
38 // An interface implemented by an object interested in knowing about the state | 38 // An interface implemented by an object interested in knowing about the state |
39 // of the RenderWidgetHost. | 39 // of the RenderWidgetHost. |
40 class CONTENT_EXPORT RenderWidgetHostDelegate { | 40 class CONTENT_EXPORT RenderWidgetHostDelegate { |
41 public: | 41 public: |
42 // The RenderWidgetHost has just been created. | |
43 virtual void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) {} | |
Charlie Reis
2015/11/20 18:41:41
There's some potential confusion here around the n
Avi (use Gerrit)
2015/11/20 19:06:30
Yeah. We've been super casual here in the past, an
lazyboy
2015/11/20 23:52:05
Acknowledged.
lazyboy
2015/11/20 23:52:05
Let me know if you want me to do sth for this newl
| |
44 | |
42 // The RenderWidgetHost is going to be deleted. | 45 // The RenderWidgetHost is going to be deleted. |
43 virtual void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) {} | 46 virtual void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) {} |
44 | 47 |
45 // The RenderWidgetHost got the focus. | 48 // The RenderWidgetHost got the focus. |
46 virtual void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) {} | 49 virtual void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) {} |
47 | 50 |
48 // The RenderWidget was resized. | 51 // The RenderWidget was resized. |
49 virtual void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, | 52 virtual void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, |
50 bool width_changed) {} | 53 bool width_changed) {} |
51 | 54 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, | 173 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, |
171 const std::vector<uint8_t>& proto) {} | 174 const std::vector<uint8_t>& proto) {} |
172 | 175 |
173 protected: | 176 protected: |
174 virtual ~RenderWidgetHostDelegate() {} | 177 virtual ~RenderWidgetHostDelegate() {} |
175 }; | 178 }; |
176 | 179 |
177 } // namespace content | 180 } // namespace content |
178 | 181 |
179 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 182 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |