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

Side by Side Diff: content/public/browser/web_contents_view_mac_delegate.h

Issue 9307063: Split TabContentsViewMac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deps fix Created 8 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_MAC_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_MAC_DELEGATE_H_
7 #pragma once
8
9 #import <Cocoa/Cocoa.h>
10
11 #include "content/common/content_export.h"
12
13 struct ContextMenuParams;
14 class RenderWidgetHost;
15 @protocol RenderWidgetHostViewMacDelegate;
16
17 namespace content {
18
19 class WebDragDestDelegate;
20
21 // This interface allows a client to extend the functionality of
22 // WebContentsViewMac.
23
jochen (gone - plz use gerrit) 2012/02/03 00:13:33 nit. no empty line?
Avi (use Gerrit) 2012/02/03 01:18:53 Done.
24 class CONTENT_EXPORT WebContentsViewMacDelegate {
25 public:
26 virtual ~WebContentsViewMacDelegate() {}
27
28 // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle
29 // events on the responder chain.
30 virtual NSObject<RenderWidgetHostViewMacDelegate>*
31 CreateRenderWidgetHostViewDelegate(
32 RenderWidgetHost* render_widget_host) = 0;
33
34 // Returns a delegate to process drags not handled by content.
35 virtual WebDragDestDelegate* DragDelegate() = 0;
36
37 // Shows a context menu.
38 virtual void ShowContextMenu(const ContextMenuParams& params) = 0;
jam 2012/02/03 00:29:15 i think this isn't needed because WebContentsDeleg
Avi (use Gerrit) 2012/02/03 01:18:53 Look at the implementation of this. It's the TCVs
jam 2012/02/03 07:59:17 RenderViewHost will call TabContentsViewMac::ShowC
39
40 // Notifications that the native view was created/destroyed.
41 virtual void NativeViewCreated(NSView* view) = 0;
42 virtual void NativeViewDestroyed(NSView* view) = 0;
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_MAC_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698