| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 const SkBitmap& zoomed_bitmap); | 357 const SkBitmap& zoomed_bitmap); |
| 358 | 358 |
| 359 // Called by the WebContentsImpl when a user tries to navigate a new page on | 359 // Called by the WebContentsImpl when a user tries to navigate a new page on |
| 360 // main frame. | 360 // main frame. |
| 361 virtual void OnDidNavigateMainFrameToNewPage(); | 361 virtual void OnDidNavigateMainFrameToNewPage(); |
| 362 | 362 |
| 363 // Instructs the view to not drop the surface even when the view is hidden. | 363 // Instructs the view to not drop the surface even when the view is hidden. |
| 364 virtual void LockCompositingSurface() = 0; | 364 virtual void LockCompositingSurface() = 0; |
| 365 virtual void UnlockCompositingSurface() = 0; | 365 virtual void UnlockCompositingSurface() = 0; |
| 366 | 366 |
| 367 #if defined(OS_MACOSX) | |
| 368 // Does any event handling necessary for plugin IME; should be called after | |
| 369 // the plugin has already had a chance to process the event. If plugin IME is | |
| 370 // not enabled, this is a no-op, so it is always safe to call. | |
| 371 // Returns true if the event was handled by IME. | |
| 372 virtual bool PostProcessEventForPluginIme( | |
| 373 const NativeWebKeyboardEvent& event) = 0; | |
| 374 #endif | |
| 375 | |
| 376 // Updates the range of the marked text in an IME composition. | 367 // Updates the range of the marked text in an IME composition. |
| 377 virtual void ImeCompositionRangeChanged( | 368 virtual void ImeCompositionRangeChanged( |
| 378 const gfx::Range& range, | 369 const gfx::Range& range, |
| 379 const std::vector<gfx::Rect>& character_bounds) = 0; | 370 const std::vector<gfx::Rect>& character_bounds) = 0; |
| 380 | 371 |
| 381 // Add and remove observers for lifetime event notifications. The order in | 372 // Add and remove observers for lifetime event notifications. The order in |
| 382 // which notifications are sent to observers is undefined. Clients must be | 373 // which notifications are sent to observers is undefined. Clients must be |
| 383 // sure to remove the observer before they go away. | 374 // sure to remove the observer before they go away. |
| 384 void AddObserver(RenderWidgetHostViewBaseObserver* observer); | 375 void AddObserver(RenderWidgetHostViewBaseObserver* observer); |
| 385 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); | 376 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 435 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 445 | 436 |
| 446 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 447 | 438 |
| 448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 449 }; | 440 }; |
| 450 | 441 |
| 451 } // namespace content | 442 } // namespace content |
| 452 | 443 |
| 453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |