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

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

Issue 856563002: Added the infrastructure for surfaceProxy.onResize() and SurfaceView.onResize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment by kalman@. Created 5 years, 11 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 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 12
13 namespace gfx {
14 class Size;
15 }
16
13 namespace v8 { 17 namespace v8 {
14 class Isolate; 18 class Isolate;
15 class Object; 19 class Object;
16 template<typename T> class Local; 20 template<typename T> class Local;
17 } // namespace v8 21 } // namespace v8
18 22
19 namespace content { 23 namespace content {
20 24
21 class RenderFrame; 25 class RenderFrame;
22 26
(...skipping 11 matching lines...) Expand all
34 // Called when plugin document has finished loading. 38 // Called when plugin document has finished loading.
35 virtual void DidFinishLoading() {} 39 virtual void DidFinishLoading() {}
36 40
37 // Called when plugin document receives data. 41 // Called when plugin document receives data.
38 virtual void DidReceiveData(const char* data, int data_length) {} 42 virtual void DidReceiveData(const char* data, int data_length) {}
39 43
40 // Sets the instance ID that idenfies the plugin within current render 44 // Sets the instance ID that idenfies the plugin within current render
41 // process. 45 // process.
42 virtual void SetElementInstanceID(int element_instance_id) {} 46 virtual void SetElementInstanceID(int element_instance_id) {}
43 47
48 // Called when the plugin resizes.
49 virtual void OnElementResize(const gfx::Size& old_size,
Charlie Reis 2015/01/21 18:18:53 OnFoo is the naming convention we use for IPC mess
paulmeyer 2015/01/21 22:07:44 Done.
50 const gfx::Size& new_size) {}
51
44 // Called when a message is received. Returns true iff the message was 52 // Called when a message is received. Returns true iff the message was
45 // handled. 53 // handled.
46 virtual bool OnMessageReceived(const IPC::Message& message); 54 virtual bool OnMessageReceived(const IPC::Message& message);
47 55
48 // Return a scriptable object for the plugin. 56 // Return a scriptable object for the plugin.
49 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate); 57 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate);
50 }; 58 };
51 59
52 } // namespace content 60 } // namespace content
53 61
54 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ 62 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698