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

Side by Side Diff: content/public/browser/render_view_host_delegate.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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/common/view_type.h" 17 #include "content/public/common/view_type.h"
18 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
19 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
22 #include "ui/base/javascript_message_type.h" 22 #include "ui/base/javascript_message_type.h"
23 #include "webkit/glue/window_open_disposition.h" 23 #include "webkit/glue/window_open_disposition.h"
24 24
25 class GURL; 25 class GURL;
26 class RenderViewHost; 26 class RenderViewHost;
27 class SkBitmap; 27 class SkBitmap;
28 class TabContents; 28 class TabContents;
29 class WebKeyboardEvent; 29 class WebKeyboardEvent;
30 struct ContextMenuParams;
31 struct NativeWebKeyboardEvent; 30 struct NativeWebKeyboardEvent;
32 struct ViewHostMsg_CreateWindow_Params; 31 struct ViewHostMsg_CreateWindow_Params;
33 struct ViewHostMsg_FrameNavigate_Params; 32 struct ViewHostMsg_FrameNavigate_Params;
34 struct WebDropData; 33 struct WebDropData;
35 struct WebMenuItem; 34 struct WebMenuItem;
36 struct WebPreferences; 35 struct WebPreferences;
37 36
38 namespace base { 37 namespace base {
39 class ListValue; 38 class ListValue;
40 } 39 }
41 40
42 namespace gfx { 41 namespace gfx {
43 class Point; 42 class Point;
44 class Rect; 43 class Rect;
45 class Size; 44 class Size;
46 } 45 }
47 46
48 namespace content { 47 namespace content {
49 48
50 class BrowserContext; 49 class BrowserContext;
51 class WebContents; 50 class WebContents;
51 struct ContextMenuParams;
52 struct FileChooserParams; 52 struct FileChooserParams;
53 struct GlobalRequestID; 53 struct GlobalRequestID;
54 struct Referrer; 54 struct Referrer;
55 struct RendererPreferences; 55 struct RendererPreferences;
56 56
57 // 57 //
58 // RenderViewHostDelegate 58 // RenderViewHostDelegate
59 // 59 //
60 // An interface implemented by an object interested in knowing about the state 60 // An interface implemented by an object interested in knowing about the state
61 // of the RenderViewHost. 61 // of the RenderViewHost.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Show the newly created widget with the specified bounds. 113 // Show the newly created widget with the specified bounds.
114 // The widget is identified by the route_id passed to CreateNewWidget. 114 // The widget is identified by the route_id passed to CreateNewWidget.
115 virtual void ShowCreatedWidget(int route_id, 115 virtual void ShowCreatedWidget(int route_id,
116 const gfx::Rect& initial_pos) = 0; 116 const gfx::Rect& initial_pos) = 0;
117 117
118 // Show the newly created full screen widget. Similar to above. 118 // Show the newly created full screen widget. Similar to above.
119 virtual void ShowCreatedFullscreenWidget(int route_id) = 0; 119 virtual void ShowCreatedFullscreenWidget(int route_id) = 0;
120 120
121 // A context menu should be shown, to be built using the context information 121 // A context menu should be shown, to be built using the context information
122 // provided in the supplied params. 122 // provided in the supplied params.
123 virtual void ShowContextMenu(const ContextMenuParams& params) = 0; 123 virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0;
124 124
125 // Shows a popup menu with the specified items. 125 // Shows a popup menu with the specified items.
126 // This method should call RenderViewHost::DidSelectPopupMenuItemAt() or 126 // This method should call RenderViewHost::DidSelectPopupMenuItemAt() or
127 // RenderViewHost::DidCancelPopupMenu() ased on the user action. 127 // RenderViewHost::DidCancelPopupMenu() ased on the user action.
128 virtual void ShowPopupMenu(const gfx::Rect& bounds, 128 virtual void ShowPopupMenu(const gfx::Rect& bounds,
129 int item_height, 129 int item_height,
130 double item_font_size, 130 double item_font_size,
131 int selected_item, 131 int selected_item,
132 const std::vector<WebMenuItem>& items, 132 const std::vector<WebMenuItem>& items,
133 bool right_aligned) = 0; 133 bool right_aligned) = 0;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // Notification that the view has lost the mouse lock. 399 // Notification that the view has lost the mouse lock.
400 virtual void LostMouseLock() {} 400 virtual void LostMouseLock() {}
401 401
402 protected: 402 protected:
403 virtual ~RenderViewHostDelegate() {} 403 virtual ~RenderViewHostDelegate() {}
404 }; 404 };
405 405
406 } // namespace content 406 } // namespace content
407 407
408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 408 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698