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

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

Issue 10828143: Zoom level limits must be set before setting a zoom level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase & add comments. Created 8 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
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); 796 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK);
797 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); 797 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored);
798 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); 798 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL);
799 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, 799 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest,
800 GetCompositionCharacterBoundsTest); 800 GetCompositionCharacterBoundsTest);
801 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); 801 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost);
802 #if defined(OS_MACOSX) 802 #if defined(OS_MACOSX)
803 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); 803 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp);
804 #endif 804 #endif
805 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndPrune); 805 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndPrune);
806 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit);
806 807
807 typedef std::map<GURL, double> HostZoomLevels; 808 typedef std::map<GURL, double> HostZoomLevels;
808 809
809 enum ErrorPageType { 810 enum ErrorPageType {
810 DNS_ERROR, 811 DNS_ERROR,
811 HTTP_404, 812 HTTP_404,
812 CONNECTION_ERROR, 813 CONNECTION_ERROR,
813 }; 814 };
814 815
815 RenderViewImpl(gfx::NativeViewId parent_hwnd, 816 RenderViewImpl(gfx::NativeViewId parent_hwnd,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 #if defined(OS_MACOSX) 977 #if defined(OS_MACOSX)
977 void OnSetInLiveResize(bool in_live_resize); 978 void OnSetInLiveResize(bool in_live_resize);
978 #endif 979 #endif
979 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); 980 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect);
980 void OnSetPageEncoding(const std::string& encoding_name); 981 void OnSetPageEncoding(const std::string& encoding_name);
981 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs); 982 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs);
982 #if defined(OS_MACOSX) 983 #if defined(OS_MACOSX)
983 void OnSetWindowVisibility(bool visible); 984 void OnSetWindowVisibility(bool visible);
984 #endif 985 #endif
985 void OnSetZoomLevel(double zoom_level); 986 void OnSetZoomLevel(double zoom_level);
986 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); 987 CONTENT_EXPORT void OnSetZoomLevelForLoadingURL(const GURL& url,
988 double zoom_level);
987 void OnExitFullscreen(); 989 void OnExitFullscreen();
988 void OnShouldClose(); 990 void OnShouldClose();
989 void OnStop(); 991 void OnStop();
990 void OnStopFinding(content::StopFindAction action); 992 void OnStopFinding(content::StopFindAction action);
991 CONTENT_EXPORT void OnSwapOut(const ViewMsg_SwapOut_Params& params); 993 CONTENT_EXPORT void OnSwapOut(const ViewMsg_SwapOut_Params& params);
992 void OnThemeChanged(); 994 void OnThemeChanged();
993 void OnUndo(); 995 void OnUndo();
994 void OnUpdateTargetURLAck(); 996 void OnUpdateTargetURLAck();
995 CONTENT_EXPORT void OnUpdateWebPreferences( 997 CONTENT_EXPORT void OnUpdateWebPreferences(
996 const webkit_glue::WebPreferences& prefs); 998 const webkit_glue::WebPreferences& prefs);
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 // bunch of stuff, you should probably create a helper class and put your 1438 // bunch of stuff, you should probably create a helper class and put your
1437 // data and methods on that to avoid bloating RenderView more. You can 1439 // data and methods on that to avoid bloating RenderView more. You can
1438 // use the Observer interface to filter IPC messages and receive frame change 1440 // use the Observer interface to filter IPC messages and receive frame change
1439 // notifications. 1441 // notifications.
1440 // --------------------------------------------------------------------------- 1442 // ---------------------------------------------------------------------------
1441 1443
1442 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1444 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1443 }; 1445 };
1444 1446
1445 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1447 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698