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

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

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 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
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual RenderWidgetHostView* CreateViewForPopupWidget( 92 virtual RenderWidgetHostView* CreateViewForPopupWidget(
93 RenderWidgetHost* render_widget_host) OVERRIDE; 93 RenderWidgetHost* render_widget_host) OVERRIDE;
94 virtual void SetPageTitle(const base::string16& title) OVERRIDE; 94 virtual void SetPageTitle(const base::string16& title) OVERRIDE;
95 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 95 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
96 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 96 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE;
97 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; 97 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE;
98 virtual bool IsEventTracking() const OVERRIDE; 98 virtual bool IsEventTracking() const OVERRIDE;
99 virtual void CloseTabAfterEventTracking() OVERRIDE; 99 virtual void CloseTabAfterEventTracking() OVERRIDE;
100 100
101 // Backend implementation of RenderViewHostDelegateView. 101 // Backend implementation of RenderViewHostDelegateView.
102 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; 102 virtual void ShowContextMenu(content::RenderFrameHost* render_frame_host,
103 const ContextMenuParams& params) OVERRIDE;
103 virtual void ShowPopupMenu(const gfx::Rect& bounds, 104 virtual void ShowPopupMenu(const gfx::Rect& bounds,
104 int item_height, 105 int item_height,
105 double item_font_size, 106 double item_font_size,
106 int selected_item, 107 int selected_item,
107 const std::vector<MenuItem>& items, 108 const std::vector<MenuItem>& items,
108 bool right_aligned, 109 bool right_aligned,
109 bool allow_multiple_selection) OVERRIDE; 110 bool allow_multiple_selection) OVERRIDE;
110 virtual void StartDragging(const DropData& drop_data, 111 virtual void StartDragging(const DropData& drop_data,
111 blink::WebDragOperationsMask allowed_operations, 112 blink::WebDragOperationsMask allowed_operations,
112 const gfx::ImageSkia& image, 113 const gfx::ImageSkia& image,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // The underlay view which this view is rendered above. 154 // The underlay view which this view is rendered above.
154 // Underlay view has |overlay_view_| set to this view. 155 // Underlay view has |overlay_view_| set to this view.
155 WebContentsViewMac* underlay_view_; 156 WebContentsViewMac* underlay_view_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 158 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
158 }; 159 };
159 160
160 } // namespace content 161 } // namespace content
161 162
162 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 163 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698