Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 1457203002: Make WebContentsImpl aware of all of its RWHs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix RW destruction by Shutdown Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698