| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 return nullptr; | 43 return nullptr; |
| 44 } | 44 } |
| 45 | 45 |
| 46 // If a delegate does not override this, the RenderWidgetHostView will | 46 // If a delegate does not override this, the RenderWidgetHostView will |
| 47 // assume its own RenderWidgetHost should consume keyboard events. | 47 // assume its own RenderWidgetHost should consume keyboard events. |
| 48 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost( | 48 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost( |
| 49 RenderWidgetHostImpl* receiving_widget) { | 49 RenderWidgetHostImpl* receiving_widget) { |
| 50 return receiving_widget; | 50 return receiving_widget; |
| 51 } | 51 } |
| 52 | 52 |
| 53 RenderWidgetHostImpl* |
| 54 RenderWidgetHostDelegate::GetRenderWidgetHostWithPageFocus() { |
| 55 return nullptr; |
| 56 } |
| 57 |
| 53 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab() const { | 58 bool RenderWidgetHostDelegate::IsFullscreenForCurrentTab() const { |
| 54 return false; | 59 return false; |
| 55 } | 60 } |
| 56 | 61 |
| 57 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( | 62 blink::WebDisplayMode RenderWidgetHostDelegate::GetDisplayMode( |
| 58 RenderWidgetHostImpl* render_widget_host) const { | 63 RenderWidgetHostImpl* render_widget_host) const { |
| 59 return blink::WebDisplayModeBrowser; | 64 return blink::WebDisplayModeBrowser; |
| 60 } | 65 } |
| 61 | 66 |
| 62 bool RenderWidgetHostDelegate::HasMouseLock( | 67 bool RenderWidgetHostDelegate::HasMouseLock( |
| 63 RenderWidgetHostImpl* render_widget_host) { | 68 RenderWidgetHostImpl* render_widget_host) { |
| 64 return false; | 69 return false; |
| 65 } | 70 } |
| 66 | 71 |
| 67 TextInputManager* RenderWidgetHostDelegate::GetTextInputManager() { | 72 TextInputManager* RenderWidgetHostDelegate::GetTextInputManager() { |
| 68 return nullptr; | 73 return nullptr; |
| 69 } | 74 } |
| 70 | 75 |
| 71 bool RenderWidgetHostDelegate::IsHidden() { | 76 bool RenderWidgetHostDelegate::IsHidden() { |
| 72 return false; | 77 return false; |
| 73 } | 78 } |
| 74 | 79 |
| 75 } // namespace content | 80 } // namespace content |
| OLD | NEW |