| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void SetIsInVR(bool is_in_vr) override; | 100 void SetIsInVR(bool is_in_vr) override; |
| 101 base::string16 GetSelectedText() override; | 101 base::string16 GetSelectedText() override; |
| 102 bool IsMouseLocked() override; | 102 bool IsMouseLocked() override; |
| 103 gfx::Size GetVisibleViewportSize() const override; | 103 gfx::Size GetVisibleViewportSize() const override; |
| 104 void SetInsets(const gfx::Insets& insets) override; | 104 void SetInsets(const gfx::Insets& insets) override; |
| 105 void BeginFrameSubscription( | 105 void BeginFrameSubscription( |
| 106 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; | 106 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
| 107 void EndFrameSubscription() override; | 107 void EndFrameSubscription() override; |
| 108 void FocusedNodeTouched(const gfx::Point& location_dips_screen, | 108 void FocusedNodeTouched(const gfx::Point& location_dips_screen, |
| 109 bool editable) override; | 109 bool editable) override; |
| 110 float GetScaleFactorForNativeView() const override; |
| 110 | 111 |
| 111 // This only needs to be overridden by RenderWidgetHostViewBase subclasses | 112 // This only needs to be overridden by RenderWidgetHostViewBase subclasses |
| 112 // that handle content embedded within other RenderWidgetHostViews. | 113 // that handle content embedded within other RenderWidgetHostViews. |
| 113 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; | 114 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; |
| 114 gfx::PointF TransformPointToRootCoordSpaceF( | 115 gfx::PointF TransformPointToRootCoordSpaceF( |
| 115 const gfx::PointF& point) override; | 116 const gfx::PointF& point) override; |
| 116 | 117 |
| 117 // IPC::Listener implementation: | 118 // IPC::Listener implementation: |
| 118 bool OnMessageReceived(const IPC::Message& msg) override; | 119 bool OnMessageReceived(const IPC::Message& msg) override; |
| 119 | 120 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 484 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 484 | 485 |
| 485 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 486 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 486 | 487 |
| 487 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 488 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 488 }; | 489 }; |
| 489 | 490 |
| 490 } // namespace content | 491 } // namespace content |
| 491 | 492 |
| 492 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 493 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |