Chromium Code Reviews| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 size_t offset, | 147 size_t offset, |
| 148 const ui::Range& range) = 0; | 148 const ui::Range& range) = 0; |
| 149 | 149 |
| 150 // Notifies the View that the renderer selection bounds has changed. | 150 // Notifies the View that the renderer selection bounds has changed. |
| 151 // |start_rect| and |end_rect| are the bounds end of the selection in the | 151 // |start_rect| and |end_rect| are the bounds end of the selection in the |
| 152 // coordinate system of the render view. |start_direction| and |end_direction| | 152 // coordinate system of the render view. |start_direction| and |end_direction| |
| 153 // indicates the direction at which the selection was made on touch devices. | 153 // indicates the direction at which the selection was made on touch devices. |
| 154 virtual void SelectionBoundsChanged( | 154 virtual void SelectionBoundsChanged( |
| 155 const ViewHostMsg_SelectionBounds_Params& params) = 0; | 155 const ViewHostMsg_SelectionBounds_Params& params) = 0; |
| 156 | 156 |
| 157 // Notifies the view that the renderer has just show or hidden handles for | |
|
piman
2013/02/22 02:43:04
nit: s/show/showed/
varunjain
2013/02/28 20:28:19
Done.
| |
| 158 // touch based selection/cursor. | |
| 159 virtual void TouchEditingHandlesVisibilityChanged(bool visible) = 0; | |
| 160 | |
| 157 // Notifies the view that the scroll offset has changed. | 161 // Notifies the view that the scroll offset has changed. |
| 158 virtual void ScrollOffsetChanged() = 0; | 162 virtual void ScrollOffsetChanged() = 0; |
| 159 | 163 |
| 160 // Allocate a backing store for this view. | 164 // Allocate a backing store for this view. |
| 161 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 165 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
| 162 | 166 |
| 163 // Copies the contents of the compositing surface into the given | 167 // Copies the contents of the compositing surface into the given |
| 164 // (uninitialized) PlatformCanvas if any. | 168 // (uninitialized) PlatformCanvas if any. |
| 165 // The rectangle region specified with |src_subrect| is copied from the | 169 // The rectangle region specified with |src_subrect| is copied from the |
| 166 // contents, scaled to |dst_size|, and written to |output|. | 170 // contents, scaled to |dst_size|, and written to |output|. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 281 #endif | 285 #endif |
| 282 | 286 |
| 283 #if defined(OS_WIN) && !defined(USE_AURA) | 287 #if defined(OS_WIN) && !defined(USE_AURA) |
| 284 virtual void WillWmDestroy() = 0; | 288 virtual void WillWmDestroy() = 0; |
| 285 #endif | 289 #endif |
| 286 }; | 290 }; |
| 287 | 291 |
| 288 } // namespace content | 292 } // namespace content |
| 289 | 293 |
| 290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 294 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |