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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 3060045: Making window.focus() work in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1759 } 1759 }
1760 1760
1761 void RenderViewHost::NotifyRendererResponsive() { 1761 void RenderViewHost::NotifyRendererResponsive() {
1762 delegate_->RendererResponsive(this); 1762 delegate_->RendererResponsive(this);
1763 } 1763 }
1764 1764
1765 void RenderViewHost::OnMsgFocusedNodeChanged() { 1765 void RenderViewHost::OnMsgFocusedNodeChanged() {
1766 delegate_->FocusedNodeChanged(); 1766 delegate_->FocusedNodeChanged();
1767 } 1767 }
1768 1768
1769 void RenderViewHost::OnMsgFocus() {
1770 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1771 if (view)
1772 view->Activate();
1773 }
1774
1775 void RenderViewHost::OnMsgBlur() {
1776 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1777 if (view)
1778 view->Deactivate();
1779 }
1780
1769 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const { 1781 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const {
1770 return delegate_->GetRootWindowResizerRect(); 1782 return delegate_->GetRootWindowResizerRect();
1771 } 1783 }
1772 1784
1773 void RenderViewHost::ForwardMouseEvent( 1785 void RenderViewHost::ForwardMouseEvent(
1774 const WebKit::WebMouseEvent& mouse_event) { 1786 const WebKit::WebMouseEvent& mouse_event) {
1775 1787
1776 // We make a copy of the mouse event because 1788 // We make a copy of the mouse event because
1777 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. 1789 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|.
1778 WebKit::WebMouseEvent event_copy(mouse_event); 1790 WebKit::WebMouseEvent event_copy(mouse_event);
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
2008 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 2020 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
2009 delegate_->GetContentSettingsDelegate(); 2021 delegate_->GetContentSettingsDelegate();
2010 if (content_settings_delegate) 2022 if (content_settings_delegate)
2011 content_settings_delegate->OnWebDatabaseAccessed( 2023 content_settings_delegate->OnWebDatabaseAccessed(
2012 url, name, display_name, estimated_size, blocked_by_policy); 2024 url, name, display_name, estimated_size, blocked_by_policy);
2013 } 2025 }
2014 2026
2015 void RenderViewHost::OnSetDisplayingPDFContent() { 2027 void RenderViewHost::OnSetDisplayingPDFContent() {
2016 delegate_->SetDisplayingPDFContent(); 2028 delegate_->SetDisplayingPDFContent();
2017 } 2029 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698