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

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

Issue 638253004: Small optimization for <webview> tooltips. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 #endif 317 #endif
318 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); 318 void OnShowWidget(int route_id, const gfx::Rect& initial_pos);
319 void OnTakeFocus(bool reverse); 319 void OnTakeFocus(bool reverse);
320 void OnUpdateFrameName(int frame_id, 320 void OnUpdateFrameName(int frame_id,
321 bool is_top_level, 321 bool is_top_level,
322 const std::string& name); 322 const std::string& name);
323 323
324 // Forwards all messages from the |pending_messages_| queue to the embedder. 324 // Forwards all messages from the |pending_messages_| queue to the embedder.
325 void SendQueuedMessages(); 325 void SendQueuedMessages();
326 326
327 // The last tooltip that was set with SetTooltipText().
328 base::string16 current_tooltip_text_;
329
327 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_; 330 scoped_ptr<EmbedderWebContentsObserver> embedder_web_contents_observer_;
328 WebContentsImpl* embedder_web_contents_; 331 WebContentsImpl* embedder_web_contents_;
329 332
330 // An identifier that uniquely identifies a browser plugin within an embedder. 333 // An identifier that uniquely identifies a browser plugin within an embedder.
331 int browser_plugin_instance_id_; 334 int browser_plugin_instance_id_;
332 float guest_device_scale_factor_; 335 float guest_device_scale_factor_;
333 gfx::Rect guest_window_rect_; 336 gfx::Rect guest_window_rect_;
334 bool focused_; 337 bool focused_;
335 bool mouse_locked_; 338 bool mouse_locked_;
336 bool pending_lock_request_; 339 bool pending_lock_request_;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // Weak pointer used to ask GeolocationPermissionContext about geolocation 379 // Weak pointer used to ask GeolocationPermissionContext about geolocation
377 // permission. 380 // permission.
378 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 381 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
379 382
380 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 383 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
381 }; 384 };
382 385
383 } // namespace content 386 } // namespace content
384 387
385 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 388 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698