| Index: content/renderer/render_widget.h
|
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
|
| index 87866408934b1d6e9a731f74ebec8a9637f40a4c..1756c64c9ef5d95d86e0a12c6e5bd688e0cf52b2 100644
|
| --- a/content/renderer/render_widget.h
|
| +++ b/content/renderer/render_widget.h
|
| @@ -17,6 +17,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "base/observer_list.h"
|
| #include "base/time/time.h"
|
| #include "build/build_config.h"
|
| @@ -64,12 +65,14 @@ namespace blink {
|
| namespace scheduler {
|
| class RenderWidgetSchedulingState;
|
| }
|
| +struct WebActiveWheelFlingParameters;
|
| struct WebDeviceEmulationParams;
|
| class WebFrameWidget;
|
| class WebGestureEvent;
|
| class WebLocalFrame;
|
| class WebMouseEvent;
|
| class WebNode;
|
| +class WebURL;
|
| struct WebPoint;
|
| }
|
|
|
| @@ -395,6 +398,9 @@ class CONTENT_EXPORT RenderWidget
|
| // When emulated, this returns original device scale factor.
|
| float GetOriginalDeviceScaleFactor() const;
|
|
|
| + virtual void TransferActiveWheelFlingAnimation(
|
| + const blink::WebActiveWheelFlingParameters& params) {}
|
| +
|
| protected:
|
| // Friend RefCounted so that the dtor can be non-public. Using this class
|
| // without ref-counting is an error.
|
| @@ -508,6 +514,17 @@ class CONTENT_EXPORT RenderWidget
|
|
|
| // Called by the browser process to update text input state.
|
| void OnRequestTextInputStateUpdate();
|
| +
|
| + // Declared here to allow use of RenderWidget weak pointer. Overriden in
|
| + // RenderViewImpl.
|
| + virtual void LaunchAndroidContentIntent(const GURL& intent,
|
| + size_t request_id,
|
| + bool is_main_frame) {}
|
| +
|
| + // Utility function so LaunchAndroidContentIntent can remain protected.
|
| + void scheduleContentIntentForRenderView(const blink::WebURL& intent,
|
| + bool is_main_frame,
|
| + size_t expected_content_intent_id);
|
| #endif
|
|
|
| // Called by the browser process to update the cursor and composition
|
| @@ -787,6 +804,8 @@ class CONTENT_EXPORT RenderWidget
|
| // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
|
| std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
|
|
|
| + bool has_added_input_handler_;
|
| +
|
| private:
|
| // Applies/Removes the DevTools device emulation transformation to/from a
|
| // window rect.
|
| @@ -814,6 +833,8 @@ class CONTENT_EXPORT RenderWidget
|
| // Will be cleared as soon as the next key event is processed.
|
| EditCommands edit_commands_;
|
|
|
| + base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(RenderWidget);
|
| };
|
|
|
|
|