| 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 "base/basictypes.h" | 5 #include "base/basictypes.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 | 8 |
| 8 namespace content { | 9 namespace content { |
| 9 | 10 |
| 10 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent( | 11 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent( |
| 11 const NativeWebKeyboardEvent& event, | 12 const NativeWebKeyboardEvent& event, |
| 12 bool* is_keyboard_shortcut) { | 13 bool* is_keyboard_shortcut) { |
| 13 return false; | 14 return false; |
| 14 } | 15 } |
| 15 | 16 |
| 16 bool RenderWidgetHostDelegate::HandleWheelEvent( | 17 bool RenderWidgetHostDelegate::HandleWheelEvent( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 RenderWidgetHostDelegate::GetInputEventRouter() { | 47 RenderWidgetHostDelegate::GetInputEventRouter() { |
| 47 return nullptr; | 48 return nullptr; |
| 48 } | 49 } |
| 49 | 50 |
| 50 // If a delegate does not override this, the RenderWidgetHostView will | 51 // If a delegate does not override this, the RenderWidgetHostView will |
| 51 // assume its own RenderWidgetHost should consume keyboard events. | 52 // assume its own RenderWidgetHost should consume keyboard events. |
| 52 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost() { | 53 RenderWidgetHostImpl* RenderWidgetHostDelegate::GetFocusedRenderWidgetHost() { |
| 53 return nullptr; | 54 return nullptr; |
| 54 } | 55 } |
| 55 | 56 |
| 57 gfx::Rect RenderWidgetHostDelegate::GetRootWindowResizerRect( |
| 58 RenderWidgetHostImpl* render_widget_host) const { |
| 59 return gfx::Rect(); |
| 60 }; |
| 61 |
| 56 } // namespace content | 62 } // namespace content |
| OLD | NEW |