web_contents()->ReplaceMisspelling(word);
}
+void WebContents::Focus() {
+ web_contents()->Focus();
+}
+
+void WebContents::TabTraverse(bool reverse) {
+ web_contents()->FocusThroughTabTraversal(reverse);
+}
+
bool WebContents::SendIPCMessage(const base::string16& channel,
const base::ListValue& args) {
return Send(new AtomViewMsg_Message(routing_id(), channel, args));
.SetMethod("unselect", &WebContents::Unselect)
.SetMethod("replace", &WebContents::Replace)
.SetMethod("replaceMisspelling", &WebContents::ReplaceMisspelling)
+ .SetMethod("focus", &WebContents::Focus)
+ .SetMethod("tabTraverse", &WebContents::TabTraverse)
.SetMethod("_send", &WebContents::SendIPCMessage, true)
.SetMethod("setSize", &WebContents::SetSize)
.SetMethod("setAllowTransparency", &WebContents::SetAllowTransparency)
void Replace(const base::string16& word);
void ReplaceMisspelling(const base::string16& word);
+ // Focus.
+ void Focus();
+ void TabTraverse(bool reverse);
+
// Sending messages to browser.
bool SendIPCMessage(const base::string16& channel,
const base::ListValue& args);