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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 void OnUndo(); | 855 void OnUndo(); |
856 void OnUpdateTargetURLAck(); | 856 void OnUpdateTargetURLAck(); |
857 void OnUpdateWebPreferences(const WebPreferences& prefs); | 857 void OnUpdateWebPreferences(const WebPreferences& prefs); |
858 | 858 |
859 #if defined(OS_MACOSX) | 859 #if defined(OS_MACOSX) |
860 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 860 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
861 const gfx::Rect& view_frame); | 861 const gfx::Rect& view_frame); |
862 void OnSelectPopupMenuItem(int selected_index); | 862 void OnSelectPopupMenuItem(int selected_index); |
863 #endif | 863 #endif |
864 void OnZoom(PageZoom::Function function); | 864 void OnZoom(PageZoom::Function function); |
| 865 void OnZoomFactor(PageZoom::Function function, int zoom_center_x, |
| 866 int zoom_center_y); |
| 867 |
865 void OnEnableViewSourceMode(); | 868 void OnEnableViewSourceMode(); |
866 | 869 |
867 void OnJavaBridgeInit(const IPC::ChannelHandle& channel_handle); | 870 void OnJavaBridgeInit(const IPC::ChannelHandle& channel_handle); |
868 | 871 |
869 // Adding a new message handler? Please add it in alphabetical order above | 872 // Adding a new message handler? Please add it in alphabetical order above |
870 // and put it in the same position in the .cc file. | 873 // and put it in the same position in the .cc file. |
871 | 874 |
872 // Misc private functions ---------------------------------------------------- | 875 // Misc private functions ---------------------------------------------------- |
| 876 void ZoomFactorHelper(PageZoom::Function function, int zoom_center_x, |
| 877 int zoom_center_y, float scaling_increment); |
873 | 878 |
874 void AltErrorPageFinished(WebKit::WebFrame* frame, | 879 void AltErrorPageFinished(WebKit::WebFrame* frame, |
875 const WebKit::WebURLError& original_error, | 880 const WebKit::WebURLError& original_error, |
876 const std::string& html); | 881 const std::string& html); |
877 | 882 |
878 // Check whether the preferred size has changed. | 883 // Check whether the preferred size has changed. |
879 void CheckPreferredSize(); | 884 void CheckPreferredSize(); |
880 | 885 |
881 // This callback is triggered when DownloadFavicon completes, either | 886 // This callback is triggered when DownloadFavicon completes, either |
882 // succesfully or with a failure. See DownloadFavicon for more | 887 // succesfully or with a failure. See DownloadFavicon for more |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 // bunch of stuff, you should probably create a helper class and put your | 1230 // bunch of stuff, you should probably create a helper class and put your |
1226 // data and methods on that to avoid bloating RenderView more. You can | 1231 // data and methods on that to avoid bloating RenderView more. You can |
1227 // use the Observer interface to filter IPC messages and receive frame change | 1232 // use the Observer interface to filter IPC messages and receive frame change |
1228 // notifications. | 1233 // notifications. |
1229 // --------------------------------------------------------------------------- | 1234 // --------------------------------------------------------------------------- |
1230 | 1235 |
1231 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1236 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1232 }; | 1237 }; |
1233 | 1238 |
1234 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1239 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |