| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 // Notifies the View that the renderer selection bounds has changed. | 146 // Notifies the View that the renderer selection bounds has changed. |
| 147 // |start_rect| and |end_rect| are the bounds end of the selection in the | 147 // |start_rect| and |end_rect| are the bounds end of the selection in the |
| 148 // coordinate system of the render view. |start_direction| and |end_direction| | 148 // coordinate system of the render view. |start_direction| and |end_direction| |
| 149 // indicates the direction at which the selection was made on touch devices. | 149 // indicates the direction at which the selection was made on touch devices. |
| 150 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 150 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
| 151 WebKit::WebTextDirection start_direction, | 151 WebKit::WebTextDirection start_direction, |
| 152 const gfx::Rect& end_rect, | 152 const gfx::Rect& end_rect, |
| 153 WebKit::WebTextDirection end_direction) {} | 153 WebKit::WebTextDirection end_direction) {} |
| 154 | 154 |
| 155 // Notifies the view that the scroll offset has changed. |
| 156 virtual void ScrollOffsetChanged(const gfx::Vector2d& offset) {}; |
| 157 |
| 155 // Allocate a backing store for this view. | 158 // Allocate a backing store for this view. |
| 156 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 159 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
| 157 | 160 |
| 158 // Copies the contents of the compositing surface into the given | 161 // Copies the contents of the compositing surface into the given |
| 159 // (uninitialized) PlatformCanvas if any. | 162 // (uninitialized) PlatformCanvas if any. |
| 160 // The rectangle region specified with |src_subrect| is copied from the | 163 // The rectangle region specified with |src_subrect| is copied from the |
| 161 // contents, scaled to |dst_size|, and written to |output|. | 164 // contents, scaled to |dst_size|, and written to |output|. |
| 162 // |callback| is invoked with true on success, false otherwise. |output| can | 165 // |callback| is invoked with true on success, false otherwise. |output| can |
| 163 // be initialized even on failure. | 166 // be initialized even on failure. |
| 164 // NOTE: |callback| is called asynchronously on Aura and synchronously on the | 167 // NOTE: |callback| is called asynchronously on Aura and synchronously on the |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 virtual BrowserAccessibilityManager* | 295 virtual BrowserAccessibilityManager* |
| 293 GetBrowserAccessibilityManager() const = 0; | 296 GetBrowserAccessibilityManager() const = 0; |
| 294 virtual void OnAccessibilityNotifications( | 297 virtual void OnAccessibilityNotifications( |
| 295 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 298 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 296 } | 299 } |
| 297 }; | 300 }; |
| 298 | 301 |
| 299 } // namespace content | 302 } // namespace content |
| 300 | 303 |
| 301 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 304 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |