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

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

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more browser-side sanity checking Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 struct WebApplicationInfo; 51 struct WebApplicationInfo;
52 struct WebDropData; 52 struct WebDropData;
53 struct WebPreferences; 53 struct WebPreferences;
54 struct UserMetricsAction; 54 struct UserMetricsAction;
55 55
56 namespace gfx { 56 namespace gfx {
57 class Point; 57 class Point;
58 } // namespace gfx 58 } // namespace gfx
59 59
60 namespace webkit_glue { 60 namespace webkit_glue {
61 struct CustomContextMenuContext;
61 struct WebAccessibility; 62 struct WebAccessibility;
62 } // namespace webkit_glue 63 } // namespace webkit_glue
63 64
64 namespace WebKit { 65 namespace WebKit {
65 struct WebMediaPlayerAction; 66 struct WebMediaPlayerAction;
66 } // namespace WebKit 67 } // namespace WebKit
67 68
68 class URLRequestContextGetter; 69 class URLRequestContextGetter;
69 70
70 // 71 //
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 312
312 // Notifies the RenderView that the modal html dialog has been closed. 313 // Notifies the RenderView that the modal html dialog has been closed.
313 void ModalHTMLDialogClosed(IPC::Message* reply_msg, 314 void ModalHTMLDialogClosed(IPC::Message* reply_msg,
314 const std::string& json_retval); 315 const std::string& json_retval);
315 316
316 // Send an action to the media player element located at |location|. 317 // Send an action to the media player element located at |location|.
317 void MediaPlayerActionAt(const gfx::Point& location, 318 void MediaPlayerActionAt(const gfx::Point& location,
318 const WebKit::WebMediaPlayerAction& action); 319 const WebKit::WebMediaPlayerAction& action);
319 320
320 // Notifies the renderer that the context menu has closed. 321 // Notifies the renderer that the context menu has closed.
321 void ContextMenuClosed(); 322 void ContextMenuClosed(
323 const webkit_glue::CustomContextMenuContext& custom_context);
322 324
323 // Prints the node that's under the context menu. 325 // Prints the node that's under the context menu.
324 void PrintNodeUnderContextMenu(); 326 void PrintNodeUnderContextMenu();
325 327
326 // Copies the image at the specified point. 328 // Copies the image at the specified point.
327 void CopyImageAt(int x, int y); 329 void CopyImageAt(int x, int y);
328 330
329 // Notifies the renderer that a a drag operation that it started has ended, 331 // Notifies the renderer that a a drag operation that it started has ended,
330 // either in a drop or by being cancelled. 332 // either in a drop or by being cancelled.
331 void DragSourceEndedAt( 333 void DragSourceEndedAt(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 const std::string& error); 457 const std::string& error);
456 458
457 // Sends a response to an extension api call that it was blocked for lack of 459 // Sends a response to an extension api call that it was blocked for lack of
458 // permission. 460 // permission.
459 void BlockExtensionRequest(int request_id); 461 void BlockExtensionRequest(int request_id);
460 462
461 // Tells the renderer which browser window it is being attached to. 463 // Tells the renderer which browser window it is being attached to.
462 void UpdateBrowserWindowId(int window_id); 464 void UpdateBrowserWindowId(int window_id);
463 465
464 // Tells the render view that a custom context action has been selected. 466 // Tells the render view that a custom context action has been selected.
465 void PerformCustomContextMenuAction(unsigned action); 467 void PerformCustomContextMenuAction(
468 const webkit_glue::CustomContextMenuContext& custom_context,
469 unsigned action);
466 470
467 // Informs renderer of updated content settings. 471 // Informs renderer of updated content settings.
468 void SendContentSettings(const GURL& url, 472 void SendContentSettings(const GURL& url,
469 const ContentSettings& settings); 473 const ContentSettings& settings);
470 474
471 // Tells the renderer to notify us when the page contents preferred size 475 // Tells the renderer to notify us when the page contents preferred size
472 // changed. |flags| is a combination of 476 // changed. |flags| is a combination of
473 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined 477 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined
474 // in render_messages.h. 478 // in render_messages.h.
475 void EnablePreferredSizeChangedMode(int flags); 479 void EnablePreferredSizeChangedMode(int flags);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 // The most recently received accessibility tree - for unit testing only. 725 // The most recently received accessibility tree - for unit testing only.
722 webkit_glue::WebAccessibility accessibility_tree_; 726 webkit_glue::WebAccessibility accessibility_tree_;
723 727
724 // The termination status of the last render view that terminated. 728 // The termination status of the last render view that terminated.
725 base::TerminationStatus render_view_termination_status_; 729 base::TerminationStatus render_view_termination_status_;
726 730
727 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 731 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
728 }; 732 };
729 733
730 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 734 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698