| 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 "athena/content/public/web_contents_view_delegate_creator.h" | 5 #include "athena/content/public/web_contents_view_delegate_creator.h" |
| 6 | 6 |
| 7 #include "athena/content/render_view_context_menu_impl.h" | 7 #include "athena/content/render_view_context_menu_impl.h" |
| 8 #include "components/web_modal/popup_manager.h" | 8 #include "components/web_modal/popup_manager.h" |
| 9 #include "components/web_modal/single_web_contents_dialog_manager.h" | 9 #include "components/web_modal/single_web_contents_dialog_manager.h" |
| 10 #include "components/web_modal/web_contents_modal_dialog_host.h" | 10 #include "components/web_modal/web_contents_modal_dialog_host.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 virtual bool Focus() OVERRIDE { | 34 virtual bool Focus() OVERRIDE { |
| 35 web_modal::PopupManager* popup_manager = | 35 web_modal::PopupManager* popup_manager = |
| 36 web_modal::PopupManager::FromWebContents(web_contents_); | 36 web_modal::PopupManager::FromWebContents(web_contents_); |
| 37 if (popup_manager) | 37 if (popup_manager) |
| 38 popup_manager->WasFocused(web_contents_); | 38 popup_manager->WasFocused(web_contents_); |
| 39 return false; | 39 return false; |
| 40 } | 40 } |
| 41 | 41 |
| 42 virtual void TakeFocus(bool reverse) OVERRIDE {} | |
| 43 virtual void StoreFocus() OVERRIDE {} | |
| 44 virtual void RestoreFocus() OVERRIDE {} | |
| 45 | |
| 46 virtual void ShowContextMenu( | 42 virtual void ShowContextMenu( |
| 47 content::RenderFrameHost* render_frame_host, | 43 content::RenderFrameHost* render_frame_host, |
| 48 const content::ContextMenuParams& params) OVERRIDE { | 44 const content::ContextMenuParams& params) OVERRIDE { |
| 49 ShowMenu(BuildMenu( | 45 ShowMenu(BuildMenu( |
| 50 content::WebContents::FromRenderFrameHost(render_frame_host), params)); | 46 content::WebContents::FromRenderFrameHost(render_frame_host), params)); |
| 51 } | 47 } |
| 52 | 48 |
| 53 virtual void SizeChanged(const gfx::Size& size) OVERRIDE { | 49 virtual void SizeChanged(const gfx::Size& size) OVERRIDE { |
| 54 // TODO(oshima|sadrul): Implement this when sad_tab is componentized. | 50 // TODO(oshima|sadrul): Implement this when sad_tab is componentized. |
| 55 // See c/b/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc | 51 // See c/b/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 SingleWebContentsDialogManager* | 146 SingleWebContentsDialogManager* |
| 151 WebContentsModalDialogManager::CreateNativeWebModalManager( | 147 WebContentsModalDialogManager::CreateNativeWebModalManager( |
| 152 NativeWebContentsModalDialog dialog, | 148 NativeWebContentsModalDialog dialog, |
| 153 SingleWebContentsDialogManagerDelegate* native_delegate) { | 149 SingleWebContentsDialogManagerDelegate* native_delegate) { |
| 154 // TODO(oshima): Investigate if we need to implement this. | 150 // TODO(oshima): Investigate if we need to implement this. |
| 155 NOTREACHED(); | 151 NOTREACHED(); |
| 156 return NULL; | 152 return NULL; |
| 157 } | 153 } |
| 158 | 154 |
| 159 } // namespace web_modal | 155 } // namespace web_modal |
| OLD | NEW |