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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 4078003: Refactoring select popup on Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class SSLClientAuthHandler; 43 class SSLClientAuthHandler;
44 class SSLAddCertHandler; 44 class SSLAddCertHandler;
45 class TabContents; 45 class TabContents;
46 struct ThumbnailScore; 46 struct ThumbnailScore;
47 struct ViewHostMsg_DidPrintPage_Params; 47 struct ViewHostMsg_DidPrintPage_Params;
48 struct ViewHostMsg_DomMessage_Params; 48 struct ViewHostMsg_DomMessage_Params;
49 struct ViewHostMsg_FrameNavigate_Params; 49 struct ViewHostMsg_FrameNavigate_Params;
50 struct ViewHostMsg_PageHasOSDD_Type; 50 struct ViewHostMsg_PageHasOSDD_Type;
51 struct ViewHostMsg_RunFileChooser_Params; 51 struct ViewHostMsg_RunFileChooser_Params;
52 struct WebDropData; 52 struct WebDropData;
53 struct WebMenuItem;
53 class WebKeyboardEvent; 54 class WebKeyboardEvent;
54 struct WebPreferences; 55 struct WebPreferences;
55 56
56 namespace base { 57 namespace base {
57 class WaitableEvent; 58 class WaitableEvent;
58 } 59 }
59 60
60 namespace gfx { 61 namespace gfx {
61 class Point; 62 class Point;
62 class Rect; 63 class Rect;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual void ShowCreatedWidget(int route_id, 140 virtual void ShowCreatedWidget(int route_id,
140 const gfx::Rect& initial_pos) = 0; 141 const gfx::Rect& initial_pos) = 0;
141 142
142 // Show the newly created full screen widget. Similar to above. 143 // Show the newly created full screen widget. Similar to above.
143 virtual void ShowCreatedFullscreenWidget(int route_id) = 0; 144 virtual void ShowCreatedFullscreenWidget(int route_id) = 0;
144 145
145 // A context menu should be shown, to be built using the context information 146 // A context menu should be shown, to be built using the context information
146 // provided in the supplied params. 147 // provided in the supplied params.
147 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; 148 virtual void ShowContextMenu(const ContextMenuParams& params) = 0;
148 149
150 // Shows a popup menu with the specified items.
151 // This method should call RenderViewHost::DidSelectPopupMenuItemAt() or
152 // RenderViewHost::DidCancelPopupMenu() ased on the user action.
153 virtual void ShowPopupMenu(const gfx::Rect& bounds,
154 int item_height,
155 double item_font_size,
156 int selected_item,
157 const std::vector<WebMenuItem>& items,
158 bool right_aligned) = 0;
159
149 // The user started dragging content of the specified type within the 160 // The user started dragging content of the specified type within the
150 // RenderView. Contextual information about the dragged content is supplied 161 // RenderView. Contextual information about the dragged content is supplied
151 // by WebDropData. 162 // by WebDropData.
152 virtual void StartDragging(const WebDropData& drop_data, 163 virtual void StartDragging(const WebDropData& drop_data,
153 WebKit::WebDragOperationsMask allowed_ops, 164 WebKit::WebDragOperationsMask allowed_ops,
154 const SkBitmap& image, 165 const SkBitmap& image,
155 const gfx::Point& image_offset) = 0; 166 const gfx::Point& image_offset) = 0;
156 167
157 // The page wants to update the mouse cursor during a drag & drop operation. 168 // The page wants to update the mouse cursor during a drag & drop operation.
158 // |operation| describes the current operation (none, move, copy, link.) 169 // |operation| describes the current operation (none, move, copy, link.)
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 bool remember) {} 859 bool remember) {}
849 860
850 // Update the content restrictions, i.e. disable print/copy. 861 // Update the content restrictions, i.e. disable print/copy.
851 virtual void UpdateContentRestrictions(int restrictions) {} 862 virtual void UpdateContentRestrictions(int restrictions) {}
852 863
853 protected: 864 protected:
854 virtual ~RenderViewHostDelegate() {} 865 virtual ~RenderViewHostDelegate() {}
855 }; 866 };
856 867
857 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 868 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698