| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 #endif | 374 #endif |
| 375 | 375 |
| 376 // Updates the range of the marked text in an IME composition. | 376 // Updates the range of the marked text in an IME composition. |
| 377 virtual void ImeCompositionRangeChanged( | 377 virtual void ImeCompositionRangeChanged( |
| 378 const gfx::Range& range, | 378 const gfx::Range& range, |
| 379 const std::vector<gfx::Rect>& character_bounds) = 0; | 379 const std::vector<gfx::Rect>& character_bounds) = 0; |
| 380 | 380 |
| 381 #if defined(OS_WIN) | 381 #if defined(OS_WIN) |
| 382 virtual void SetParentNativeViewAccessible( | 382 virtual void SetParentNativeViewAccessible( |
| 383 gfx::NativeViewAccessible accessible_parent) = 0; | 383 gfx::NativeViewAccessible accessible_parent) = 0; |
| 384 | |
| 385 // Returns an HWND that's given as the parent window for windowless Flash to | |
| 386 // workaround crbug.com/301548. | |
| 387 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | |
| 388 #endif | 384 #endif |
| 389 | 385 |
| 390 // Add and remove observers for lifetime event notifications. The order in | 386 // Add and remove observers for lifetime event notifications. The order in |
| 391 // which notifications are sent to observers is undefined. Clients must be | 387 // which notifications are sent to observers is undefined. Clients must be |
| 392 // sure to remove the observer before they go away. | 388 // sure to remove the observer before they go away. |
| 393 void AddObserver(RenderWidgetHostViewBaseObserver* observer); | 389 void AddObserver(RenderWidgetHostViewBaseObserver* observer); |
| 394 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); | 390 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); |
| 395 | 391 |
| 396 // Exposed for testing. | 392 // Exposed for testing. |
| 397 virtual cc::SurfaceId SurfaceIdForTesting() const; | 393 virtual cc::SurfaceId SurfaceIdForTesting() const; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 448 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 453 | 449 |
| 454 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 450 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 455 | 451 |
| 456 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 457 }; | 453 }; |
| 458 | 454 |
| 459 } // namespace content | 455 } // namespace content |
| 460 | 456 |
| 461 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |