| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 PAGE_TRANSITION_LINK, false)); | 103 PAGE_TRANSITION_LINK, false)); |
| 104 } | 104 } |
| 105 | 105 |
| 106 bool WebContentsDelegate::PreHandleKeyboardEvent( | 106 bool WebContentsDelegate::PreHandleKeyboardEvent( |
| 107 WebContents* source, | 107 WebContents* source, |
| 108 const NativeWebKeyboardEvent& event, | 108 const NativeWebKeyboardEvent& event, |
| 109 bool* is_keyboard_shortcut) { | 109 bool* is_keyboard_shortcut) { |
| 110 return false; | 110 return false; |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool WebContentsDelegate::PreHandleGestureEvent( |
| 114 WebContents* source, |
| 115 const blink::WebGestureEvent& event) { |
| 116 return false; |
| 117 } |
| 118 |
| 113 bool WebContentsDelegate::CanDragEnter( | 119 bool WebContentsDelegate::CanDragEnter( |
| 114 WebContents* source, | 120 WebContents* source, |
| 115 const DropData& data, | 121 const DropData& data, |
| 116 blink::WebDragOperationsMask operations_allowed) { | 122 blink::WebDragOperationsMask operations_allowed) { |
| 117 return true; | 123 return true; |
| 118 } | 124 } |
| 119 | 125 |
| 120 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { | 126 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { |
| 121 return true; | 127 return true; |
| 122 } | 128 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 190 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
| 185 attached_contents_.erase(web_contents); | 191 attached_contents_.erase(web_contents); |
| 186 } | 192 } |
| 187 | 193 |
| 188 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 194 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
| 189 const WebContents* web_contents) const { | 195 const WebContents* web_contents) const { |
| 190 return gfx::Size(); | 196 return gfx::Size(); |
| 191 } | 197 } |
| 192 | 198 |
| 193 } // namespace content | 199 } // namespace content |
| OLD | NEW |