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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 struct DidOverscrollParams; | 67 struct DidOverscrollParams; |
68 } | 68 } |
69 | 69 |
70 namespace content { | 70 namespace content { |
71 class BrowserAccessibilityDelegate; | 71 class BrowserAccessibilityDelegate; |
72 class BrowserAccessibilityManager; | 72 class BrowserAccessibilityManager; |
73 class RenderWidgetHostImpl; | 73 class RenderWidgetHostImpl; |
74 class RenderWidgetHostViewBaseObserver; | 74 class RenderWidgetHostViewBaseObserver; |
75 class SyntheticGestureTarget; | 75 class SyntheticGestureTarget; |
76 class TextInputManager; | 76 class TextInputManager; |
| 77 class TouchSelectionControllerClientManager; |
77 class WebCursor; | 78 class WebCursor; |
78 struct NativeWebKeyboardEvent; | 79 struct NativeWebKeyboardEvent; |
79 struct TextInputState; | 80 struct TextInputState; |
80 | 81 |
81 // Basic implementation shared by concrete RenderWidgetHostView subclasses. | 82 // Basic implementation shared by concrete RenderWidgetHostView subclasses. |
82 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, | 83 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
83 public IPC::Listener { | 84 public IPC::Listener { |
84 public: | 85 public: |
85 ~RenderWidgetHostViewBase() override; | 86 ~RenderWidgetHostViewBase() override; |
86 | 87 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // TextInputManager if it is destroyed or if the TextInputManager itself is | 410 // TextInputManager if it is destroyed or if the TextInputManager itself is |
410 // destroyed. The unregistration of the RWHV from TextInputManager is | 411 // destroyed. The unregistration of the RWHV from TextInputManager is |
411 // necessary and must be done by explicitly calling | 412 // necessary and must be done by explicitly calling |
412 // TextInputManager::Unregister. | 413 // TextInputManager::Unregister. |
413 // It is safer to use this method rather than directly dereferencing | 414 // It is safer to use this method rather than directly dereferencing |
414 // |text_input_manager_|. | 415 // |text_input_manager_|. |
415 TextInputManager* GetTextInputManager(); | 416 TextInputManager* GetTextInputManager(); |
416 | 417 |
417 bool is_fullscreen() { return is_fullscreen_; } | 418 bool is_fullscreen() { return is_fullscreen_; } |
418 | 419 |
| 420 // This only returns non-null on platforms that implement touch |
| 421 // selection editing (TSE), currently Aura and (soon) Android. |
| 422 // TODO(wjmaclean): update this comment when OOPIF TSE is implemented on |
| 423 // Android. |
| 424 virtual TouchSelectionControllerClientManager* |
| 425 touch_selection_controller_client_manager(); |
| 426 |
419 // Exposed for testing. | 427 // Exposed for testing. |
420 virtual bool IsChildFrameForTesting() const; | 428 virtual bool IsChildFrameForTesting() const; |
421 virtual cc::SurfaceId SurfaceIdForTesting() const; | 429 virtual cc::SurfaceId SurfaceIdForTesting() const; |
422 | 430 |
423 protected: | 431 protected: |
424 // Interface class only, do not construct. | 432 // Interface class only, do not construct. |
425 RenderWidgetHostViewBase(); | 433 RenderWidgetHostViewBase(); |
426 | 434 |
427 void NotifyObserversAboutShutdown(); | 435 void NotifyObserversAboutShutdown(); |
428 | 436 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 471 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
464 | 472 |
465 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 473 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
466 | 474 |
467 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 475 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
468 }; | 476 }; |
469 | 477 |
470 } // namespace content | 478 } // namespace content |
471 | 479 |
472 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 480 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |