Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: athena/content/web_contents_view_delegate_factory_impl.cc

Issue 507363002: MacViews: Guard Objective-C bits in content::WebContentsViewDelegate with __OBJC__ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OS_MACOSX -> __OBJC__ + void* Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/native/aw_web_contents_view_delegate.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/native/aw_web_contents_view_delegate.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698