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 "content/browser/renderer_host/render_widget_host_delegate.h" | 5 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "components/rappor/public/sample.h" | 8 #include "components/rappor/public/sample.h" |
9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" | 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
| 10 #include "content/public/browser/keyboard_event_processing_result.h" |
10 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 void RenderWidgetHostDelegate::GetScreenInfo(ScreenInfo*) {} | 15 void RenderWidgetHostDelegate::GetScreenInfo(ScreenInfo*) {} |
15 | 16 |
16 bool RenderWidgetHostDelegate::PreHandleKeyboardEvent( | 17 KeyboardEventProcessingResult RenderWidgetHostDelegate::PreHandleKeyboardEvent( |
17 const NativeWebKeyboardEvent& event, | 18 const NativeWebKeyboardEvent& event) { |
18 bool* is_keyboard_shortcut) { | 19 return KeyboardEventProcessingResult::NOT_HANDLED; |
19 return false; | |
20 } | 20 } |
21 | 21 |
22 bool RenderWidgetHostDelegate::HandleWheelEvent( | 22 bool RenderWidgetHostDelegate::HandleWheelEvent( |
23 const blink::WebMouseWheelEvent& event) { | 23 const blink::WebMouseWheelEvent& event) { |
24 return false; | 24 return false; |
25 } | 25 } |
26 | 26 |
27 bool RenderWidgetHostDelegate::PreHandleGestureEvent( | 27 bool RenderWidgetHostDelegate::PreHandleGestureEvent( |
28 const blink::WebGestureEvent& event) { | 28 const blink::WebGestureEvent& event) { |
29 return false; | 29 return false; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 rappor::Sample* sample) { | 101 rappor::Sample* sample) { |
102 sample->SetStringField("Domain", "Unknown"); | 102 sample->SetStringField("Domain", "Unknown"); |
103 return false; | 103 return false; |
104 } | 104 } |
105 | 105 |
106 WebContents* RenderWidgetHostDelegate::GetAsWebContents() { | 106 WebContents* RenderWidgetHostDelegate::GetAsWebContents() { |
107 return nullptr; | 107 return nullptr; |
108 } | 108 } |
109 | 109 |
110 } // namespace content | 110 } // namespace content |
OLD | NEW |