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

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

Issue 2780373002: Use observer pattern instead of sniffing SwapCompositorFrame IPC (Closed)
Patch Set: Addressed comments Created 3 years, 8 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // Notifies the delegate that a focused editable element has been touched 243 // Notifies the delegate that a focused editable element has been touched
244 // inside this RenderWidgetHost. If |editable| is true then the focused 244 // inside this RenderWidgetHost. If |editable| is true then the focused
245 // element accepts text input. 245 // element accepts text input.
246 virtual void FocusedNodeTouched(bool editable) {} 246 virtual void FocusedNodeTouched(bool editable) {}
247 247
248 // Return this object cast to a WebContents, if it is one. If the object is 248 // Return this object cast to a WebContents, if it is one. If the object is
249 // not a WebContents, returns nullptr. 249 // not a WebContents, returns nullptr.
250 virtual WebContents* GetAsWebContents(); 250 virtual WebContents* GetAsWebContents();
251 251
252 // Notifies that a CompositorFrame was received from the renderer.
253 virtual void DidReceiveCompositorFrame() {}
254
252 protected: 255 protected:
253 virtual ~RenderWidgetHostDelegate() {} 256 virtual ~RenderWidgetHostDelegate() {}
254 }; 257 };
255 258
256 } // namespace content 259 } // namespace content
257 260
258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 261 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698