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

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: sync @tott 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 179 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
177 const std::vector<uint8_t>& proto) {} 180 const std::vector<uint8_t>& proto) {}
178 181
179 protected: 182 protected:
180 virtual ~RenderWidgetHostDelegate() {} 183 virtual ~RenderWidgetHostDelegate() {}
181 }; 184 };
182 185
183 } // namespace content 186 } // namespace content
184 187
185 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 188 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698