OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host_delegate.h" | 5 #include "content/browser/renderer_host/render_view_host_delegate.h" |
6 | 6 |
7 #include "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
8 #include "webkit/glue/webpreferences.h" | 8 #include "webkit/glue/webpreferences.h" |
9 | 9 |
| 10 using content::WebContents; |
| 11 |
10 RenderViewHostDelegate::View* RenderViewHostDelegate::GetViewDelegate() { | 12 RenderViewHostDelegate::View* RenderViewHostDelegate::GetViewDelegate() { |
11 return NULL; | 13 return NULL; |
12 } | 14 } |
13 | 15 |
14 RenderViewHostDelegate::RendererManagement* | 16 RenderViewHostDelegate::RendererManagement* |
15 RenderViewHostDelegate::GetRendererManagementDelegate() { | 17 RenderViewHostDelegate::GetRendererManagementDelegate() { |
16 return NULL; | 18 return NULL; |
17 } | 19 } |
18 | 20 |
19 bool RenderViewHostDelegate::OnMessageReceived(const IPC::Message& message) { | 21 bool RenderViewHostDelegate::OnMessageReceived(const IPC::Message& message) { |
20 return false; | 22 return false; |
21 } | 23 } |
22 | 24 |
23 const GURL& RenderViewHostDelegate::GetURL() const { | 25 const GURL& RenderViewHostDelegate::GetURL() const { |
24 return GURL::EmptyGURL(); | 26 return GURL::EmptyGURL(); |
25 } | 27 } |
26 | 28 |
27 TabContents* RenderViewHostDelegate::GetAsTabContents() { | 29 TabContents* RenderViewHostDelegate::GetAsTabContents() { |
28 return NULL; | 30 return NULL; |
29 } | 31 } |
30 | 32 |
| 33 WebContents* RenderViewHostDelegate::GetAsWebContents() { |
| 34 return NULL; |
| 35 } |
| 36 |
31 WebPreferences RenderViewHostDelegate::GetWebkitPrefs() { | 37 WebPreferences RenderViewHostDelegate::GetWebkitPrefs() { |
32 return WebPreferences(); | 38 return WebPreferences(); |
33 } | 39 } |
34 | 40 |
35 bool RenderViewHostDelegate::PreHandleKeyboardEvent( | 41 bool RenderViewHostDelegate::PreHandleKeyboardEvent( |
36 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { | 42 const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { |
37 return false; | 43 return false; |
38 } | 44 } |
39 | 45 |
40 bool RenderViewHostDelegate::IsFullscreenForCurrentTab() const { | 46 bool RenderViewHostDelegate::IsFullscreenForCurrentTab() const { |
41 return false; | 47 return false; |
42 } | 48 } |
OLD | NEW |