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 TextInputState RenderWidgetHostDelegate::GetTextInputState() { |
| 59 return TextInputState(); |
| 60 } |
| 61 |
| 62 void RenderWidgetHostDelegate::UpdateTextInputState( |
| 63 RenderWidgetHostViewBase* rwhv, |
| 64 bool text_input_state_changed) {} |
| 65 |
58 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( | 66 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( |
59 RenderWidgetHostImpl* render_widget_host) const { | 67 RenderWidgetHostImpl* render_widget_host) const { |
60 return gfx::Rect(); | 68 return gfx::Rect(); |
61 }; | 69 }; |
62 | 70 |
63 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab( | 71 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab( |
64 RenderWidgetHostImpl* render_widget_host) const { | 72 RenderWidgetHostImpl* render_widget_host) const { |
65 return false; | 73 return false; |
66 } | 74 } |
67 | 75 |
68 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( | 76 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( |
69 RenderWidgetHostImpl* render_widget_host) const { | 77 RenderWidgetHostImpl* render_widget_host) const { |
70 return blink::WebDisplayModeBrowser; | 78 return blink::WebDisplayModeBrowser; |
71 } | 79 } |
72 | 80 |
73 } // namespace content | 81 } // namespace content |
OLD | NEW |