| 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 23 matching lines...) Expand all Loading... |
| 34 class PowerSaveBlocker; | 34 class PowerSaveBlocker; |
| 35 class RenderViewHostDelegate; | 35 class RenderViewHostDelegate; |
| 36 class SessionStorageNamespace; | 36 class SessionStorageNamespace; |
| 37 class SiteInstance; | 37 class SiteInstance; |
| 38 class SkBitmap; | 38 class SkBitmap; |
| 39 class ViewMsg_Navigate; | 39 class ViewMsg_Navigate; |
| 40 struct ContextMenuParams; | 40 struct ContextMenuParams; |
| 41 struct MediaPlayerAction; | 41 struct MediaPlayerAction; |
| 42 struct ViewHostMsg_AccessibilityNotification_Params; | 42 struct ViewHostMsg_AccessibilityNotification_Params; |
| 43 struct ViewHostMsg_CreateWindow_Params; | 43 struct ViewHostMsg_CreateWindow_Params; |
| 44 struct ViewHostMsg_OpenURL_Params; |
| 44 struct ViewHostMsg_ShowPopup_Params; | 45 struct ViewHostMsg_ShowPopup_Params; |
| 45 struct ViewMsg_Navigate_Params; | 46 struct ViewMsg_Navigate_Params; |
| 47 struct ViewMsg_PostMessage_Params; |
| 46 struct ViewMsg_StopFinding_Params; | 48 struct ViewMsg_StopFinding_Params; |
| 49 struct ViewMsg_SwapOut_Params; |
| 47 struct WebDropData; | 50 struct WebDropData; |
| 48 struct WebPreferences; | 51 struct WebPreferences; |
| 49 | 52 |
| 50 namespace base { | 53 namespace base { |
| 51 class ListValue; | 54 class ListValue; |
| 52 } | 55 } |
| 53 | 56 |
| 54 namespace content { | 57 namespace content { |
| 55 class RenderViewHostObserver; | 58 class RenderViewHostObserver; |
| 56 struct FileChooserParams; | 59 struct FileChooserParams; |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); | 523 void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); |
| 521 void OnMsgClose(); | 524 void OnMsgClose(); |
| 522 void OnMsgRequestMove(const gfx::Rect& pos); | 525 void OnMsgRequestMove(const gfx::Rect& pos); |
| 523 void OnMsgDidStartLoading(); | 526 void OnMsgDidStartLoading(); |
| 524 void OnMsgDidStopLoading(); | 527 void OnMsgDidStopLoading(); |
| 525 void OnMsgDidChangeLoadProgress(double load_progress); | 528 void OnMsgDidChangeLoadProgress(double load_progress); |
| 526 void OnMsgDocumentAvailableInMainFrame(); | 529 void OnMsgDocumentAvailableInMainFrame(); |
| 527 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); | 530 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); |
| 528 void OnMsgContextMenu(const ContextMenuParams& params); | 531 void OnMsgContextMenu(const ContextMenuParams& params); |
| 529 void OnMsgToggleFullscreen(bool enter_fullscreen); | 532 void OnMsgToggleFullscreen(bool enter_fullscreen); |
| 530 void OnMsgOpenURL(const GURL& url, | 533 void OnMsgOpenURL(const ViewHostMsg_OpenURL_Params& params); |
| 531 const GURL& referrer, | |
| 532 WindowOpenDisposition disposition, | |
| 533 int64 source_frame_id); | |
| 534 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 534 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 535 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | 535 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, |
| 536 bool has_vertical_scrollbar); | 536 bool has_vertical_scrollbar); |
| 537 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, | 537 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, |
| 538 bool is_pinned_to_right); | 538 bool is_pinned_to_right); |
| 539 void OnMsgDidChangeNumWheelEvents(int count); | 539 void OnMsgDidChangeNumWheelEvents(int count); |
| 540 void OnMsgSelectionChanged(const string16& text, | 540 void OnMsgSelectionChanged(const string16& text, |
| 541 size_t offset, | 541 size_t offset, |
| 542 const ui::Range& range); | 542 const ui::Range& range); |
| 543 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, | 543 void OnMsgSelectionBoundsChanged(const gfx::Rect& start_rect, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 void OnRequestDesktopNotificationPermission(const GURL& origin, | 577 void OnRequestDesktopNotificationPermission(const GURL& origin, |
| 578 int callback_id); | 578 int callback_id); |
| 579 void OnShowDesktopNotification( | 579 void OnShowDesktopNotification( |
| 580 const content::ShowDesktopNotificationHostMsgParams& params); | 580 const content::ShowDesktopNotificationHostMsgParams& params); |
| 581 void OnCancelDesktopNotification(int notification_id); | 581 void OnCancelDesktopNotification(int notification_id); |
| 582 void OnRunFileChooser(const content::FileChooserParams& params); | 582 void OnRunFileChooser(const content::FileChooserParams& params); |
| 583 | 583 |
| 584 void OnWebUISend(const GURL& source_url, const std::string& name, | 584 void OnWebUISend(const GURL& source_url, const std::string& name, |
| 585 const base::ListValue& args); | 585 const base::ListValue& args); |
| 586 | 586 |
| 587 void OnSendPostMessage(int64 browsing_instance_frame_id, |
| 588 const ViewMsg_PostMessage_Params& params); |
| 589 |
| 587 #if defined(OS_MACOSX) | 590 #if defined(OS_MACOSX) |
| 588 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 591 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
| 589 #endif | 592 #endif |
| 590 | 593 |
| 591 private: | 594 private: |
| 592 friend class TestRenderViewHost; | 595 friend class TestRenderViewHost; |
| 593 | 596 |
| 594 void ClearPowerSaveBlockers(); | 597 void ClearPowerSaveBlockers(); |
| 595 | 598 |
| 596 // The SiteInstance associated with this RenderViewHost. All pages drawn | 599 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 678 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 676 PowerSaveBlockerMap power_save_blockers_; | 679 PowerSaveBlockerMap power_save_blockers_; |
| 677 | 680 |
| 678 // A list of observers that filter messages. Weak references. | 681 // A list of observers that filter messages. Weak references. |
| 679 ObserverList<content::RenderViewHostObserver> observers_; | 682 ObserverList<content::RenderViewHostObserver> observers_; |
| 680 | 683 |
| 681 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 684 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 682 }; | 685 }; |
| 683 | 686 |
| 684 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 687 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |