| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_view_delegate.h" | 5 #include "content/public/browser/web_contents_view_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 WebContentsViewDelegate::~WebContentsViewDelegate() { | 11 WebContentsViewDelegate::~WebContentsViewDelegate() { |
| 12 } | 12 } |
| 13 | 13 |
| 14 WebDragDestDelegate* WebContentsViewDelegate::GetDragDestDelegate() { | 14 WebDragDestDelegate* WebContentsViewDelegate::GetDragDestDelegate() { |
| 15 return NULL; | 15 return NULL; |
| 16 } | 16 } |
| 17 | 17 |
| 18 void WebContentsViewDelegate::ShowContextMenu( | 18 void WebContentsViewDelegate::ShowContextMenu( |
| 19 RenderFrameHost* render_frame_host, | 19 RenderFrameHost* render_frame_host, |
| 20 const ContextMenuParams& params) { | 20 const ContextMenuParams& params) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 void WebContentsViewDelegate::StoreFocus() { | 23 bool WebContentsViewDelegate::StoreFocus() { |
| 24 return false; |
| 24 } | 25 } |
| 25 | 26 |
| 26 void WebContentsViewDelegate::RestoreFocus() { | 27 bool WebContentsViewDelegate::RestoreFocus() { |
| 28 return false; |
| 27 } | 29 } |
| 28 | 30 |
| 29 bool WebContentsViewDelegate::Focus() { | 31 bool WebContentsViewDelegate::Focus() { |
| 30 return false; | 32 return false; |
| 31 } | 33 } |
| 32 | 34 |
| 33 void WebContentsViewDelegate::TakeFocus(bool reverse) { | 35 bool WebContentsViewDelegate::TakeFocus(bool reverse) { |
| 36 return false; |
| 34 } | 37 } |
| 35 | 38 |
| 36 void WebContentsViewDelegate::ShowDisambiguationPopup( | 39 void WebContentsViewDelegate::ShowDisambiguationPopup( |
| 37 const gfx::Rect& target_rect, | 40 const gfx::Rect& target_rect, |
| 38 const SkBitmap& zoomed_bitmap, | 41 const SkBitmap& zoomed_bitmap, |
| 39 const gfx::NativeView content, | 42 const gfx::NativeView content, |
| 40 const base::Callback<void(ui::GestureEvent*)>& gesture_cb, | 43 const base::Callback<void(ui::GestureEvent*)>& gesture_cb, |
| 41 const base::Callback<void(ui::MouseEvent*)>& mouse_cb) { | 44 const base::Callback<void(ui::MouseEvent*)>& mouse_cb) { |
| 42 } | 45 } |
| 43 | 46 |
| 44 void WebContentsViewDelegate::HideDisambiguationPopup() { | 47 void WebContentsViewDelegate::HideDisambiguationPopup() { |
| 45 } | 48 } |
| 46 | 49 |
| 47 void WebContentsViewDelegate::SizeChanged(const gfx::Size& size) { | 50 void WebContentsViewDelegate::SizeChanged(const gfx::Size& size) { |
| 48 } | 51 } |
| 49 | 52 |
| 50 void* WebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( | 53 void* WebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( |
| 51 RenderWidgetHost* render_widget_host) { | 54 RenderWidgetHost* render_widget_host) { |
| 52 return NULL; | 55 return NULL; |
| 53 } | 56 } |
| 54 | 57 |
| 55 } // namespace content | 58 } // namespace content |
| OLD | NEW |