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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_guest.cc

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
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 #include "base/bind_helpers.h" 5 #include "base/bind_helpers.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 11 matching lines...) Expand all
22 #endif 22 #endif
23 23
24 #if defined(OS_WIN) || defined(USE_AURA) 24 #if defined(OS_WIN) || defined(USE_AURA)
25 #include "content/browser/renderer_host/ui_events_helper.h" 25 #include "content/browser/renderer_host/ui_events_helper.h"
26 #endif 26 #endif
27 27
28 namespace content { 28 namespace content {
29 29
30 namespace { 30 namespace {
31 31
32 #if defined(OS_WIN) || defined(USE_AURA)
32 bool ShouldSendPinchGesture() { 33 bool ShouldSendPinchGesture() {
33 static bool pinch_allowed = 34 static bool pinch_allowed =
34 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePinch); 35 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePinch);
35 return pinch_allowed; 36 return pinch_allowed;
36 } 37 }
37 38
38 blink::WebGestureEvent CreateFlingCancelEvent(double time_stamp) { 39 blink::WebGestureEvent CreateFlingCancelEvent(double time_stamp) {
39 blink::WebGestureEvent gesture_event; 40 blink::WebGestureEvent gesture_event;
40 gesture_event.timeStampSeconds = time_stamp; 41 gesture_event.timeStampSeconds = time_stamp;
41 gesture_event.type = blink::WebGestureEvent::GestureFlingCancel; 42 gesture_event.type = blink::WebGestureEvent::GestureFlingCancel;
42 gesture_event.sourceDevice = blink::WebGestureEvent::Touchscreen; 43 gesture_event.sourceDevice = blink::WebGestureEvent::Touchscreen;
43 return gesture_event; 44 return gesture_event;
44 } 45 }
46 #endif // defined(OS_WIN) || defined(USE_AURA)
45 47
46 } // namespace 48 } // namespace
47 49
48 RenderWidgetHostViewGuest::RenderWidgetHostViewGuest( 50 RenderWidgetHostViewGuest::RenderWidgetHostViewGuest(
49 RenderWidgetHost* widget_host, 51 RenderWidgetHost* widget_host,
50 BrowserPluginGuest* guest, 52 BrowserPluginGuest* guest,
51 RenderWidgetHostView* platform_view) 53 RenderWidgetHostView* platform_view)
52 : host_(RenderWidgetHostImpl::From(widget_host)), 54 : host_(RenderWidgetHostImpl::From(widget_host)),
53 guest_(guest), 55 guest_(guest),
54 platform_view_(static_cast<RenderWidgetHostViewPort*>(platform_view)) { 56 platform_view_(static_cast<RenderWidgetHostViewPort*>(platform_view)) {
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 return; 577 return;
576 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); 578 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin();
577 g_it != gestures->end(); 579 g_it != gestures->end();
578 ++g_it) { 580 ++g_it) {
579 ForwardGestureEventToRenderer(*g_it); 581 ForwardGestureEventToRenderer(*g_it);
580 } 582 }
581 } 583 }
582 584
583 585
584 } // namespace content 586 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698