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

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

Issue 2823042: Implement IsSearchProviderInstalled and a test for it. (Closed)
Patch Set: Addressed feedback. 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_delegate.h" 5 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
6 6
7 #include "base/singleton.h" 7 #include "base/singleton.h"
8 #include "chrome/common/render_messages.h"
8 #include "chrome/common/renderer_preferences.h" 9 #include "chrome/common/renderer_preferences.h"
9 #include "gfx/rect.h" 10 #include "gfx/rect.h"
10 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
11 #include "webkit/glue/webpreferences.h" 12 #include "webkit/glue/webpreferences.h"
12 13
13 #if defined(OS_LINUX) 14 #if defined(OS_LINUX)
14 #include "chrome/browser/gtk/gtk_util.h" 15 #include "chrome/browser/gtk/gtk_util.h"
15 #endif 16 #endif
16 17
17 RenderViewHostDelegate::View* RenderViewHostDelegate::GetViewDelegate() { 18 RenderViewHostDelegate::View* RenderViewHostDelegate::GetViewDelegate() {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 78 }
78 79
79 TabContents* RenderViewHostDelegate::GetAsTabContents() { 80 TabContents* RenderViewHostDelegate::GetAsTabContents() {
80 return NULL; 81 return NULL;
81 } 82 }
82 83
83 GURL RenderViewHostDelegate::GetAlternateErrorPageURL() const { 84 GURL RenderViewHostDelegate::GetAlternateErrorPageURL() const {
84 return GURL(); 85 return GURL();
85 } 86 }
86 87
88 ViewHostMsg_GetSearchProviderInstallState_Params
89 RenderViewHostDelegate::GetSearchProviderInstallState(const GURL& url) {
90 return ViewHostMsg_GetSearchProviderInstallState_Params::Denied();
91 }
92
87 WebPreferences RenderViewHostDelegate::GetWebkitPrefs() { 93 WebPreferences RenderViewHostDelegate::GetWebkitPrefs() {
88 return WebPreferences(); 94 return WebPreferences();
89 } 95 }
90 96
91 bool RenderViewHostDelegate::CanBlur() const { 97 bool RenderViewHostDelegate::CanBlur() const {
92 return true; 98 return true;
93 } 99 }
94 100
95 gfx::Rect RenderViewHostDelegate::GetRootWindowResizerRect() const { 101 gfx::Rect RenderViewHostDelegate::GetRootWindowResizerRect() const {
96 return gfx::Rect(); 102 return gfx::Rect();
97 } 103 }
98 104
99 bool RenderViewHostDelegate::IsExternalTabContainer() const { 105 bool RenderViewHostDelegate::IsExternalTabContainer() const {
100 return false; 106 return false;
101 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698