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

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

Issue 128563002: BrowserPlugin: Implemented BrowserPluginGuestManager::ForEachGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 private: 92 private:
93 friend class TestBrowserPluginEmbedder; 93 friend class TestBrowserPluginEmbedder;
94 94
95 BrowserPluginEmbedder(WebContentsImpl* web_contents); 95 BrowserPluginEmbedder(WebContentsImpl* web_contents);
96 96
97 void CleanUp(); 97 void CleanUp();
98 98
99 BrowserPluginGuestManager* GetBrowserPluginGuestManager(); 99 BrowserPluginGuestManager* GetBrowserPluginGuestManager();
100 100
101 bool DidSendScreenRectsCallback(BrowserPluginGuest* guest);
102
103 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event,
nasko 2014/01/08 17:58:42 nit: I'd put the guest parameter first, as it is w
Fady Samuel 2014/01/08 18:22:40 I don't think this is possible because we need to
104 BrowserPluginGuest* guest);
105
101 // Message handlers. 106 // Message handlers.
102 107
103 void OnAllocateInstanceID(int request_id); 108 void OnAllocateInstanceID(int request_id);
104 void OnAttach(int instance_id, 109 void OnAttach(int instance_id,
105 const BrowserPluginHostMsg_Attach_Params& params, 110 const BrowserPluginHostMsg_Attach_Params& params,
106 const base::DictionaryValue& extra_params); 111 const base::DictionaryValue& extra_params);
107 void OnPluginAtPositionResponse(int instance_id, 112 void OnPluginAtPositionResponse(int instance_id,
108 int request_id, 113 int request_id,
109 const gfx::Point& position); 114 const gfx::Point& position);
110 115
(...skipping 19 matching lines...) Expand all
130 // Pointer to the guest that started the drag, used to forward necessary drag 135 // Pointer to the guest that started the drag, used to forward necessary drag
131 // status messages to the correct guest. 136 // status messages to the correct guest.
132 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; 137 base::WeakPtr<BrowserPluginGuest> guest_started_drag_;
133 138
134 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 139 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
135 }; 140 };
136 141
137 } // namespace content 142 } // namespace content
138 143
139 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 144 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698