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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 313083002: Disable overscroll navigation when emulating touch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 6 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) 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 bool* is_keyboard_shortcut) OVERRIDE; 499 bool* is_keyboard_shortcut) OVERRIDE;
500 virtual void HandleKeyboardEvent( 500 virtual void HandleKeyboardEvent(
501 const NativeWebKeyboardEvent& event) OVERRIDE; 501 const NativeWebKeyboardEvent& event) OVERRIDE;
502 virtual bool HandleWheelEvent( 502 virtual bool HandleWheelEvent(
503 const blink::WebMouseWheelEvent& event) OVERRIDE; 503 const blink::WebMouseWheelEvent& event) OVERRIDE;
504 virtual bool PreHandleGestureEvent( 504 virtual bool PreHandleGestureEvent(
505 const blink::WebGestureEvent& event) OVERRIDE; 505 const blink::WebGestureEvent& event) OVERRIDE;
506 virtual bool HandleGestureEvent( 506 virtual bool HandleGestureEvent(
507 const blink::WebGestureEvent& event) OVERRIDE; 507 const blink::WebGestureEvent& event) OVERRIDE;
508 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE; 508 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE;
509 virtual void OnTouchEmulationEnabled(bool enabled) OVERRIDE;
509 #if defined(OS_WIN) 510 #if defined(OS_WIN)
510 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE; 511 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
511 #endif 512 #endif
512 513
513 // RenderFrameHostManager::Delegate ------------------------------------------ 514 // RenderFrameHostManager::Delegate ------------------------------------------
514 515
515 virtual bool CreateRenderViewForRenderManager( 516 virtual bool CreateRenderViewForRenderManager(
516 RenderViewHost* render_view_host, 517 RenderViewHost* render_view_host,
517 int opener_route_id, 518 int opener_route_id,
518 int proxy_routing_id, 519 int proxy_routing_id,
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 int fullscreen_widget_routing_id_; 1116 int fullscreen_widget_routing_id_;
1116 1117
1117 // Maps the ids of pending image downloads to their callbacks 1118 // Maps the ids of pending image downloads to their callbacks
1118 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 1119 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
1119 ImageDownloadMap image_download_map_; 1120 ImageDownloadMap image_download_map_;
1120 1121
1121 // Whether this WebContents is responsible for displaying a subframe in a 1122 // Whether this WebContents is responsible for displaying a subframe in a
1122 // different process from its parent page. 1123 // different process from its parent page.
1123 bool is_subframe_; 1124 bool is_subframe_;
1124 1125
1126 // Whether touch emulation is enabled in RenderWidgetHost.
1127 bool touch_emulation_enabled_;
1128
1125 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1129 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1126 bool last_dialog_suppressed_; 1130 bool last_dialog_suppressed_;
1127 1131
1128 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; 1132 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1129 1133
1130 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1134 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1131 }; 1135 };
1132 1136
1133 } // namespace content 1137 } // namespace content
1134 1138
1135 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1139 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698