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

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

Issue 9045007: Allow plugins to participate in Chrome context menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 namespace ui { 66 namespace ui {
67 class Range; 67 class Range;
68 } // namespace ui 68 } // namespace ui
69 69
70 namespace webkit_glue { 70 namespace webkit_glue {
71 struct WebAccessibility; 71 struct WebAccessibility;
72 struct CustomContextMenuContext; 72 struct CustomContextMenuContext;
73 } // namespace webkit_glue 73 } // namespace webkit_glue
74 74
75 namespace WebKit { 75 namespace WebKit {
76 struct WebFindOptions;
76 struct WebMediaPlayerAction; 77 struct WebMediaPlayerAction;
77 struct WebFindOptions; 78 struct WebPluginAction;
78 } // namespace WebKit 79 } // namespace WebKit
79 80
80 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT 81 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT
81 // notifications. 82 // notifications.
82 class ExecuteNotificationObserver : public content::NotificationObserver { 83 class ExecuteNotificationObserver : public content::NotificationObserver {
83 public: 84 public:
84 explicit ExecuteNotificationObserver(int id); 85 explicit ExecuteNotificationObserver(int id);
85 virtual ~ExecuteNotificationObserver(); 86 virtual ~ExecuteNotificationObserver();
86 virtual void Observe(int type, 87 virtual void Observe(int type,
87 const content::NotificationSource& source, 88 const content::NotificationSource& source,
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 459
459 // Copies the image at location x, y to the clipboard (if there indeed is an 460 // Copies the image at location x, y to the clipboard (if there indeed is an
460 // image at that location). 461 // image at that location).
461 void CopyImageAt(int x, int y); 462 void CopyImageAt(int x, int y);
462 463
463 // Tells the renderer to perform the given action on the media player 464 // Tells the renderer to perform the given action on the media player
464 // located at the given point. 465 // located at the given point.
465 void ExecuteMediaPlayerActionAtLocation( 466 void ExecuteMediaPlayerActionAtLocation(
466 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action); 467 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action);
467 468
469 // Tells the renderer to perform the given action on the plugin.
470 void ExecutePluginAction(const WebKit::WebPluginAction& action);
471
468 // Sent to the renderer when a popup window should no longer count against 472 // Sent to the renderer when a popup window should no longer count against
469 // the current popup count (either because it's not a popup or because it was 473 // the current popup count (either because it's not a popup or because it was
470 // a generated by a user action). 474 // a generated by a user action).
471 void DisassociateFromPopupCount(); 475 void DisassociateFromPopupCount();
472 476
473 // Notification that a move or resize renderer's containing window has 477 // Notification that a move or resize renderer's containing window has
474 // started. 478 // started.
475 void NotifyMoveOrResizeStarted(); 479 void NotifyMoveOrResizeStarted();
476 480
477 // Notifies the renderer that the user has closed the FindInPage window 481 // Notifies the renderer that the user has closed the FindInPage window
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; 687 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap;
684 PowerSaveBlockerMap power_save_blockers_; 688 PowerSaveBlockerMap power_save_blockers_;
685 689
686 // A list of observers that filter messages. Weak references. 690 // A list of observers that filter messages. Weak references.
687 ObserverList<content::RenderViewHostObserver> observers_; 691 ObserverList<content::RenderViewHostObserver> observers_;
688 692
689 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 693 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
690 }; 694 };
691 695
692 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 696 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698