| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 const SkBitmap& zoomed_bitmap); | 354 const SkBitmap& zoomed_bitmap); |
| 355 | 355 |
| 356 // Called by the WebContentsImpl when a user tries to navigate a new page on | 356 // Called by the WebContentsImpl when a user tries to navigate a new page on |
| 357 // main frame. | 357 // main frame. |
| 358 virtual void OnDidNavigateMainFrameToNewPage(); | 358 virtual void OnDidNavigateMainFrameToNewPage(); |
| 359 | 359 |
| 360 // Instructs the view to not drop the surface even when the view is hidden. | 360 // Instructs the view to not drop the surface even when the view is hidden. |
| 361 virtual void LockCompositingSurface() = 0; | 361 virtual void LockCompositingSurface() = 0; |
| 362 virtual void UnlockCompositingSurface() = 0; | 362 virtual void UnlockCompositingSurface() = 0; |
| 363 | 363 |
| 364 virtual void RegisterSurfaceNamespaceId() {} |
| 365 virtual void UnregisterSurfaceNamespaceId() {} |
| 366 |
| 364 #if defined(OS_MACOSX) | 367 #if defined(OS_MACOSX) |
| 365 // Does any event handling necessary for plugin IME; should be called after | 368 // Does any event handling necessary for plugin IME; should be called after |
| 366 // the plugin has already had a chance to process the event. If plugin IME is | 369 // the plugin has already had a chance to process the event. If plugin IME is |
| 367 // not enabled, this is a no-op, so it is always safe to call. | 370 // not enabled, this is a no-op, so it is always safe to call. |
| 368 // Returns true if the event was handled by IME. | 371 // Returns true if the event was handled by IME. |
| 369 virtual bool PostProcessEventForPluginIme( | 372 virtual bool PostProcessEventForPluginIme( |
| 370 const NativeWebKeyboardEvent& event) = 0; | 373 const NativeWebKeyboardEvent& event) = 0; |
| 371 #endif | 374 #endif |
| 372 | 375 |
| 373 // Updates the range of the marked text in an IME composition. | 376 // Updates the range of the marked text in an IME composition. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 base::OneShotTimer flush_input_timer_; | 458 base::OneShotTimer flush_input_timer_; |
| 456 | 459 |
| 457 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 460 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 458 | 461 |
| 459 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 462 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 460 }; | 463 }; |
| 461 | 464 |
| 462 } // namespace content | 465 } // namespace content |
| 463 | 466 |
| 464 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 467 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |