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

Side by Side Diff: content/browser/web_contents/web_contents_view_mac.h

Issue 501583003: Move external popup menus from WebViewClient to WebFrameClient, part 3/3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget( 86 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget(
87 RenderWidgetHost* render_widget_host) OVERRIDE; 87 RenderWidgetHost* render_widget_host) OVERRIDE;
88 virtual void SetPageTitle(const base::string16& title) OVERRIDE; 88 virtual void SetPageTitle(const base::string16& title) OVERRIDE;
89 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 89 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
90 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 90 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE;
91 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; 91 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE;
92 virtual bool IsEventTracking() const OVERRIDE; 92 virtual bool IsEventTracking() const OVERRIDE;
93 virtual void CloseTabAfterEventTracking() OVERRIDE; 93 virtual void CloseTabAfterEventTracking() OVERRIDE;
94 94
95 // Backend implementation of RenderViewHostDelegateView. 95 // Backend implementation of RenderViewHostDelegateView.
96 virtual void ShowContextMenu(content::RenderFrameHost* render_frame_host, 96 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
97 const ContextMenuParams& params) OVERRIDE; 97 const ContextMenuParams& params) OVERRIDE;
98 virtual void ShowPopupMenu(const gfx::Rect& bounds, 98 virtual void ShowPopupMenu(RenderFrameHost* render_frame_host,
99 const gfx::Rect& bounds,
99 int item_height, 100 int item_height,
100 double item_font_size, 101 double item_font_size,
101 int selected_item, 102 int selected_item,
102 const std::vector<MenuItem>& items, 103 const std::vector<MenuItem>& items,
103 bool right_aligned, 104 bool right_aligned,
104 bool allow_multiple_selection) OVERRIDE; 105 bool allow_multiple_selection) OVERRIDE;
105 virtual void HidePopupMenu() OVERRIDE; 106 virtual void HidePopupMenu() OVERRIDE;
106 virtual void StartDragging(const DropData& drop_data, 107 virtual void StartDragging(const DropData& drop_data,
107 blink::WebDragOperationsMask allowed_operations, 108 blink::WebDragOperationsMask allowed_operations,
108 const gfx::ImageSkia& image, 109 const gfx::ImageSkia& image,
(...skipping 28 matching lines...) Expand all
137 bool allow_other_views_; 138 bool allow_other_views_;
138 139
139 scoped_ptr<PopupMenuHelper> popup_menu_helper_; 140 scoped_ptr<PopupMenuHelper> popup_menu_helper_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
142 }; 143 };
143 144
144 } // namespace content 145 } // namespace content
145 146
146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.cc ('k') | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698