| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 351 |
| 347 // Returns an HWND that's given as the parent window for windowless Flash to | 352 // Returns an HWND that's given as the parent window for windowless Flash to |
| 348 // workaround crbug.com/301548. | 353 // workaround crbug.com/301548. |
| 349 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 354 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 350 #endif | 355 #endif |
| 351 }; | 356 }; |
| 352 | 357 |
| 353 } // namespace content | 358 } // namespace content |
| 354 | 359 |
| 355 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 360 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |