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

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

Issue 1042743002: Make Edit>Speech>Speak Selection work for PDFs on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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 BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const; 181 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const;
182 182
183 // Helper to send messages to embedder. If this guest is not yet attached, 183 // Helper to send messages to embedder. If this guest is not yet attached,
184 // then IPCs will be queued until attachment. 184 // then IPCs will be queued until attachment.
185 void SendMessageToEmbedder(IPC::Message* msg); 185 void SendMessageToEmbedder(IPC::Message* msg);
186 186
187 // Returns whether the guest is attached to an embedder. 187 // Returns whether the guest is attached to an embedder.
188 bool attached() const { return attached_; } 188 bool attached() const { return attached_; }
189 189
190 bool is_full_page_plugin() const { return is_full_page_plugin_; }
191
190 // Attaches this BrowserPluginGuest to the provided |embedder_web_contents| 192 // Attaches this BrowserPluginGuest to the provided |embedder_web_contents|
191 // and initializes the guest with the provided |params|. Attaching a guest 193 // and initializes the guest with the provided |params|. Attaching a guest
192 // to an embedder implies that this guest's lifetime is no longer managed 194 // to an embedder implies that this guest's lifetime is no longer managed
193 // by its opener, and it can begin loading resources. 195 // by its opener, and it can begin loading resources.
194 void Attach(int browser_plugin_instance_id, 196 void Attach(int browser_plugin_instance_id,
195 WebContentsImpl* embedder_web_contents, 197 WebContentsImpl* embedder_web_contents,
196 const BrowserPluginHostMsg_Attach_Params& params); 198 const BrowserPluginHostMsg_Attach_Params& params);
197 199
198 // Returns whether BrowserPluginGuest is interested in receiving the given 200 // Returns whether BrowserPluginGuest is interested in receiving the given
199 // |message|. 201 // |message|.
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // Weak pointer used to ask GeolocationPermissionContext about geolocation 416 // Weak pointer used to ask GeolocationPermissionContext about geolocation
415 // permission. 417 // permission.
416 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 418 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
417 419
418 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 420 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
419 }; 421 };
420 422
421 } // namespace content 423 } // namespace content
422 424
423 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 425 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698