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

Side by Side Diff: content/public/renderer/browser_plugin_delegate.h

Issue 624063002: <webview>: resizing with display:none set should resize on attachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Istiaque's comments Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class RenderFrame; 14 class RenderFrame;
15 15
16 // A delegate for BrowserPlugin which gets notified about the plugin load. 16 // A delegate for BrowserPlugin which gets notified about the plugin load.
17 // Implementations can provide additional steps necessary to change the load 17 // Implementations can provide additional steps necessary to change the load
18 // behavior of the plugin. 18 // behavior of the plugin.
19 class CONTENT_EXPORT BrowserPluginDelegate { 19 class CONTENT_EXPORT BrowserPluginDelegate {
20 public: 20 public:
21 BrowserPluginDelegate(RenderFrame* render_frame, 21 BrowserPluginDelegate(RenderFrame* render_frame,
22 const std::string& mime_type) {} 22 const std::string& mime_type) {}
23 virtual ~BrowserPluginDelegate() {} 23 virtual ~BrowserPluginDelegate() {}
24 24
25 // Called when the BrowserPlugin's geometry has been computed for the first
26 // time.
27 virtual void Ready() {}
28
25 // Called when plugin document has finished loading. 29 // Called when plugin document has finished loading.
26 virtual void DidFinishLoading() {} 30 virtual void DidFinishLoading() {}
27 31
28 // Called when plugin document receives data. 32 // Called when plugin document receives data.
29 virtual void DidReceiveData(const char* data, int data_length) {} 33 virtual void DidReceiveData(const char* data, int data_length) {}
30 34
31 // Sets the instance ID that idenfies the plugin within current render 35 // Sets the instance ID that idenfies the plugin within current render
32 // process. 36 // process.
33 virtual void SetElementInstanceID(int element_instance_id) {} 37 virtual void SetElementInstanceID(int element_instance_id) {}
34 }; 38 };
35 39
36 } // namespace content 40 } // namespace content
37 41
38 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 42 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/web_view/shim/main.js ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698