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

Side by Side Diff: webkit/glue/webplugin_page_delegate.h

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_
6 #define WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_
7
8 #include "base/gfx/native_widget_types.h"
9
10 class GURL;
11
12 namespace webkit_glue {
13
14 class WebPluginDelegate;
15 struct WebPluginGeometry;
16
17 // Used by the WebPlugin to communicate back to the containing page.
18 class WebPluginPageDelegate {
19 public:
20 // This method is called to create a WebPluginDelegate implementation when a
21 // new plugin is instanced. See webkit_glue::CreateWebPluginDelegateHelper
22 // for a default WebPluginDelegate implementation.
23 // TODO(port): clsid is very Win- and ActiveX-specific; refactor to be more
24 // platform-neutral
25 virtual WebPluginDelegate* CreatePluginDelegate(
26 const GURL& url,
27 const std::string& mime_type,
28 const std::string& clsid,
29 std::string* actual_mime_type) = 0;
30
31 // Called when a windowed plugin is created.
32 // Lets the view delegate create anything it is using to wrap the plugin.
33 virtual void CreatedPluginWindow(
34 gfx::PluginWindowHandle handle) = 0;
35
36 // Called when a windowed plugin is closing.
37 // Lets the view delegate shut down anything it is using to wrap the plugin.
38 virtual void WillDestroyPluginWindow(
39 gfx::PluginWindowHandle handle) = 0;
40
41 // Keeps track of the necessary window move for a plugin window that resulted
42 // from a scroll operation. That way, all plugin windows can be moved at the
43 // same time as each other and the page.
44 virtual void DidMovePlugin(
45 const WebPluginGeometry& move) = 0;
46
47 // Notifies the parent view that a load has begun.
48 virtual void DidStartLoadingForPlugin() = 0;
49
50 // Notifies the parent view that all loads are finished.
51 virtual void DidStopLoadingForPlugin() = 0;
52
53 // Asks the browser to show a modal HTML dialog. The dialog is passed the
54 // given arguments as a JSON string, and returns its result as a JSON string
55 // through json_retval.
56 virtual void ShowModalHTMLDialogForPlugin(
57 const GURL& url,
58 const gfx::Size& size,
59 const std::string& json_arguments,
60 std::string* json_retval) = 0;
61 };
62
63 } // namespace webkit_glue
64
65 #endif // WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698