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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // Returns true if the event was handled by IME. | 371 // Returns true if the event was handled by IME. |
372 virtual bool PostProcessEventForPluginIme( | 372 virtual bool PostProcessEventForPluginIme( |
373 const NativeWebKeyboardEvent& event) = 0; | 373 const NativeWebKeyboardEvent& event) = 0; |
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) | |
382 virtual void SetParentNativeViewAccessible( | |
383 gfx::NativeViewAccessible accessible_parent) = 0; | |
384 #endif | |
385 | |
386 // Add and remove observers for lifetime event notifications. The order in | 381 // Add and remove observers for lifetime event notifications. The order in |
387 // which notifications are sent to observers is undefined. Clients must be | 382 // which notifications are sent to observers is undefined. Clients must be |
388 // sure to remove the observer before they go away. | 383 // sure to remove the observer before they go away. |
389 void AddObserver(RenderWidgetHostViewBaseObserver* observer); | 384 void AddObserver(RenderWidgetHostViewBaseObserver* observer); |
390 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); | 385 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); |
391 | 386 |
392 // Exposed for testing. | 387 // Exposed for testing. |
393 virtual cc::SurfaceId SurfaceIdForTesting() const; | 388 virtual cc::SurfaceId SurfaceIdForTesting() const; |
394 | 389 |
395 protected: | 390 protected: |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 443 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
449 | 444 |
450 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 445 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
451 | 446 |
452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 447 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
453 }; | 448 }; |
454 | 449 |
455 } // namespace content | 450 } // namespace content |
456 | 451 |
457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 452 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |