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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 gfx::Vector2dF current_fling_velocity) = 0; | 288 gfx::Vector2dF current_fling_velocity) = 0; |
289 | 289 |
290 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; | 290 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; |
291 virtual WebKit::WebPopupType GetPopupType() = 0; | 291 virtual WebKit::WebPopupType GetPopupType() = 0; |
292 | 292 |
293 virtual BrowserAccessibilityManager* | 293 virtual BrowserAccessibilityManager* |
294 GetBrowserAccessibilityManager() const = 0; | 294 GetBrowserAccessibilityManager() const = 0; |
295 virtual void OnAccessibilityNotifications( | 295 virtual void OnAccessibilityNotifications( |
296 const std::vector<AccessibilityHostMsg_NotificationParams>& params) = 0; | 296 const std::vector<AccessibilityHostMsg_NotificationParams>& params) = 0; |
297 | 297 |
| 298 // Return a value that is incremented each time the renderer swaps a new frame |
| 299 // to the view. |
| 300 virtual uint32 RendererFrameNumber() = 0; |
| 301 // Called each time the RenderWidgetHost receives a new frame for display from |
| 302 // the renderer. |
| 303 virtual void DidReceiveRendererFrame() = 0; |
| 304 |
298 #if defined(OS_MACOSX) | 305 #if defined(OS_MACOSX) |
299 // Called just before GetBackingStore blocks for an updated frame. | 306 // Called just before GetBackingStore blocks for an updated frame. |
300 virtual void AboutToWaitForBackingStoreMsg() = 0; | 307 virtual void AboutToWaitForBackingStoreMsg() = 0; |
301 | 308 |
302 // Does any event handling necessary for plugin IME; should be called after | 309 // Does any event handling necessary for plugin IME; should be called after |
303 // the plugin has already had a chance to process the event. If plugin IME is | 310 // the plugin has already had a chance to process the event. If plugin IME is |
304 // not enabled, this is a no-op, so it is always safe to call. | 311 // not enabled, this is a no-op, so it is always safe to call. |
305 // Returns true if the event was handled by IME. | 312 // Returns true if the event was handled by IME. |
306 virtual bool PostProcessEventForPluginIme( | 313 virtual bool PostProcessEventForPluginIme( |
307 const NativeWebKeyboardEvent& event) = 0; | 314 const NativeWebKeyboardEvent& event) = 0; |
(...skipping 11 matching lines...) Expand all Loading... |
319 | 326 |
320 #if defined(OS_WIN) && defined(USE_AURA) | 327 #if defined(OS_WIN) && defined(USE_AURA) |
321 virtual void SetParentNativeViewAccessible( | 328 virtual void SetParentNativeViewAccessible( |
322 gfx::NativeViewAccessible accessible_parent) = 0; | 329 gfx::NativeViewAccessible accessible_parent) = 0; |
323 #endif | 330 #endif |
324 }; | 331 }; |
325 | 332 |
326 } // namespace content | 333 } // namespace content |
327 | 334 |
328 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 335 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |