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

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

Issue 8399009: Add support for touch based zoom gesture on Windows. This change also handles the WM_POINTERDOWN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/common/view_messages.h ('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) 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
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
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_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698