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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 size_t offset, | 156 size_t offset, |
157 const gfx::Range& range) = 0; | 157 const gfx::Range& range) = 0; |
158 | 158 |
159 // Notifies the View that the renderer selection bounds has changed. | 159 // Notifies the View that the renderer selection bounds has changed. |
160 // |start_rect| and |end_rect| are the bounds end of the selection in the | 160 // |start_rect| and |end_rect| are the bounds end of the selection in the |
161 // coordinate system of the render view. |start_direction| and |end_direction| | 161 // coordinate system of the render view. |start_direction| and |end_direction| |
162 // indicates the direction at which the selection was made on touch devices. | 162 // indicates the direction at which the selection was made on touch devices. |
163 virtual void SelectionBoundsChanged( | 163 virtual void SelectionBoundsChanged( |
164 const ViewHostMsg_SelectionBounds_Params& params) = 0; | 164 const ViewHostMsg_SelectionBounds_Params& params) = 0; |
165 | 165 |
| 166 #if defined(OS_ANDROID) |
| 167 // Notifies the View that the renderer selection root bounds has changed. |
| 168 virtual void SelectionRootBoundsChanged(const gfx::Rect& bounds) = 0; |
| 169 #endif |
| 170 |
166 // Notifies the view that the scroll offset has changed. | 171 // Notifies the view that the scroll offset has changed. |
167 virtual void ScrollOffsetChanged() = 0; | 172 virtual void ScrollOffsetChanged() = 0; |
168 | 173 |
169 // Allocate a backing store for this view. | 174 // Allocate a backing store for this view. |
170 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 175 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
171 | 176 |
172 // Copies the contents of the compositing surface into the given | 177 // Copies the contents of the compositing surface into the given |
173 // (uninitialized) PlatformCanvas if any. | 178 // (uninitialized) PlatformCanvas if any. |
174 // The rectangle region specified with |src_subrect| is copied from the | 179 // The rectangle region specified with |src_subrect| is copied from the |
175 // contents, scaled to |dst_size|, and written to |output|. | 180 // contents, scaled to |dst_size|, and written to |output|. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 353 |
349 // Returns an HWND that's given as the parent window for windowless Flash to | 354 // Returns an HWND that's given as the parent window for windowless Flash to |
350 // workaround crbug.com/301548. | 355 // workaround crbug.com/301548. |
351 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 356 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
352 #endif | 357 #endif |
353 }; | 358 }; |
354 | 359 |
355 } // namespace content | 360 } // namespace content |
356 | 361 |
357 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 362 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |