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

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: Merged with ToT Created 7 years, 11 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0eeb8f90723f55767130696d2053e6c37b7b5ce3..80f2c6b9440d4c5a5c8cc6cec5fbd25c69c6c89a 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.
@@ -260,6 +264,7 @@ class CONTENT_EXPORT BrowserPlugin :
void OnLoadStop(int instance_id);
void OnSetCursor(int instance_id, const WebCursor& cursor);
void OnShouldAcceptTouchEvents(int instance_id, bool accept);
+ void OnUpdatedName(int instance_id, const std::string& name);
void OnUpdateRect(int instance_id,
const BrowserPluginMsg_UpdateRect_Params& params);
@@ -299,6 +304,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_;
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698