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

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

Issue 264943006: BrowserPlugin: Simplify content/public API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_v1
Patch Set: Addressed Istiaque's comments Created 6 years, 7 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; 91 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const;
92 92
93 bool DidSendScreenRectsCallback(BrowserPluginGuest* guest); 93 bool DidSendScreenRectsCallback(BrowserPluginGuest* guest);
94 94
95 bool SetZoomLevelCallback(double level, BrowserPluginGuest* guest); 95 bool SetZoomLevelCallback(double level, BrowserPluginGuest* guest);
96 96
97 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event, 97 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event,
98 BrowserPluginGuest* guest); 98 BrowserPluginGuest* guest);
99 99
100 // Called by the content embedder when a guest is found with the provided
lazyboy 2014/05/06 18:03:54 s/is found/exists
Fady Samuel 2014/05/06 18:13:03 Done.
101 // |instance_id|.
102 void OnGuestCallback(int instance_id,
103 const BrowserPluginHostMsg_Attach_Params& params,
104 const base::DictionaryValue* extra_params,
105 BrowserPluginGuest* guest);
106
100 // Message handlers. 107 // Message handlers.
101 108
102 void OnAllocateInstanceID(int request_id); 109 void OnAllocateInstanceID(int request_id);
103 void OnAttach(int instance_id, 110 void OnAttach(int instance_id,
104 const BrowserPluginHostMsg_Attach_Params& params, 111 const BrowserPluginHostMsg_Attach_Params& params,
105 const base::DictionaryValue& extra_params); 112 const base::DictionaryValue& extra_params);
106 void OnPluginAtPositionResponse(int instance_id, 113 void OnPluginAtPositionResponse(int instance_id,
107 int request_id, 114 int request_id,
108 const gfx::Point& position); 115 const gfx::Point& position);
109 116
(...skipping 12 matching lines...) Expand all
122 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; 129 base::WeakPtr<BrowserPluginGuest> guest_started_drag_;
123 130
124 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; 131 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_;
125 132
126 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 133 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
127 }; 134 };
128 135
129 } // namespace content 136 } // namespace content
130 137
131 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 138 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698