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

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

Issue 2812056: Relanding http://codereview.chromium.org/2870050/show. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: rebased Created 10 years, 5 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
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 } 628 }
629 629
630 void RenderViewHost::GotFocus() { 630 void RenderViewHost::GotFocus() {
631 RenderWidgetHost::GotFocus(); // Notifies the renderer it got focus. 631 RenderWidgetHost::GotFocus(); // Notifies the renderer it got focus.
632 632
633 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 633 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
634 if (view) 634 if (view)
635 view->GotFocus(); 635 view->GotFocus();
636 } 636 }
637 637
638 bool RenderViewHost::CanBlur() const {
639 // TODO(brettw) is seems like this function is never implemented. It and the
640 // messages leading here should be removed.
641 return delegate_->CanBlur();
642 }
643
644 void RenderViewHost::SetInitialFocus(bool reverse) { 638 void RenderViewHost::SetInitialFocus(bool reverse) {
645 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); 639 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
646 } 640 }
647 641
648 void RenderViewHost::ClearFocusedNode() { 642 void RenderViewHost::ClearFocusedNode() {
649 Send(new ViewMsg_ClearFocusedNode(routing_id())); 643 Send(new ViewMsg_ClearFocusedNode(routing_id()));
650 } 644 }
651 645
652 void RenderViewHost::UpdateWebPreferences(const WebPreferences& prefs) { 646 void RenderViewHost::UpdateWebPreferences(const WebPreferences& prefs) {
653 Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs)); 647 Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs));
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 const string16& name, 1929 const string16& name,
1936 const string16& display_name, 1930 const string16& display_name,
1937 unsigned long estimated_size, 1931 unsigned long estimated_size,
1938 bool blocked_by_policy) { 1932 bool blocked_by_policy) {
1939 RenderViewHostDelegate::ContentSettings* content_settings_delegate = 1933 RenderViewHostDelegate::ContentSettings* content_settings_delegate =
1940 delegate_->GetContentSettingsDelegate(); 1934 delegate_->GetContentSettingsDelegate();
1941 if (content_settings_delegate) 1935 if (content_settings_delegate)
1942 content_settings_delegate->OnWebDatabaseAccessed( 1936 content_settings_delegate->OnWebDatabaseAccessed(
1943 url, name, display_name, estimated_size, blocked_by_policy); 1937 url, name, display_name, estimated_size, blocked_by_policy);
1944 } 1938 }
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