| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 struct ViewHostMsg_ShowPopup_Params; | 46 struct ViewHostMsg_ShowPopup_Params; |
| 47 struct ViewMsg_Navigate_Params; | 47 struct ViewMsg_Navigate_Params; |
| 48 struct WebDropData; | 48 struct WebDropData; |
| 49 struct WebPreferences; | 49 struct WebPreferences; |
| 50 struct UserMetricsAction; | 50 struct UserMetricsAction; |
| 51 | 51 |
| 52 namespace gfx { | 52 namespace gfx { |
| 53 class Point; | 53 class Point; |
| 54 } // namespace gfx | 54 } // namespace gfx |
| 55 | 55 |
| 56 namespace ui { |
| 57 class Range; |
| 58 } // namespace ui |
| 59 |
| 56 namespace webkit_glue { | 60 namespace webkit_glue { |
| 57 struct CustomContextMenuContext; | 61 struct CustomContextMenuContext; |
| 58 struct WebAccessibility; | 62 struct WebAccessibility; |
| 59 } // namespace webkit_glue | 63 } // namespace webkit_glue |
| 60 | 64 |
| 61 namespace WebKit { | 65 namespace WebKit { |
| 62 struct WebMediaPlayerAction; | 66 struct WebMediaPlayerAction; |
| 63 } // namespace WebKit | 67 } // namespace WebKit |
| 64 | 68 |
| 65 namespace net { | 69 namespace net { |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); | 494 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); |
| 491 void OnMsgContextMenu(const ContextMenuParams& params); | 495 void OnMsgContextMenu(const ContextMenuParams& params); |
| 492 void OnMsgOpenURL(const GURL& url, const GURL& referrer, | 496 void OnMsgOpenURL(const GURL& url, const GURL& referrer, |
| 493 WindowOpenDisposition disposition); | 497 WindowOpenDisposition disposition); |
| 494 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 498 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
| 495 void OnMsgForwardMessageToExternalHost(const std::string& message, | 499 void OnMsgForwardMessageToExternalHost(const std::string& message, |
| 496 const std::string& origin, | 500 const std::string& origin, |
| 497 const std::string& target); | 501 const std::string& target); |
| 498 void OnMsgSetTooltipText(const std::wstring& tooltip_text, | 502 void OnMsgSetTooltipText(const std::wstring& tooltip_text, |
| 499 WebKit::WebTextDirection text_direction_hint); | 503 WebKit::WebTextDirection text_direction_hint); |
| 500 void OnMsgSelectionChanged(const std::string& text); | 504 void OnMsgSelectionChanged(const std::string& text, const ui::Range& range); |
| 501 void OnMsgPasteFromSelectionClipboard(); | 505 void OnMsgPasteFromSelectionClipboard(); |
| 502 void OnMsgRunJavaScriptMessage(const std::wstring& message, | 506 void OnMsgRunJavaScriptMessage(const std::wstring& message, |
| 503 const std::wstring& default_prompt, | 507 const std::wstring& default_prompt, |
| 504 const GURL& frame_url, | 508 const GURL& frame_url, |
| 505 const int flags, | 509 const int flags, |
| 506 IPC::Message* reply_msg); | 510 IPC::Message* reply_msg); |
| 507 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, | 511 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, |
| 508 const std::wstring& message, | 512 const std::wstring& message, |
| 509 IPC::Message* reply_msg); | 513 IPC::Message* reply_msg); |
| 510 void OnMsgStartDragging(const WebDropData& drop_data, | 514 void OnMsgStartDragging(const WebDropData& drop_data, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // The enabled/disabled states of various commands. | 631 // The enabled/disabled states of various commands. |
| 628 std::map<RenderViewCommand, CommandState> command_states_; | 632 std::map<RenderViewCommand, CommandState> command_states_; |
| 629 | 633 |
| 630 // A list of observers that filter messages. Weak references. | 634 // A list of observers that filter messages. Weak references. |
| 631 ObserverList<RenderViewHostObserver> observers_; | 635 ObserverList<RenderViewHostObserver> observers_; |
| 632 | 636 |
| 633 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 637 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 634 }; | 638 }; |
| 635 | 639 |
| 636 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 640 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |