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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 281833003: BrowserPluginHostTest: Rewrite 3 focus related tests and 1 visibility test to browser_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase @tott, fix conflict 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 3b7dce91edb3e6ed76976018a0556d742ba47ba7..3f595e4450d6c696bf4230c764e9581bb45a9880 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -322,11 +322,12 @@ class CONTENT_EXPORT BrowserPluginGuest
void OnNavigateGuest(int instance_id, const std::string& src);
void OnPluginDestroyed(int instance_id);
// Resizes the guest's web contents.
- // Overridden in tests.
- virtual void OnResizeGuest(
+ void OnResizeGuest(
int instance_id, const BrowserPluginHostMsg_ResizeGuest_Params& params);
- // Overridden in tests.
- virtual void OnSetFocus(int instance_id, bool focused);
+ void OnSetFocus(int instance_id, bool focused);
+ // Sets the name of the guest so that other guests in the same partition can
+ // access it.
+ void OnSetName(int instance_id, const std::string& name);
// Updates the size state of the guest.
void OnSetSize(
int instance_id,
@@ -392,8 +393,10 @@ class CONTENT_EXPORT BrowserPluginGuest
void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
#endif
void OnShowWidget(int route_id, const gfx::Rect& initial_pos);
- // Overridden in tests.
- virtual void OnTakeFocus(bool reverse);
+ void OnTakeFocus(bool reverse);
+ void OnUpdateFrameName(int frame_id,
+ bool is_top_level,
+ const std::string& name);
void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
// Forwards all messages from the |pending_messages_| queue to the embedder.

Powered by Google App Engine
This is Rietveld 408576698