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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 struct ViewMsg_Navigate_Params; | 45 struct ViewMsg_Navigate_Params; |
46 struct ViewMsg_StopFinding_Params; | 46 struct ViewMsg_StopFinding_Params; |
47 struct WebDropData; | 47 struct WebDropData; |
48 struct WebPreferences; | 48 struct WebPreferences; |
49 | 49 |
50 namespace base { | 50 namespace base { |
51 class ListValue; | 51 class ListValue; |
52 } | 52 } |
53 | 53 |
54 namespace content { | 54 namespace content { |
| 55 struct FileChooserParams; |
| 56 struct Referrer; |
55 class RenderViewHostObserver; | 57 class RenderViewHostObserver; |
56 struct FileChooserParams; | |
57 struct ShowDesktopNotificationHostMsgParams; | 58 struct ShowDesktopNotificationHostMsgParams; |
58 } | 59 } |
59 | 60 |
60 namespace gfx { | 61 namespace gfx { |
61 class Point; | 62 class Point; |
62 } // namespace gfx | 63 } // namespace gfx |
63 | 64 |
64 namespace ui { | 65 namespace ui { |
65 class Range; | 66 class Range; |
66 } // namespace ui | 67 } // namespace ui |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 void OnMsgClose(); | 527 void OnMsgClose(); |
527 void OnMsgRequestMove(const gfx::Rect& pos); | 528 void OnMsgRequestMove(const gfx::Rect& pos); |
528 void OnMsgDidStartLoading(); | 529 void OnMsgDidStartLoading(); |
529 void OnMsgDidStopLoading(); | 530 void OnMsgDidStopLoading(); |
530 void OnMsgDidChangeLoadProgress(double load_progress); | 531 void OnMsgDidChangeLoadProgress(double load_progress); |
531 void OnMsgDocumentAvailableInMainFrame(); | 532 void OnMsgDocumentAvailableInMainFrame(); |
532 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); | 533 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); |
533 void OnMsgContextMenu(const ContextMenuParams& params); | 534 void OnMsgContextMenu(const ContextMenuParams& params); |
534 void OnMsgToggleFullscreen(bool enter_fullscreen); | 535 void OnMsgToggleFullscreen(bool enter_fullscreen); |
535 void OnMsgOpenURL(const GURL& url, | 536 void OnMsgOpenURL(const GURL& url, |
536 const GURL& referrer, | 537 const content::Referrer& referrer, |
537 WindowOpenDisposition disposition, | 538 WindowOpenDisposition disposition, |
538 int64 source_frame_id); | 539 int64 source_frame_id); |
539 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 540 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
540 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | 541 void OnMsgDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, |
541 bool has_vertical_scrollbar); | 542 bool has_vertical_scrollbar); |
542 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, | 543 void OnMsgDidChangeScrollOffsetPinningForMainFrame(bool is_pinned_to_left, |
543 bool is_pinned_to_right); | 544 bool is_pinned_to_right); |
544 void OnMsgDidChangeNumWheelEvents(int count); | 545 void OnMsgDidChangeNumWheelEvents(int count); |
545 void OnMsgSelectionChanged(const string16& text, | 546 void OnMsgSelectionChanged(const string16& text, |
546 size_t offset, | 547 size_t offset, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 681 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
681 PowerSaveBlockerMap power_save_blockers_; | 682 PowerSaveBlockerMap power_save_blockers_; |
682 | 683 |
683 // A list of observers that filter messages. Weak references. | 684 // A list of observers that filter messages. Weak references. |
684 ObserverList<content::RenderViewHostObserver> observers_; | 685 ObserverList<content::RenderViewHostObserver> observers_; |
685 | 686 |
686 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 687 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
687 }; | 688 }; |
688 | 689 |
689 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 690 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |