Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: content/renderer/render_view.h

Issue 7618016: Additional fixes for prerender/instant + browsing history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrong signature Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, LastCommittedUpdateState); 654 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, LastCommittedUpdateState);
655 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnHandleKeyboardEvent); 655 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnHandleKeyboardEvent);
656 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnImeStateChanged); 656 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnImeStateChanged);
657 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnNavStateChanged); 657 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnNavStateChanged);
658 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnSetTextDirection); 658 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, OnSetTextDirection);
659 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, StaleNavigationsIgnored); 659 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, StaleNavigationsIgnored);
660 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, UpdateTargetURLWithInvalidURL); 660 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, UpdateTargetURLWithInvalidURL);
661 #if defined(OS_MACOSX) 661 #if defined(OS_MACOSX)
662 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); 662 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp);
663 #endif 663 #endif
664 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, SetHistoryLengthAndPrune);
664 665
665 typedef std::map<GURL, double> HostZoomLevels; 666 typedef std::map<GURL, double> HostZoomLevels;
666 667
667 // Identifies an accessibility notification from webkit. 668 // Identifies an accessibility notification from webkit.
668 struct RendererAccessibilityNotification { 669 struct RendererAccessibilityNotification {
669 public: 670 public:
670 bool ShouldIncludeChildren(); 671 bool ShouldIncludeChildren();
671 672
672 // The webkit glue id of the accessibility object. 673 // The webkit glue id of the accessibility object.
673 int32 id; 674 int32 id;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 int id, 820 int id,
820 bool notify_result); 821 bool notify_result);
821 void OnSelectAll(); 822 void OnSelectAll();
822 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); 823 void OnSelectRange(const gfx::Point& start, const gfx::Point& end);
823 void OnSetAccessibilityFocus(int acc_obj_id); 824 void OnSetAccessibilityFocus(int acc_obj_id);
824 void OnSetActive(bool active); 825 void OnSetActive(bool active);
825 void OnSetAltErrorPageURL(const GURL& gurl); 826 void OnSetAltErrorPageURL(const GURL& gurl);
826 void OnSetBackground(const SkBitmap& background); 827 void OnSetBackground(const SkBitmap& background);
827 void OnSetWebUIProperty(const std::string& name, const std::string& value); 828 void OnSetWebUIProperty(const std::string& name, const std::string& value);
828 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); 829 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
830 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id);
829 void OnSetInitialFocus(bool reverse); 831 void OnSetInitialFocus(bool reverse);
830 #if defined(OS_MACOSX) 832 #if defined(OS_MACOSX)
831 void OnSetInLiveResize(bool in_live_resize); 833 void OnSetInLiveResize(bool in_live_resize);
832 #endif 834 #endif
833 void OnScrollFocusedEditableNodeIntoView(); 835 void OnScrollFocusedEditableNodeIntoView();
834 void OnSetPageEncoding(const std::string& encoding_name); 836 void OnSetPageEncoding(const std::string& encoding_name);
835 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); 837 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
836 #if defined(OS_MACOSX) 838 #if defined(OS_MACOSX)
837 void OnSetWindowVisibility(bool visible); 839 void OnSetWindowVisibility(bool visible);
838 #endif 840 #endif
839 void OnSetZoomLevel(double zoom_level); 841 void OnSetZoomLevel(double zoom_level);
840 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); 842 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
841 void OnShouldClose(); 843 void OnShouldClose();
842 void OnStop(); 844 void OnStop();
843 void OnStopFinding(const ViewMsg_StopFinding_Params& params); 845 void OnStopFinding(const ViewMsg_StopFinding_Params& params);
844 void OnSwapOut(const ViewMsg_SwapOut_Params& params); 846 void OnSwapOut(const ViewMsg_SwapOut_Params& params);
845 void OnThemeChanged(); 847 void OnThemeChanged();
846 void OnUndo(); 848 void OnUndo();
847 void OnUpdateTargetURLAck(); 849 void OnUpdateTargetURLAck();
848 void OnUpdateWebPreferences(const WebPreferences& prefs); 850 void OnUpdateWebPreferences(const WebPreferences& prefs);
849 void OnUpdateRemoteAccessClientFirewallTraversal(const std::string& policy); 851 void OnUpdateRemoteAccessClientFirewallTraversal(const std::string& policy);
850 void OnSetHistoryLengthAndClear(int history_length);
851 852
852 #if defined(OS_MACOSX) 853 #if defined(OS_MACOSX)
853 void OnWindowFrameChanged(const gfx::Rect& window_frame, 854 void OnWindowFrameChanged(const gfx::Rect& window_frame,
854 const gfx::Rect& view_frame); 855 const gfx::Rect& view_frame);
855 void OnSelectPopupMenuItem(int selected_index); 856 void OnSelectPopupMenuItem(int selected_index);
856 #endif 857 #endif
857 void OnZoom(PageZoom::Function function); 858 void OnZoom(PageZoom::Function function);
858 859
859 // Adding a new message handler? Please add it in alphabetical order above 860 // Adding a new message handler? Please add it in alphabetical order above
860 // and put it in the same position in the .cc file. 861 // and put it in the same position in the .cc file.
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 // bunch of stuff, you should probably create a helper class and put your 1210 // bunch of stuff, you should probably create a helper class and put your
1210 // data and methods on that to avoid bloating RenderView more. You can use 1211 // data and methods on that to avoid bloating RenderView more. You can use
1211 // the Observer interface to filter IPC messages and receive frame change 1212 // the Observer interface to filter IPC messages and receive frame change
1212 // notifications. 1213 // notifications.
1213 // --------------------------------------------------------------------------- 1214 // ---------------------------------------------------------------------------
1214 1215
1215 DISALLOW_COPY_AND_ASSIGN(RenderView); 1216 DISALLOW_COPY_AND_ASSIGN(RenderView);
1216 }; 1217 };
1217 1218
1218 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1219 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698