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_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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual void SelectAll() OVERRIDE; | 129 virtual void SelectAll() OVERRIDE; |
130 virtual void Unselect() OVERRIDE; | 130 virtual void Unselect() OVERRIDE; |
131 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE; | 131 virtual void UpdateTextDirection(blink::WebTextDirection direction) OVERRIDE; |
132 virtual void NotifyTextDirection() OVERRIDE; | 132 virtual void NotifyTextDirection() OVERRIDE; |
133 virtual void Focus() OVERRIDE; | 133 virtual void Focus() OVERRIDE; |
134 virtual void Blur() OVERRIDE; | 134 virtual void Blur() OVERRIDE; |
135 virtual void SetActive(bool active) OVERRIDE; | 135 virtual void SetActive(bool active) OVERRIDE; |
136 virtual void CopyFromBackingStore( | 136 virtual void CopyFromBackingStore( |
137 const gfx::Rect& src_rect, | 137 const gfx::Rect& src_rect, |
138 const gfx::Size& accelerated_dst_size, | 138 const gfx::Size& accelerated_dst_size, |
139 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 139 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 140 const SkBitmap::Config& bitmap_config) OVERRIDE; |
140 #if defined(TOOLKIT_GTK) | 141 #if defined(TOOLKIT_GTK) |
141 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, | 142 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, |
142 GdkWindow* target) OVERRIDE; | 143 GdkWindow* target) OVERRIDE; |
143 #elif defined(OS_MACOSX) | 144 #elif defined(OS_MACOSX) |
144 virtual gfx::Size GetBackingStoreSize() OVERRIDE; | 145 virtual gfx::Size GetBackingStoreSize() OVERRIDE; |
145 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, | 146 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, |
146 CGContextRef target) OVERRIDE; | 147 CGContextRef target) OVERRIDE; |
147 #endif | 148 #endif |
148 virtual void EnableFullAccessibilityMode() OVERRIDE; | 149 virtual void EnableFullAccessibilityMode() OVERRIDE; |
149 virtual void ForwardMouseEvent( | 150 virtual void ForwardMouseEvent( |
(...skipping 21 matching lines...) Expand all Loading... |
171 const KeyPressEventCallback& callback) OVERRIDE; | 172 const KeyPressEventCallback& callback) OVERRIDE; |
172 virtual void AddMouseEventCallback( | 173 virtual void AddMouseEventCallback( |
173 const MouseEventCallback& callback) OVERRIDE; | 174 const MouseEventCallback& callback) OVERRIDE; |
174 virtual void RemoveMouseEventCallback( | 175 virtual void RemoveMouseEventCallback( |
175 const MouseEventCallback& callback) OVERRIDE; | 176 const MouseEventCallback& callback) OVERRIDE; |
176 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; | 177 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) OVERRIDE; |
177 virtual void GetSnapshotFromRenderer( | 178 virtual void GetSnapshotFromRenderer( |
178 const gfx::Rect& src_subrect, | 179 const gfx::Rect& src_subrect, |
179 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 180 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
180 | 181 |
| 182 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
| 183 |
181 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; | 184 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const; |
182 | 185 |
183 // Notification that the screen info has changed. | 186 // Notification that the screen info has changed. |
184 void NotifyScreenInfoChanged(); | 187 void NotifyScreenInfoChanged(); |
185 | 188 |
186 // Invalidates the cached screen info so that next resize request | 189 // Invalidates the cached screen info so that next resize request |
187 // will carry the up to date screen info. Unlike | 190 // will carry the up to date screen info. Unlike |
188 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. | 191 // |NotifyScreenInfoChanged|, this doesn't send a message to the renderer. |
189 void InvalidateScreenInfo(); | 192 void InvalidateScreenInfo(); |
190 | 193 |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 941 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
939 | 942 |
940 int64 last_input_number_; | 943 int64 last_input_number_; |
941 | 944 |
942 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 945 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
943 }; | 946 }; |
944 | 947 |
945 } // namespace content | 948 } // namespace content |
946 | 949 |
947 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 950 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |