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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents); | 44 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents); |
45 | 45 |
46 // Returns this embedder's WebContentsImpl. | 46 // Returns this embedder's WebContentsImpl. |
47 WebContentsImpl* GetWebContents() const; | 47 WebContentsImpl* GetWebContents() const; |
48 | 48 |
49 // Called when embedder's |rwh| has sent screen rects to renderer. | 49 // Called when embedder's |rwh| has sent screen rects to renderer. |
50 void DidSendScreenRects(); | 50 void DidSendScreenRects(); |
51 | 51 |
52 // WebContentsObserver implementation. | 52 // WebContentsObserver implementation. |
53 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 53 virtual bool OnMessageReceived(const IPC::Message& message) override; |
54 | 54 |
55 void DragSourceEndedAt(int client_x, int client_y, int screen_x, | 55 void DragSourceEndedAt(int client_x, int client_y, int screen_x, |
56 int screen_y, blink::WebDragOperation operation); | 56 int screen_y, blink::WebDragOperation operation); |
57 | 57 |
58 void OnUpdateDragCursor(bool* handled); | 58 void OnUpdateDragCursor(bool* handled); |
59 | 59 |
60 void DragEnteredGuest(BrowserPluginGuest* guest); | 60 void DragEnteredGuest(BrowserPluginGuest* guest); |
61 | 61 |
62 void DragLeftGuest(BrowserPluginGuest* guest); | 62 void DragLeftGuest(BrowserPluginGuest* guest); |
63 | 63 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool guest_drag_ending_; | 105 bool guest_drag_ending_; |
106 | 106 |
107 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; | 107 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); | 109 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ | 114 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ |
OLD | NEW |