| 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/string16.h" | 10 #include "base/string16.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // the plugin has already had a chance to process the event. If plugin IME is | 296 // the plugin has already had a chance to process the event. If plugin IME is |
| 297 // not enabled, this is a no-op, so it is always safe to call. | 297 // not enabled, this is a no-op, so it is always safe to call. |
| 298 // Returns true if the event was handled by IME. | 298 // Returns true if the event was handled by IME. |
| 299 virtual bool PostProcessEventForPluginIme( | 299 virtual bool PostProcessEventForPluginIme( |
| 300 const NativeWebKeyboardEvent& event) = 0; | 300 const NativeWebKeyboardEvent& event) = 0; |
| 301 #endif | 301 #endif |
| 302 | 302 |
| 303 #if defined(OS_ANDROID) | 303 #if defined(OS_ANDROID) |
| 304 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 304 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
| 305 const SkBitmap& zoomed_bitmap) = 0; | 305 const SkBitmap& zoomed_bitmap) = 0; |
| 306 virtual void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | |
| 307 float page_scale_factor, | |
| 308 const gfx::Vector2dF& page_scale_factor_limits, | |
| 309 const gfx::SizeF& content_size, | |
| 310 const gfx::SizeF& viewport_size, | |
| 311 const gfx::Vector2dF& controls_offset, | |
| 312 const gfx::Vector2dF& content_offset, | |
| 313 float overdraw_bottom_height) = 0; | |
| 314 virtual void HasTouchEventHandlers(bool need_touch_events) = 0; | 306 virtual void HasTouchEventHandlers(bool need_touch_events) = 0; |
| 315 #endif | 307 #endif |
| 316 | 308 |
| 317 #if defined(OS_WIN) && !defined(USE_AURA) | 309 #if defined(OS_WIN) && !defined(USE_AURA) |
| 318 virtual void WillWmDestroy() = 0; | 310 virtual void WillWmDestroy() = 0; |
| 319 #endif | 311 #endif |
| 320 }; | 312 }; |
| 321 | 313 |
| 322 } // namespace content | 314 } // namespace content |
| 323 | 315 |
| 324 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 316 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |