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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 11030034: Browser Plugin: Disable context menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A BrowserPluginGuest represents the browser side of browser <--> renderer 5 // A BrowserPluginGuest represents the browser side of browser <--> renderer
6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of 6 // communication. A BrowserPlugin (a WebPlugin) is on the renderer side of
7 // browser <--> guest renderer communication. The 'guest' renderer is a 7 // browser <--> guest renderer communication. The 'guest' renderer is a
8 // <browser> tag. 8 // <browser> tag.
9 // 9 //
10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 10 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 bool is_main_frame, 100 bool is_main_frame,
101 const GURL& url, 101 const GURL& url,
102 PageTransition transition_type, 102 PageTransition transition_type,
103 RenderViewHost* render_view_host) OVERRIDE; 103 RenderViewHost* render_view_host) OVERRIDE;
104 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 104 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
105 105
106 // WebContentsDelegate implementation. 106 // WebContentsDelegate implementation.
107 virtual bool CanDownload(RenderViewHost* render_view_host, 107 virtual bool CanDownload(RenderViewHost* render_view_host,
108 int request_id, 108 int request_id,
109 const std::string& request_method) OVERRIDE; 109 const std::string& request_method) OVERRIDE;
110 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
110 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; 111 virtual void RendererUnresponsive(WebContents* source) OVERRIDE;
111 112
112 void UpdateRect(RenderViewHost* render_view_host, 113 void UpdateRect(RenderViewHost* render_view_host,
113 const ViewHostMsg_UpdateRect_Params& params); 114 const ViewHostMsg_UpdateRect_Params& params);
114 void UpdateRectACK(int message_id, const gfx::Size& size); 115 void UpdateRectACK(int message_id, const gfx::Size& size);
115 // Handles input event routed through the embedder (which is initiated in the 116 // Handles input event routed through the embedder (which is initiated in the
116 // browser plugin (renderer side of the embedder)). 117 // browser plugin (renderer side of the embedder)).
117 void HandleInputEvent(RenderViewHost* render_view_host, 118 void HandleInputEvent(RenderViewHost* render_view_host,
118 const gfx::Rect& guest_rect, 119 const gfx::Rect& guest_rect,
119 const WebKit::WebInputEvent& event, 120 const WebKit::WebInputEvent& event,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 IDMap<RenderViewHost> pending_updates_; 200 IDMap<RenderViewHost> pending_updates_;
200 int pending_update_counter_; 201 int pending_update_counter_;
201 base::TimeDelta guest_hang_timeout_; 202 base::TimeDelta guest_hang_timeout_;
202 203
203 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 204 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
204 }; 205 };
205 206
206 } // namespace content 207 } // namespace content
207 208
208 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 209 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698