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

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

Issue 11027065: Browser plugin: Implement titleChanged event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for pages with no title Created 8 years, 1 month 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 | Annotate | Revision Log
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 represents the browser side of browser <--> renderer 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer
6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of
7 // browser <--> guest renderer communication. The 'guest' renderer is a 7 // browser <--> guest renderer communication. The 'guest' renderer is a
8 // <browser> tag. 8 // <browser> tag.
9 // 9 //
10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 // Helper to send messages to embedder. Overridden in test implementation 234 // Helper to send messages to embedder. Overridden in test implementation
235 // since we want to intercept certain messages for testing. 235 // since we want to intercept certain messages for testing.
236 virtual void SendMessageToEmbedder(IPC::Message* msg); 236 virtual void SendMessageToEmbedder(IPC::Message* msg);
237 237
238 // Called when a redirect notification occurs. 238 // Called when a redirect notification occurs.
239 void LoadRedirect(const GURL& old_url, 239 void LoadRedirect(const GURL& old_url,
240 const GURL& new_url, 240 const GURL& new_url,
241 bool is_top_level); 241 bool is_top_level);
242 242
243 // Called when the guest changes its title.
244 void TitleChange(const string16& title);
245
243 // Static factory instance (always NULL for non-test). 246 // Static factory instance (always NULL for non-test).
244 static content::BrowserPluginHostFactory* factory_; 247 static content::BrowserPluginHostFactory* factory_;
245 248
246 NotificationRegistrar notification_registrar_; 249 NotificationRegistrar notification_registrar_;
247 WebContentsImpl* embedder_web_contents_; 250 WebContentsImpl* embedder_web_contents_;
248 // An identifier that uniquely identifies a browser plugin guest within an 251 // An identifier that uniquely identifies a browser plugin guest within an
249 // embedder. 252 // embedder.
250 int instance_id_; 253 int instance_id_;
251 scoped_ptr<TransportDIB> damage_buffer_; 254 scoped_ptr<TransportDIB> damage_buffer_;
252 #if defined(OS_WIN) 255 #if defined(OS_WIN)
253 size_t damage_buffer_size_; 256 size_t damage_buffer_size_;
254 #endif 257 #endif
255 gfx::Size damage_view_size_; 258 gfx::Size damage_view_size_;
256 float damage_buffer_scale_factor_; 259 float damage_buffer_scale_factor_;
257 scoped_ptr<IPC::Message> pending_input_event_reply_; 260 scoped_ptr<IPC::Message> pending_input_event_reply_;
258 gfx::Rect guest_rect_; 261 gfx::Rect guest_rect_;
259 WebCursor cursor_; 262 WebCursor cursor_;
260 IDMap<RenderViewHost> pending_updates_; 263 IDMap<RenderViewHost> pending_updates_;
261 int pending_update_counter_; 264 int pending_update_counter_;
262 base::TimeDelta guest_hang_timeout_; 265 base::TimeDelta guest_hang_timeout_;
263 bool focused_; 266 bool focused_;
264 bool visible_; 267 bool visible_;
265 268
266 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 269 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
267 }; 270 };
268 271
269 } // namespace content 272 } // namespace content
270 273
271 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 274 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/web_view/main.js ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698