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

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

Issue 593503003: Support error handling for Surface readbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted code and fixed build issue in test. Created 6 years, 1 month 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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 15 matching lines...) Expand all
26 #include "cc/base/rolling_time_delta_history.h" 26 #include "cc/base/rolling_time_delta_history.h"
27 #include "cc/resources/shared_bitmap.h" 27 #include "cc/resources/shared_bitmap.h"
28 #include "content/browser/renderer_host/event_with_latency_info.h" 28 #include "content/browser/renderer_host/event_with_latency_info.h"
29 #include "content/browser/renderer_host/input/input_ack_handler.h" 29 #include "content/browser/renderer_host/input/input_ack_handler.h"
30 #include "content/browser/renderer_host/input/input_router_client.h" 30 #include "content/browser/renderer_host/input/input_router_client.h"
31 #include "content/browser/renderer_host/input/synthetic_gesture.h" 31 #include "content/browser/renderer_host/input/synthetic_gesture.h"
32 #include "content/browser/renderer_host/input/touch_emulator_client.h" 32 #include "content/browser/renderer_host/input/touch_emulator_client.h"
33 #include "content/common/input/input_event_ack_state.h" 33 #include "content/common/input/input_event_ack_state.h"
34 #include "content/common/input/synthetic_gesture_packet.h" 34 #include "content/common/input/synthetic_gesture_packet.h"
35 #include "content/common/view_message_enums.h" 35 #include "content/common/view_message_enums.h"
36 #include "content/public/browser/readback_types.h"
36 #include "content/public/browser/render_widget_host.h" 37 #include "content/public/browser/render_widget_host.h"
37 #include "content/public/common/page_zoom.h" 38 #include "content/public/common/page_zoom.h"
38 #include "ipc/ipc_listener.h" 39 #include "ipc/ipc_listener.h"
39 #include "ui/base/ime/text_input_mode.h" 40 #include "ui/base/ime/text_input_mode.h"
40 #include "ui/base/ime/text_input_type.h" 41 #include "ui/base/ime/text_input_type.h"
41 #include "ui/events/latency_info.h" 42 #include "ui/events/latency_info.h"
42 #include "ui/gfx/native_widget_types.h" 43 #include "ui/gfx/native_widget_types.h"
43 44
44 struct AcceleratedSurfaceMsg_BufferPresented_Params; 45 struct AcceleratedSurfaceMsg_BufferPresented_Params;
45 struct ViewHostMsg_BeginSmoothScroll_Params; 46 struct ViewHostMsg_BeginSmoothScroll_Params;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) { 126 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) {
126 hung_renderer_delay_ms_ = timeout.InMilliseconds(); 127 hung_renderer_delay_ms_ = timeout.InMilliseconds();
127 } 128 }
128 129
129 // RenderWidgetHost implementation. 130 // RenderWidgetHost implementation.
130 void UpdateTextDirection(blink::WebTextDirection direction) override; 131 void UpdateTextDirection(blink::WebTextDirection direction) override;
131 void NotifyTextDirection() override; 132 void NotifyTextDirection() override;
132 void Focus() override; 133 void Focus() override;
133 void Blur() override; 134 void Blur() override;
134 void SetActive(bool active) override; 135 void SetActive(bool active) override;
135 void CopyFromBackingStore( 136 void CopyFromBackingStore(const gfx::Rect& src_rect,
136 const gfx::Rect& src_rect, 137 const gfx::Size& accelerated_dst_size,
137 const gfx::Size& accelerated_dst_size, 138 ReadbackRequestCallback& callback,
138 const base::Callback<void(bool, const SkBitmap&)>& callback, 139 const SkColorType color_type) override;
139 const SkColorType color_type) override;
140 bool CanCopyFromBackingStore() override; 140 bool CanCopyFromBackingStore() override;
141 #if defined(OS_ANDROID) 141 #if defined(OS_ANDROID)
142 virtual void LockBackingStore() override; 142 virtual void LockBackingStore() override;
143 virtual void UnlockBackingStore() override; 143 virtual void UnlockBackingStore() override;
144 #endif 144 #endif
145 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; 145 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override;
146 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override; 146 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override;
147 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; 147 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override;
148 RenderProcessHost* GetProcess() const override; 148 RenderProcessHost* GetProcess() const override;
149 int GetRoutingID() const override; 149 int GetRoutingID() const override;
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 cc::RollingTimeDeltaHistory browser_composite_latency_history_; 853 cc::RollingTimeDeltaHistory browser_composite_latency_history_;
854 854
855 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 855 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
856 856
857 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 857 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
858 }; 858 };
859 859
860 } // namespace content 860 } // namespace content
861 861
862 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 862 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698