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