| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 419 bool wheel_scroll_latching_enabled() { | 420 bool wheel_scroll_latching_enabled() { |
| 420 return wheel_scroll_latching_enabled_; | 421 return wheel_scroll_latching_enabled_; |
| 421 } | 422 } |
| 422 | 423 |
| 424 // This only returns non-null on platforms that implement touch |
| 425 // selection editing (TSE), currently Aura and (soon) Android. |
| 426 // TODO(wjmaclean): update this comment when OOPIF TSE is implemented on |
| 427 // Android. |
| 428 virtual TouchSelectionControllerClientManager* |
| 429 touch_selection_controller_client_manager(); |
| 430 |
| 423 // Exposed for testing. | 431 // Exposed for testing. |
| 424 virtual bool IsChildFrameForTesting() const; | 432 virtual bool IsChildFrameForTesting() const; |
| 425 virtual cc::SurfaceId SurfaceIdForTesting() const; | 433 virtual cc::SurfaceId SurfaceIdForTesting() const; |
| 426 | 434 |
| 427 protected: | 435 protected: |
| 428 // Interface class only, do not construct. | 436 // Interface class only, do not construct. |
| 429 RenderWidgetHostViewBase(); | 437 RenderWidgetHostViewBase(); |
| 430 | 438 |
| 431 void NotifyObserversAboutShutdown(); | 439 void NotifyObserversAboutShutdown(); |
| 432 | 440 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 477 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 470 | 478 |
| 471 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 479 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 472 | 480 |
| 473 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 481 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 474 }; | 482 }; |
| 475 | 483 |
| 476 } // namespace content | 484 } // namespace content |
| 477 | 485 |
| 478 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 486 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |