OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 6 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
7 #include "ui/gfx/geometry/rect.h" | 7 #include "ui/gfx/geometry/rect.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 return nullptr; | 48 return nullptr; |
49 } | 49 } |
50 | 50 |
51 // If a delegate does not override this, the RenderWidgetHostView will | 51 // If a delegate does not override this, the RenderWidgetHostView will |
52 // assume its own RenderWidgetHost should consume keyboard events. | 52 // assume its own RenderWidgetHost should consume keyboard events. |
53 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost( | 53 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost( |
54 RenderWidgetHostImpl* receiving_widget) { | 54 RenderWidgetHostImpl* receiving_widget) { |
55 return receiving_widget; | 55 return receiving_widget; |
56 } | 56 } |
57 | 57 |
| 58 RenderWidgetHostViewBase* RenderWidgetHostDelegate::GetFocusedView() { |
| 59 return nullptr; |
| 60 } |
| 61 |
58 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( | 62 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( |
59 RenderWidgetHostImpl* render_widget_host) const { | 63 RenderWidgetHostImpl* render_widget_host) const { |
60 return gfx::Rect(); | 64 return gfx::Rect(); |
61 }; | 65 }; |
62 | 66 |
63 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab( | 67 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab( |
64 RenderWidgetHostImpl* render_widget_host) const { | 68 RenderWidgetHostImpl* render_widget_host) const { |
65 return false; | 69 return false; |
66 } | 70 } |
67 | 71 |
68 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( | 72 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( |
69 RenderWidgetHostImpl* render_widget_host) const { | 73 RenderWidgetHostImpl* render_widget_host) const { |
70 return blink::WebDisplayModeBrowser; | 74 return blink::WebDisplayModeBrowser; |
71 } | 75 } |
72 | 76 |
73 } // namespace content | 77 } // namespace content |
OLD | NEW |