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

Unified Diff: third_party/WebKit/Source/web/agent/sample/sample_agent.cc

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: Needle threaded all the way. Created 4 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: third_party/WebKit/Source/web/agent/sample/sample_agent.cc
diff --git a/third_party/WebKit/Source/web/agent/sample/sample_agent.cc b/third_party/WebKit/Source/web/agent/sample/sample_agent.cc
new file mode 100644
index 0000000000000000000000000000000000000000..20cd72fd64a96fc8e75dd1881cfe3feb8ae001cc
--- /dev/null
+++ b/third_party/WebKit/Source/web/agent/sample/sample_agent.cc
@@ -0,0 +1,20 @@
+// TODO(dglazkov): Add license header
+
+#include "web/agent/sample/sample_agent.h"
+
+#include "web/api/element.h"
+
+namespace web {
+namespace agent {
+
+using api::Frame;
+using api::Element;
+
+SampleAgent::SampleAgent(Frame* frame) : Agent(frame) {
+ Element* element = frame->GetFunkyElement();
+ if (element)
+ element->SetId("FUNKY!");
+}
+
+} // namespace agent
+} // namespace web

Powered by Google App Engine
This is Rietveld 408576698