| 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 30 matching lines...) Expand all Loading... |
| 41 return nullptr; | 41 return nullptr; |
| 42 } | 42 } |
| 43 | 43 |
| 44 // If a delegate does not override this, the RenderWidgetHostView will | 44 // If a delegate does not override this, the RenderWidgetHostView will |
| 45 // assume its own RenderWidgetHost should consume keyboard events. | 45 // assume its own RenderWidgetHost should consume keyboard events. |
| 46 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost( | 46 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost( |
| 47 RenderWidgetHostImpl* receiving_widget) { | 47 RenderWidgetHostImpl* receiving_widget) { |
| 48 return receiving_widget; | 48 return receiving_widget; |
| 49 } | 49 } |
| 50 | 50 |
| 51 TextInputState RenderWidgetHostDelegate::GetTextInputState() { |
| 52 return TextInputState(); |
| 53 } |
| 54 |
| 55 void RenderWidgetHostDelegate::UpdateTextInputState( |
| 56 RenderWidgetHostViewBase* rwhv, |
| 57 bool text_input_state_changed) {} |
| 58 |
| 51 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( | 59 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( |
| 52 RenderWidgetHostImpl* render_widget_host) const { | 60 RenderWidgetHostImpl* render_widget_host) const { |
| 53 return gfx::Rect(); | 61 return gfx::Rect(); |
| 54 }; | 62 }; |
| 55 | 63 |
| 56 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab( | 64 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab( |
| 57 RenderWidgetHostImpl* render_widget_host) const { | 65 RenderWidgetHostImpl* render_widget_host) const { |
| 58 return false; | 66 return false; |
| 59 } | 67 } |
| 60 | 68 |
| 61 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( | 69 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( |
| 62 RenderWidgetHostImpl* render_widget_host) const { | 70 RenderWidgetHostImpl* render_widget_host) const { |
| 63 return blink::WebDisplayModeBrowser; | 71 return blink::WebDisplayModeBrowser; |
| 64 } | 72 } |
| 65 | 73 |
| 66 } // namespace content | 74 } // namespace content |
| OLD | NEW |