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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // the plugin has already had a chance to process the event. If plugin IME is | 331 // 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. | 332 // not enabled, this is a no-op, so it is always safe to call. |
333 // Returns true if the event was handled by IME. | 333 // Returns true if the event was handled by IME. |
334 virtual bool PostProcessEventForPluginIme( | 334 virtual bool PostProcessEventForPluginIme( |
335 const NativeWebKeyboardEvent& event) = 0; | 335 const NativeWebKeyboardEvent& event) = 0; |
336 #endif | 336 #endif |
337 | 337 |
338 #if defined(OS_ANDROID) | 338 #if defined(OS_ANDROID) |
339 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 339 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
340 const SkBitmap& zoomed_bitmap) = 0; | 340 const SkBitmap& zoomed_bitmap) = 0; |
341 virtual void HasTouchEventHandlers(bool need_touch_events) = 0; | |
342 #endif | 341 #endif |
343 | 342 |
344 #if defined(OS_WIN) | 343 #if defined(OS_WIN) |
345 virtual void SetParentNativeViewAccessible( | 344 virtual void SetParentNativeViewAccessible( |
346 gfx::NativeViewAccessible accessible_parent) = 0; | 345 gfx::NativeViewAccessible accessible_parent) = 0; |
347 | 346 |
348 // Returns an HWND that's given as the parent window for windowless Flash to | 347 // Returns an HWND that's given as the parent window for windowless Flash to |
349 // workaround crbug.com/301548. | 348 // workaround crbug.com/301548. |
350 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 349 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
351 #endif | 350 #endif |
352 }; | 351 }; |
353 | 352 |
354 } // namespace content | 353 } // namespace content |
355 | 354 |
356 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 355 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |