diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/dom_view.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/dom_view.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/dom_view.cc b/chrome/browser/views/dom_view.cc index d38a412..322281e 100644 --- a/chrome/browser/views/dom_view.cc +++ b/chrome/browser/views/dom_view.cc @@ -38,3 +38,7 @@ bool DOMView::SkipDefaultKeyEventProcessing(const views::KeyEvent& e) { // there. return views::FocusManager::IsTabTraversalKeyEvent(e); } + +void DOMView::Focus() { + tab_contents_->Focus(); +} diff --git a/chrome/browser/views/dom_view.h b/chrome/browser/views/dom_view.h index ac59bd9..a9b8f39 100644 --- a/chrome/browser/views/dom_view.h +++ b/chrome/browser/views/dom_view.h @@ -36,6 +36,7 @@ class DOMView : public views::NativeViewHost { protected: // Overridden from View. virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); + virtual void Focus(); scoped_ptr<TabContents> tab_contents_; |