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/public/browser/web_contents_delegate.h" | 5 #include "content/public/browser/web_contents_delegate.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 PAGE_TRANSITION_LINK, false)); | 101 PAGE_TRANSITION_LINK, false)); |
102 } | 102 } |
103 | 103 |
104 bool WebContentsDelegate::PreHandleKeyboardEvent( | 104 bool WebContentsDelegate::PreHandleKeyboardEvent( |
105 WebContents* source, | 105 WebContents* source, |
106 const NativeWebKeyboardEvent& event, | 106 const NativeWebKeyboardEvent& event, |
107 bool* is_keyboard_shortcut) { | 107 bool* is_keyboard_shortcut) { |
108 return false; | 108 return false; |
109 } | 109 } |
110 | 110 |
| 111 bool WebContentsDelegate::PreHandleGestureEvent( |
| 112 WebContents* source, |
| 113 const blink::WebGestureEvent& event) { |
| 114 return false; |
| 115 } |
| 116 |
111 bool WebContentsDelegate::CanDragEnter( | 117 bool WebContentsDelegate::CanDragEnter( |
112 WebContents* source, | 118 WebContents* source, |
113 const DropData& data, | 119 const DropData& data, |
114 blink::WebDragOperationsMask operations_allowed) { | 120 blink::WebDragOperationsMask operations_allowed) { |
115 return true; | 121 return true; |
116 } | 122 } |
117 | 123 |
118 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { | 124 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { |
119 return true; | 125 return true; |
120 } | 126 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 188 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
183 attached_contents_.erase(web_contents); | 189 attached_contents_.erase(web_contents); |
184 } | 190 } |
185 | 191 |
186 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 192 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
187 const WebContents* web_contents) const { | 193 const WebContents* web_contents) const { |
188 return gfx::Size(); | 194 return gfx::Size(); |
189 } | 195 } |
190 | 196 |
191 } // namespace content | 197 } // namespace content |
OLD | NEW |