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

Side by Side Diff: chrome/browser/tab_contents/chrome_web_contents_view_mac_delegate.mm

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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 #import "chrome/browser/tab_contents/chrome_web_contents_view_mac_delegate.h" 5 #import "chrome/browser/tab_contents/chrome_web_contents_view_mac_delegate.h"
6 6
7 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegat e.h" 7 #import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegat e.h"
8 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h" 8 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h"
9 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_mac.h" 9 #include "chrome/browser/tab_contents/web_drag_bookmark_handler_mac.h"
10 #import "chrome/browser/ui/cocoa/view_id_util.h" 10 #import "chrome/browser/ui/cocoa/view_id_util.h"
(...skipping 11 matching lines...) Expand all
22 content::WebContents* web_contents) 22 content::WebContents* web_contents)
23 : bookmark_handler_(new WebDragBookmarkHandlerMac), 23 : bookmark_handler_(new WebDragBookmarkHandlerMac),
24 web_contents_(web_contents) { 24 web_contents_(web_contents) {
25 } 25 }
26 26
27 ChromeWebContentsViewMacDelegate::~ChromeWebContentsViewMacDelegate() { 27 ChromeWebContentsViewMacDelegate::~ChromeWebContentsViewMacDelegate() {
28 } 28 }
29 29
30 NSObject<RenderWidgetHostViewMacDelegate>* 30 NSObject<RenderWidgetHostViewMacDelegate>*
31 ChromeWebContentsViewMacDelegate::CreateRenderWidgetHostViewDelegate( 31 ChromeWebContentsViewMacDelegate::CreateRenderWidgetHostViewDelegate(
32 RenderWidgetHost* render_widget_host) { 32 content::RenderWidgetHost* render_widget_host) {
33 return [[ChromeRenderWidgetHostViewMacDelegate alloc] 33 return [[ChromeRenderWidgetHostViewMacDelegate alloc]
34 initWithRenderWidgetHost:render_widget_host]; 34 initWithRenderWidgetHost:render_widget_host];
35 } 35 }
36 36
37 content::WebDragDestDelegate* ChromeWebContentsViewMacDelegate::DragDelegate() { 37 content::WebDragDestDelegate* ChromeWebContentsViewMacDelegate::DragDelegate() {
38 return static_cast<content::WebDragDestDelegate*>(bookmark_handler_.get()); 38 return static_cast<content::WebDragDestDelegate*>(bookmark_handler_.get());
39 } 39 }
40 40
41 void ChromeWebContentsViewMacDelegate::ShowContextMenu( 41 void ChromeWebContentsViewMacDelegate::ShowContextMenu(
42 const content::ContextMenuParams& params) { 42 const content::ContextMenuParams& params) {
(...skipping 16 matching lines...) Expand all
59 context_menu_->Init(); 59 context_menu_->Init();
60 } 60 }
61 61
62 void ChromeWebContentsViewMacDelegate::NativeViewCreated(NSView* view) { 62 void ChromeWebContentsViewMacDelegate::NativeViewCreated(NSView* view) {
63 view_id_util::SetID(view, VIEW_ID_TAB_CONTAINER); 63 view_id_util::SetID(view, VIEW_ID_TAB_CONTAINER);
64 } 64 }
65 65
66 void ChromeWebContentsViewMacDelegate::NativeViewDestroyed(NSView* view) { 66 void ChromeWebContentsViewMacDelegate::NativeViewDestroyed(NSView* view) {
67 view_id_util::UnsetID(view); 67 view_id_util::UnsetID(view);
68 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698