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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.h

Issue 11360106: Browser Plugin: Implement AutoSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 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 | Annotate | Revision Log
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_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/public/browser/render_view_host_observer.h" 11 #include "content/public/browser/render_view_host_observer.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
14 14
15 namespace IPC { 15 namespace IPC {
16 class Message; 16 class Message;
17 class SyncMessage; 17 class SyncMessage;
18 } 18 }
19 19
20 namespace gfx { 20 namespace gfx {
21 class Point; 21 class Point;
22 class Size; 22 class Size;
23 } 23 }
24 24
25 struct BrowserPluginHostMsg_AutoSize_Params;
25 struct BrowserPluginHostMsg_CreateGuest_Params; 26 struct BrowserPluginHostMsg_CreateGuest_Params;
26 struct BrowserPluginHostMsg_ResizeGuest_Params; 27 struct BrowserPluginHostMsg_ResizeGuest_Params;
27 struct WebDropData; 28 struct WebDropData;
28 29
29 namespace content { 30 namespace content {
30 31
31 class BrowserPluginEmbedder; 32 class BrowserPluginEmbedder;
32 class RenderViewHost; 33 class RenderViewHost;
33 34
34 // Helper for browser plugin embedder. 35 // Helper for browser plugin embedder.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void OnGo(int instance_id, int relative_index); 71 void OnGo(int instance_id, int relative_index);
71 void OnStop(int instance_id); 72 void OnStop(int instance_id);
72 void OnReload(int instance_id); 73 void OnReload(int instance_id);
73 void OnTerminateGuest(int instance_id); 74 void OnTerminateGuest(int instance_id);
74 void OnSetGuestVisibility(int instance_id, bool visible); 75 void OnSetGuestVisibility(int instance_id, bool visible);
75 void OnDragStatusUpdate(int instance_id, 76 void OnDragStatusUpdate(int instance_id,
76 WebKit::WebDragStatus drag_status, 77 WebKit::WebDragStatus drag_status,
77 const WebDropData& drop_data, 78 const WebDropData& drop_data,
78 WebKit::WebDragOperationsMask drag_mask, 79 WebKit::WebDragOperationsMask drag_mask,
79 const gfx::Point& location); 80 const gfx::Point& location);
81 void OnSetAutoSize(
82 int instance_id,
83 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
84 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params);
80 85
81 BrowserPluginEmbedder* embedder_; 86 BrowserPluginEmbedder* embedder_;
82 87
83 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); 88 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper);
84 }; 89 };
85 90
86 } // namespace content 91 } // namespace content
87 92
88 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 93 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698