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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 11554030: <webview>: Add name attribute (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests Created 8 years 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/renderer/browser_plugin/browser_plugin.h
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index 3a1bf2ea1dfe5d4fe49d20f7a5ce7b4efa15b495..af6ae24ca24889816c2ef02a97c2f423f4cccff7 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -41,6 +41,10 @@ class CONTENT_EXPORT BrowserPlugin :
void UpdateDOMAttribute(const std::string& attribute_name,
const std::string& attribute_value);
+ // Get the name attribute value.
+ std::string name_attribute() const { return name_; }
+ // Set the name attribute value.
+ void SetNameAttribute(const std::string& name);
// Get the src attribute value of the BrowserPlugin instance.
std::string src_attribute() const { return src_; }
// Set the src attribute value of the BrowserPlugin instance.
@@ -107,6 +111,8 @@ class CONTENT_EXPORT BrowserPlugin :
void LoadRedirect(const GURL& old_url,
const GURL& new_url,
bool is_top_level);
+ // Tells the BrowserPlugin that the guest's name has been updated.
+ void UpdatedName(const std::string& name);
// Tells the BrowserPlugin to advance the focus to the next (or previous)
// element.
void AdvanceFocus(bool reverse);
@@ -316,6 +322,7 @@ class CONTENT_EXPORT BrowserPlugin :
// Tracks the visibility of the browser plugin regardless of the whole
// embedder RenderView's visibility.
bool visible_;
+ std::string name_;
WebCursor cursor_;

Powered by Google App Engine
This is Rietveld 408576698