| OLD | NEW |
| 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_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 19 matching lines...) Expand all Loading... |
| 30 #include "webkit/glue/webaccessibility.h" | 30 #include "webkit/glue/webaccessibility.h" |
| 31 #include "webkit/glue/window_open_disposition.h" | 31 #include "webkit/glue/window_open_disposition.h" |
| 32 | 32 |
| 33 class ChildProcessSecurityPolicyImpl; | 33 class ChildProcessSecurityPolicyImpl; |
| 34 class FilePath; | 34 class FilePath; |
| 35 class GURL; | 35 class GURL; |
| 36 class PowerSaveBlocker; | 36 class PowerSaveBlocker; |
| 37 class SessionStorageNamespace; | 37 class SessionStorageNamespace; |
| 38 class SkBitmap; | 38 class SkBitmap; |
| 39 class ViewMsg_Navigate; | 39 class ViewMsg_Navigate; |
| 40 struct ContextMenuParams; | |
| 41 struct MediaPlayerAction; | 40 struct MediaPlayerAction; |
| 42 struct ViewHostMsg_AccessibilityNotification_Params; | 41 struct ViewHostMsg_AccessibilityNotification_Params; |
| 43 struct ViewHostMsg_CreateWindow_Params; | 42 struct ViewHostMsg_CreateWindow_Params; |
| 44 struct ViewHostMsg_ShowPopup_Params; | 43 struct ViewHostMsg_ShowPopup_Params; |
| 45 struct ViewMsg_Navigate_Params; | 44 struct ViewMsg_Navigate_Params; |
| 46 struct ViewMsg_StopFinding_Params; | 45 struct ViewMsg_StopFinding_Params; |
| 47 struct WebDropData; | 46 struct WebDropData; |
| 48 struct WebPreferences; | 47 struct WebPreferences; |
| 49 | 48 |
| 50 namespace base { | 49 namespace base { |
| 51 class ListValue; | 50 class ListValue; |
| 52 } | 51 } |
| 53 | 52 |
| 54 namespace content { | 53 namespace content { |
| 55 struct FileChooserParams; | |
| 56 struct Referrer; | |
| 57 class RenderViewHostDelegate; | 54 class RenderViewHostDelegate; |
| 58 class RenderViewHostObserver; | 55 class RenderViewHostObserver; |
| 56 struct FileChooserParams; |
| 57 struct ContextMenuParams; |
| 58 struct CustomContextMenuContext; |
| 59 struct Referrer; |
| 59 struct ShowDesktopNotificationHostMsgParams; | 60 struct ShowDesktopNotificationHostMsgParams; |
| 60 } | 61 } |
| 61 | 62 |
| 62 namespace gfx { | 63 namespace gfx { |
| 63 class Point; | 64 class Point; |
| 64 } // namespace gfx | 65 } // namespace gfx |
| 65 | 66 |
| 66 namespace ui { | 67 namespace ui { |
| 67 class Range; | 68 class Range; |
| 68 } // namespace ui | 69 } // namespace ui |
| 69 | 70 |
| 70 namespace webkit_glue { | 71 namespace webkit_glue { |
| 71 struct WebAccessibility; | 72 struct WebAccessibility; |
| 72 struct CustomContextMenuContext; | |
| 73 } // namespace webkit_glue | 73 } // namespace webkit_glue |
| 74 | 74 |
| 75 namespace WebKit { | 75 namespace WebKit { |
| 76 struct WebFindOptions; | 76 struct WebFindOptions; |
| 77 struct WebMediaPlayerAction; | 77 struct WebMediaPlayerAction; |
| 78 struct WebPluginAction; | 78 struct WebPluginAction; |
| 79 } // namespace WebKit | 79 } // namespace WebKit |
| 80 | 80 |
| 81 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT | 81 // NotificationObserver used to listen for EXECUTE_JAVASCRIPT_RESULT |
| 82 // notifications. | 82 // notifications. |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 446 |
| 447 // Instructs the RenderView to send back updates to the preferred size. | 447 // Instructs the RenderView to send back updates to the preferred size. |
| 448 void EnablePreferredSizeMode(); | 448 void EnablePreferredSizeMode(); |
| 449 | 449 |
| 450 // Instructs the RenderView to automatically resize and send back updates | 450 // Instructs the RenderView to automatically resize and send back updates |
| 451 // for the new size. | 451 // for the new size. |
| 452 void EnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); | 452 void EnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); |
| 453 | 453 |
| 454 // Executes custom context menu action that was provided from WebKit. | 454 // Executes custom context menu action that was provided from WebKit. |
| 455 void ExecuteCustomContextMenuCommand( | 455 void ExecuteCustomContextMenuCommand( |
| 456 int action, const webkit_glue::CustomContextMenuContext& context); | 456 int action, const content::CustomContextMenuContext& context); |
| 457 | 457 |
| 458 // Let the renderer know that the menu has been closed. | 458 // Let the renderer know that the menu has been closed. |
| 459 void NotifyContextMenuClosed( | 459 void NotifyContextMenuClosed( |
| 460 const webkit_glue::CustomContextMenuContext& context); | 460 const content::CustomContextMenuContext& context); |
| 461 | 461 |
| 462 // Copies the image at location x, y to the clipboard (if there indeed is an | 462 // Copies the image at location x, y to the clipboard (if there indeed is an |
| 463 // image at that location). | 463 // image at that location). |
| 464 void CopyImageAt(int x, int y); | 464 void CopyImageAt(int x, int y); |
| 465 | 465 |
| 466 // Tells the renderer to perform the given action on the media player | 466 // Tells the renderer to perform the given action on the media player |
| 467 // located at the given point. | 467 // located at the given point. |
| 468 void ExecuteMediaPlayerActionAtLocation( | 468 void ExecuteMediaPlayerActionAtLocation( |
| 469 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action); | 469 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action); |
| 470 | 470 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 WebKit::WebTextDirection title_direction); | 533 WebKit::WebTextDirection title_direction); |
| 534 void OnMsgUpdateEncoding(const std::string& encoding); | 534 void OnMsgUpdateEncoding(const std::string& encoding); |
| 535 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); | 535 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); |
| 536 void OnMsgClose(); | 536 void OnMsgClose(); |
| 537 void OnMsgRequestMove(const gfx::Rect& pos); | 537 void OnMsgRequestMove(const gfx::Rect& pos); |
| 538 void OnMsgDidStartLoading(); | 538 void OnMsgDidStartLoading(); |
| 539 void OnMsgDidStopLoading(); | 539 void OnMsgDidStopLoading(); |
| 540 void OnMsgDidChangeLoadProgress(double load_progress); | 540 void OnMsgDidChangeLoadProgress(double load_progress); |
| 541 void OnMsgDocumentAvailableInMainFrame(); | 541 void OnMsgDocumentAvailableInMainFrame(); |
| 542 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); | 542 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); |
| 543 void OnMsgContextMenu(const ContextMenuParams& params); | 543 void OnMsgContextMenu(const content::ContextMenuParams& params); |
| 544 void OnMsgToggleFullscreen(bool enter_fullscreen); | 544 void OnMsgToggleFullscreen(bool enter_fullscreen); |
| 545 void OnMsgOpenURL(const GURL& url, | 545 void OnMsgOpenURL(const GURL& url, |
| 546 const content::Referrer& referrer, | 546 const content::Referrer& referrer, |
| 547 WindowOpenDisposition disposition, | 547 WindowOpenDisposition disposition, |
| 548 int64 source_frame_id); | 548 int64 source_frame_id); |
| 549 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 549 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 550 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | 550 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, |
| 551 bool has_vertical_scrollbar); | 551 bool has_vertical_scrollbar); |
| 552 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, | 552 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, |
| 553 bool is_pinned_to_right); | 553 bool is_pinned_to_right); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 696 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 697 PowerSaveBlockerMap power_save_blockers_; | 697 PowerSaveBlockerMap power_save_blockers_; |
| 698 | 698 |
| 699 // A list of observers that filter messages. Weak references. | 699 // A list of observers that filter messages. Weak references. |
| 700 ObserverList<content::RenderViewHostObserver> observers_; | 700 ObserverList<content::RenderViewHostObserver> observers_; |
| 701 | 701 |
| 702 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 702 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 703 }; | 703 }; |
| 704 | 704 |
| 705 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 705 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |