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

Side by Side Diff: content/public/browser/render_widget_host_view.h

Issue 868123002: Reset gesture detection upon page navigation for Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename the method Created 5 years, 10 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
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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Begin subscribing for presentation events and captured frames. 131 // Begin subscribing for presentation events and captured frames.
132 // |subscriber| is now owned by this object, it will be called only on the 132 // |subscriber| is now owned by this object, it will be called only on the
133 // UI thread. 133 // UI thread.
134 virtual void BeginFrameSubscription( 134 virtual void BeginFrameSubscription(
135 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; 135 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0;
136 136
137 // End subscribing for frame presentation events. FrameSubscriber will be 137 // End subscribing for frame presentation events. FrameSubscriber will be
138 // deleted after this call. 138 // deleted after this call.
139 virtual void EndFrameSubscription() = 0; 139 virtual void EndFrameSubscription() = 0;
140 140
141 // Cancel all the active touch events for the current main frame.
142 virtual void OnMainFrameNavigation() = 0;
143
sadrul 2015/02/03 01:26:16 Maybe you should add this to RenderWidgetHostViewB
141 #if defined(OS_MACOSX) 144 #if defined(OS_MACOSX)
142 // Set the view's active state (i.e., tint state of controls). 145 // Set the view's active state (i.e., tint state of controls).
143 virtual void SetActive(bool active) = 0; 146 virtual void SetActive(bool active) = 0;
144 147
145 // Notifies the view that its enclosing window has changed visibility 148 // Notifies the view that its enclosing window has changed visibility
146 // (minimized/unminimized, app hidden/unhidden, etc). 149 // (minimized/unminimized, app hidden/unhidden, etc).
147 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for 150 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for
148 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding 151 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding
149 // message and renderer-side handling) can be removed in favor of using 152 // message and renderer-side handling) can be removed in favor of using
150 // WasHidden/WasShown. 153 // WasHidden/WasShown.
(...skipping 12 matching lines...) Expand all
163 // Returns |true| if text is currently being spoken by Mac OS X. 166 // Returns |true| if text is currently being spoken by Mac OS X.
164 virtual bool IsSpeaking() const = 0; 167 virtual bool IsSpeaking() const = 0;
165 // Stops speaking, if it is currently in progress. 168 // Stops speaking, if it is currently in progress.
166 virtual void StopSpeaking() = 0; 169 virtual void StopSpeaking() = 0;
167 #endif // defined(OS_MACOSX) 170 #endif // defined(OS_MACOSX)
168 }; 171 };
169 172
170 } // namespace content 173 } // namespace content
171 174
172 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 175 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698