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

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

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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
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_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(__OBJC__) 9 #if defined(__OBJC__)
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void CreateNewWidget(int route_id, 95 virtual void CreateNewWidget(int route_id,
96 WebKit::WebPopupType popup_type) OVERRIDE; 96 WebKit::WebPopupType popup_type) OVERRIDE;
97 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; 97 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
98 virtual void ShowCreatedWindow(int route_id, 98 virtual void ShowCreatedWindow(int route_id,
99 WindowOpenDisposition disposition, 99 WindowOpenDisposition disposition,
100 const gfx::Rect& initial_pos, 100 const gfx::Rect& initial_pos,
101 bool user_gesture) OVERRIDE; 101 bool user_gesture) OVERRIDE;
102 virtual void ShowCreatedWidget(int route_id, 102 virtual void ShowCreatedWidget(int route_id,
103 const gfx::Rect& initial_pos) OVERRIDE; 103 const gfx::Rect& initial_pos) OVERRIDE;
104 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; 104 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
105 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; 105 virtual void ShowContextMenu(
106 const content::ContextMenuParams& params) OVERRIDE;
106 virtual void ShowPopupMenu(const gfx::Rect& bounds, 107 virtual void ShowPopupMenu(const gfx::Rect& bounds,
107 int item_height, 108 int item_height,
108 double item_font_size, 109 double item_font_size,
109 int selected_item, 110 int selected_item,
110 const std::vector<WebMenuItem>& items, 111 const std::vector<WebMenuItem>& items,
111 bool right_aligned) OVERRIDE; 112 bool right_aligned) OVERRIDE;
112 virtual void StartDragging(const WebDropData& drop_data, 113 virtual void StartDragging(const WebDropData& drop_data,
113 WebKit::WebDragOperationsMask allowed_operations, 114 WebKit::WebDragOperationsMask allowed_operations,
114 const SkBitmap& image, 115 const SkBitmap& image,
115 const gfx::Point& image_offset) OVERRIDE; 116 const gfx::Point& image_offset) OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 159 }
159 160
160 namespace web_contents_view_mac { 161 namespace web_contents_view_mac {
161 // Creates a WebContentsViewMac. Takes ownership of |delegate|. 162 // Creates a WebContentsViewMac. Takes ownership of |delegate|.
162 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView( 163 CONTENT_EXPORT content::WebContentsView* CreateWebContentsView(
163 content::WebContents* web_contents, 164 content::WebContents* web_contents,
164 content::WebContentsViewMacDelegate* delegate); 165 content::WebContentsViewMacDelegate* delegate);
165 } 166 }
166 167
167 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 168 #endif // CONTENT_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698