| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // one depending on the current state. | 319 // one depending on the current state. |
| 320 virtual void CreateBrowserAccessibilityManagerIfNeeded() = 0; | 320 virtual void CreateBrowserAccessibilityManagerIfNeeded() = 0; |
| 321 | 321 |
| 322 // Return a value that is incremented each time the renderer swaps a new frame | 322 // Return a value that is incremented each time the renderer swaps a new frame |
| 323 // to the view. | 323 // to the view. |
| 324 virtual uint32 RendererFrameNumber() = 0; | 324 virtual uint32 RendererFrameNumber() = 0; |
| 325 // Called each time the RenderWidgetHost receives a new frame for display from | 325 // Called each time the RenderWidgetHost receives a new frame for display from |
| 326 // the renderer. | 326 // the renderer. |
| 327 virtual void DidReceiveRendererFrame() = 0; | 327 virtual void DidReceiveRendererFrame() = 0; |
| 328 | 328 |
| 329 virtual SkBitmap::Config PreferredReadbackFormat() = 0; |
| 330 |
| 329 #if defined(OS_MACOSX) | 331 #if defined(OS_MACOSX) |
| 330 // Does any event handling necessary for plugin IME; should be called after | 332 // Does any event handling necessary for plugin IME; should be called after |
| 331 // the plugin has already had a chance to process the event. If plugin IME is | 333 // the plugin has already had a chance to process the event. If plugin IME is |
| 332 // not enabled, this is a no-op, so it is always safe to call. | 334 // not enabled, this is a no-op, so it is always safe to call. |
| 333 // Returns true if the event was handled by IME. | 335 // Returns true if the event was handled by IME. |
| 334 virtual bool PostProcessEventForPluginIme( | 336 virtual bool PostProcessEventForPluginIme( |
| 335 const NativeWebKeyboardEvent& event) = 0; | 337 const NativeWebKeyboardEvent& event) = 0; |
| 336 #endif | 338 #endif |
| 337 | 339 |
| 338 #if defined(OS_ANDROID) | 340 #if defined(OS_ANDROID) |
| 339 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 341 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
| 340 const SkBitmap& zoomed_bitmap) = 0; | 342 const SkBitmap& zoomed_bitmap) = 0; |
| 341 #endif | 343 #endif |
| 342 | 344 |
| 343 #if defined(OS_WIN) | 345 #if defined(OS_WIN) |
| 344 virtual void SetParentNativeViewAccessible( | 346 virtual void SetParentNativeViewAccessible( |
| 345 gfx::NativeViewAccessible accessible_parent) = 0; | 347 gfx::NativeViewAccessible accessible_parent) = 0; |
| 346 | 348 |
| 347 // Returns an HWND that's given as the parent window for windowless Flash to | 349 // Returns an HWND that's given as the parent window for windowless Flash to |
| 348 // workaround crbug.com/301548. | 350 // workaround crbug.com/301548. |
| 349 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 351 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 350 #endif | 352 #endif |
| 351 }; | 353 }; |
| 352 | 354 |
| 353 } // namespace content | 355 } // namespace content |
| 354 | 356 |
| 355 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 357 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |