OLD | NEW |
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 Loading... |
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 | 460 |
460 // Copies the image at location x, y to the clipboard (if there indeed is an | 461 // Copies the image at location x, y to the clipboard (if there indeed is an |
461 // image at that location). | 462 // image at that location). |
462 void CopyImageAt(int x, int y); | 463 void CopyImageAt(int x, int y); |
463 | 464 |
464 // Tells the renderer to perform the given action on the media player | 465 // Tells the renderer to perform the given action on the media player |
465 // located at the given point. | 466 // located at the given point. |
466 void ExecuteMediaPlayerActionAtLocation( | 467 void ExecuteMediaPlayerActionAtLocation( |
467 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action); | 468 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action); |
468 | 469 |
| 470 // Tells the renderer to perform the given action on the plugin located at |
| 471 // the given point. |
| 472 void ExecutePluginActionAtLocation( |
| 473 const gfx::Point& location, const WebKit::WebPluginAction& action); |
| 474 |
469 // Sent to the renderer when a popup window should no longer count against | 475 // Sent to the renderer when a popup window should no longer count against |
470 // the current popup count (either because it's not a popup or because it was | 476 // the current popup count (either because it's not a popup or because it was |
471 // a generated by a user action). | 477 // a generated by a user action). |
472 void DisassociateFromPopupCount(); | 478 void DisassociateFromPopupCount(); |
473 | 479 |
474 // Notification that a move or resize renderer's containing window has | 480 // Notification that a move or resize renderer's containing window has |
475 // started. | 481 // started. |
476 void NotifyMoveOrResizeStarted(); | 482 void NotifyMoveOrResizeStarted(); |
477 | 483 |
478 // Notifies the renderer that the user has closed the FindInPage window | 484 // Notifies the renderer that the user has closed the FindInPage window |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 690 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
685 PowerSaveBlockerMap power_save_blockers_; | 691 PowerSaveBlockerMap power_save_blockers_; |
686 | 692 |
687 // A list of observers that filter messages. Weak references. | 693 // A list of observers that filter messages. Weak references. |
688 ObserverList<content::RenderViewHostObserver> observers_; | 694 ObserverList<content::RenderViewHostObserver> observers_; |
689 | 695 |
690 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 696 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
691 }; | 697 }; |
692 | 698 |
693 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 699 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |