Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 window, only for Aura. | |
|
tdresser
2015/01/24 14:29:01
We shouldn't reference Aura here, and this shouldn
jdduke (slow)
2015/01/26 16:09:00
Would it be crazy to make this callback more gener
lanwei
2015/01/30 14:21:50
Done.
lanwei
2015/01/30 14:21:50
Done.
| |
| 142 virtual void ResetGestureDetection() = 0; | |
| 143 | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |