OLD | NEW |
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 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's | 5 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's |
6 // embedder that are not directed at any particular existing guest process. | 6 // embedder that are not directed at any particular existing guest process. |
7 // In the beginning, when a BrowserPlugin instance in the embedder renderer | 7 // In the beginning, when a BrowserPlugin instance in the embedder renderer |
8 // process requests an initial navigation, the WebContents for that renderer | 8 // process requests an initial navigation, the WebContents for that renderer |
9 // renderer creates a BrowserPluginEmbedder for itself. The | 9 // renderer creates a BrowserPluginEmbedder for itself. The |
10 // BrowserPluginEmbedder, in turn, forwards the requests to a | 10 // BrowserPluginEmbedder, in turn, forwards the requests to a |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // (non-test) environment. | 65 // (non-test) environment. |
66 static void set_factory_for_testing(BrowserPluginHostFactory* factory) { | 66 static void set_factory_for_testing(BrowserPluginHostFactory* factory) { |
67 factory_ = factory; | 67 factory_ = factory; |
68 } | 68 } |
69 | 69 |
70 // WebContentsObserver implementation. | 70 // WebContentsObserver implementation. |
71 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 71 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
72 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 72 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
73 | 73 |
74 void DragSourceEndedAt(int client_x, int client_y, int screen_x, | 74 void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
75 int screen_y, WebKit::WebDragOperation operation); | 75 int screen_y, blink::WebDragOperation operation); |
76 | 76 |
77 void DragSourceMovedTo(int client_x, int client_y, | 77 void DragSourceMovedTo(int client_x, int client_y, |
78 int screen_x, int screen_y); | 78 int screen_x, int screen_y); |
79 | 79 |
80 void OnUpdateDragCursor(bool* handled); | 80 void OnUpdateDragCursor(bool* handled); |
81 | 81 |
82 void DragEnteredGuest(BrowserPluginGuest* guest); | 82 void DragEnteredGuest(BrowserPluginGuest* guest); |
83 | 83 |
84 void DragLeftGuest(BrowserPluginGuest* guest); | 84 void DragLeftGuest(BrowserPluginGuest* guest); |
85 | 85 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Pointer to the guest that started the drag, used to forward necessary drag | 130 // Pointer to the guest that started the drag, used to forward necessary drag |
131 // status messages to the correct guest. | 131 // status messages to the correct guest. |
132 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; | 132 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 134 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace content | 137 } // namespace content |
138 | 138 |
139 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 139 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |