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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, LastCommittedUpdateState); | 649 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, LastCommittedUpdateState); |
650 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnHandleKeyboardEvent); | 650 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnHandleKeyboardEvent); |
651 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnImeStateChanged); | 651 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnImeStateChanged); |
652 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnNavStateChanged); | 652 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnNavStateChanged); |
653 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnSetTextDirection); | 653 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnSetTextDirection); |
654 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, StaleNavigationsIgnored); | 654 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, StaleNavigationsIgnored); |
655 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, UpdateTargetURLWithInvalidURL); | 655 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, UpdateTargetURLWithInvalidURL); |
656 #if defined(OS_MACOSX) | 656 #if defined(OS_MACOSX) |
657 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); | 657 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); |
658 #endif | 658 #endif |
| 659 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, SetHistoryLengthAndPrune); |
659 | 660 |
660 typedef std::map<GURL, double> HostZoomLevels; | 661 typedef std::map<GURL, double> HostZoomLevels; |
661 | 662 |
662 // Identifies an accessibility notification from webkit. | 663 // Identifies an accessibility notification from webkit. |
663 struct RendererAccessibilityNotification { | 664 struct RendererAccessibilityNotification { |
664 public: | 665 public: |
665 bool ShouldIncludeChildren(); | 666 bool ShouldIncludeChildren(); |
666 | 667 |
667 // The webkit glue id of the accessibility object. | 668 // The webkit glue id of the accessibility object. |
668 int32 id; | 669 int32 id; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 const string16& jscript, | 814 const string16& jscript, |
814 int id, | 815 int id, |
815 bool notify_result); | 816 bool notify_result); |
816 void OnSelectAll(); | 817 void OnSelectAll(); |
817 void OnSetAccessibilityFocus(int acc_obj_id); | 818 void OnSetAccessibilityFocus(int acc_obj_id); |
818 void OnSetActive(bool active); | 819 void OnSetActive(bool active); |
819 void OnSetAltErrorPageURL(const GURL& gurl); | 820 void OnSetAltErrorPageURL(const GURL& gurl); |
820 void OnSetBackground(const SkBitmap& background); | 821 void OnSetBackground(const SkBitmap& background); |
821 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 822 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
822 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 823 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
| 824 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
823 void OnSetInitialFocus(bool reverse); | 825 void OnSetInitialFocus(bool reverse); |
824 #if defined(OS_MACOSX) | 826 #if defined(OS_MACOSX) |
825 void OnSetInLiveResize(bool in_live_resize); | 827 void OnSetInLiveResize(bool in_live_resize); |
826 #endif | 828 #endif |
827 void OnScrollFocusedEditableNodeIntoView(); | 829 void OnScrollFocusedEditableNodeIntoView(); |
828 void OnSetPageEncoding(const std::string& encoding_name); | 830 void OnSetPageEncoding(const std::string& encoding_name); |
829 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 831 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
830 #if defined(OS_MACOSX) | 832 #if defined(OS_MACOSX) |
831 void OnSetWindowVisibility(bool visible); | 833 void OnSetWindowVisibility(bool visible); |
832 #endif | 834 #endif |
833 void OnSetZoomLevel(double zoom_level); | 835 void OnSetZoomLevel(double zoom_level); |
834 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 836 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
835 void OnShouldClose(); | 837 void OnShouldClose(); |
836 void OnStop(); | 838 void OnStop(); |
837 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | 839 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
838 void OnSwapOut(const ViewMsg_SwapOut_Params& params); | 840 void OnSwapOut(const ViewMsg_SwapOut_Params& params); |
839 void OnThemeChanged(); | 841 void OnThemeChanged(); |
840 void OnUndo(); | 842 void OnUndo(); |
841 void OnUpdateTargetURLAck(); | 843 void OnUpdateTargetURLAck(); |
842 void OnUpdateWebPreferences(const WebPreferences& prefs); | 844 void OnUpdateWebPreferences(const WebPreferences& prefs); |
843 void OnUpdateRemoteAccessClientFirewallTraversal(const std::string& policy); | 845 void OnUpdateRemoteAccessClientFirewallTraversal(const std::string& policy); |
844 void OnSetHistoryLengthAndClear(int history_length); | |
845 | 846 |
846 #if defined(OS_MACOSX) | 847 #if defined(OS_MACOSX) |
847 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 848 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
848 const gfx::Rect& view_frame); | 849 const gfx::Rect& view_frame); |
849 void OnSelectPopupMenuItem(int selected_index); | 850 void OnSelectPopupMenuItem(int selected_index); |
850 #endif | 851 #endif |
851 void OnZoom(PageZoom::Function function); | 852 void OnZoom(PageZoom::Function function); |
852 | 853 |
853 // Adding a new message handler? Please add it in alphabetical order above | 854 // Adding a new message handler? Please add it in alphabetical order above |
854 // and put it in the same position in the .cc file. | 855 // and put it in the same position in the .cc file. |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 // bunch of stuff, you should probably create a helper class and put your | 1198 // bunch of stuff, you should probably create a helper class and put your |
1198 // data and methods on that to avoid bloating RenderView more. You can use | 1199 // data and methods on that to avoid bloating RenderView more. You can use |
1199 // the Observer interface to filter IPC messages and receive frame change | 1200 // the Observer interface to filter IPC messages and receive frame change |
1200 // notifications. | 1201 // notifications. |
1201 // --------------------------------------------------------------------------- | 1202 // --------------------------------------------------------------------------- |
1202 | 1203 |
1203 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1204 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1204 }; | 1205 }; |
1205 | 1206 |
1206 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1207 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |