Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1023)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2702093002: Consistent CopyFromSurface() API, consolidated to RWHV (Closed)
Patch Set: REBASE Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 20 matching lines...) Expand all
31 #include "content/browser/renderer_host/input/input_router_client.h" 31 #include "content/browser/renderer_host/input/input_router_client.h"
32 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker .h" 32 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker .h"
33 #include "content/browser/renderer_host/input/synthetic_gesture.h" 33 #include "content/browser/renderer_host/input/synthetic_gesture.h"
34 #include "content/browser/renderer_host/input/touch_emulator_client.h" 34 #include "content/browser/renderer_host/input/touch_emulator_client.h"
35 #include "content/browser/renderer_host/render_widget_host_delegate.h" 35 #include "content/browser/renderer_host/render_widget_host_delegate.h"
36 #include "content/browser/renderer_host/render_widget_host_view_base.h" 36 #include "content/browser/renderer_host/render_widget_host_view_base.h"
37 #include "content/common/drag_event_source_info.h" 37 #include "content/common/drag_event_source_info.h"
38 #include "content/common/input/input_event_ack_state.h" 38 #include "content/common/input/input_event_ack_state.h"
39 #include "content/common/input/synthetic_gesture_packet.h" 39 #include "content/common/input/synthetic_gesture_packet.h"
40 #include "content/common/view_message_enums.h" 40 #include "content/common/view_message_enums.h"
41 #include "content/public/browser/readback_types.h"
42 #include "content/public/browser/render_widget_host.h" 41 #include "content/public/browser/render_widget_host.h"
43 #include "content/public/common/page_zoom.h" 42 #include "content/public/common/page_zoom.h"
44 #include "content/public/common/url_constants.h" 43 #include "content/public/common/url_constants.h"
45 #include "ipc/ipc_listener.h" 44 #include "ipc/ipc_listener.h"
46 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 45 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
47 #include "ui/base/ime/text_input_mode.h" 46 #include "ui/base/ime/text_input_mode.h"
48 #include "ui/base/ime/text_input_type.h" 47 #include "ui/base/ime/text_input_type.h"
49 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 48 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
50 #include "ui/events/latency_info.h" 49 #include "ui/events/latency_info.h"
51 #include "ui/gfx/native_widget_types.h" 50 #include "ui/gfx/native_widget_types.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 RenderWidgetHostOwnerDelegate* owner_delegate() { return owner_delegate_; } 136 RenderWidgetHostOwnerDelegate* owner_delegate() { return owner_delegate_; }
138 137
139 cc::FrameSinkId AllocateFrameSinkId(bool is_guest_view_hack); 138 cc::FrameSinkId AllocateFrameSinkId(bool is_guest_view_hack);
140 139
141 // RenderWidgetHost implementation. 140 // RenderWidgetHost implementation.
142 void UpdateTextDirection(blink::WebTextDirection direction) override; 141 void UpdateTextDirection(blink::WebTextDirection direction) override;
143 void NotifyTextDirection() override; 142 void NotifyTextDirection() override;
144 void Focus() override; 143 void Focus() override;
145 void Blur() override; 144 void Blur() override;
146 void SetActive(bool active) override; 145 void SetActive(bool active) override;
147 void CopyFromBackingStore(const gfx::Rect& src_rect,
148 const gfx::Size& accelerated_dst_size,
149 const ReadbackRequestCallback& callback,
150 const SkColorType preferred_color_type) override;
151 bool CanCopyFromBackingStore() override;
152 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; 146 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override;
153 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override; 147 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override;
154 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; 148 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override;
155 void ForwardGestureEvent( 149 void ForwardGestureEvent(
156 const blink::WebGestureEvent& gesture_event) override; 150 const blink::WebGestureEvent& gesture_event) override;
157 RenderProcessHost* GetProcess() const override; 151 RenderProcessHost* GetProcess() const override;
158 int GetRoutingID() const override; 152 int GetRoutingID() const override;
159 RenderWidgetHostViewBase* GetView() const override; 153 RenderWidgetHostViewBase* GetView() const override;
160 bool IsLoading() const override; 154 bool IsLoading() const override;
161 void RestartHangMonitorTimeoutIfNecessary() override; 155 void RestartHangMonitorTimeoutIfNecessary() override;
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 #endif 894 #endif
901 895
902 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 896 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
903 897
904 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 898 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
905 }; 899 };
906 900
907 } // namespace content 901 } // namespace content
908 902
909 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 903 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698