| 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/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) | 129 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) |
| 130 // Thus implementers should generally paint as much of |rect| as possible | 130 // Thus implementers should generally paint as much of |rect| as possible |
| 131 // synchronously with as little overpainting as possible. | 131 // synchronously with as little overpainting as possible. |
| 132 virtual void DidUpdateBackingStore( | 132 virtual void DidUpdateBackingStore( |
| 133 const gfx::Rect& scroll_rect, | 133 const gfx::Rect& scroll_rect, |
| 134 const gfx::Vector2d& scroll_delta, | 134 const gfx::Vector2d& scroll_delta, |
| 135 const std::vector<gfx::Rect>& copy_rects, | 135 const std::vector<gfx::Rect>& copy_rects, |
| 136 const ui::LatencyInfo& latency_info) = 0; | 136 const ui::LatencyInfo& latency_info) = 0; |
| 137 | 137 |
| 138 // Notifies the View that the renderer has ceased to exist. | 138 // Notifies the View that the renderer has ceased to exist. |
| 139 virtual void RenderViewGone(base::TerminationStatus status, | 139 virtual void RenderProcessGone(base::TerminationStatus status, |
| 140 int error_code) = 0; | 140 int error_code) = 0; |
| 141 | 141 |
| 142 // Tells the View to destroy itself. | 142 // Tells the View to destroy itself. |
| 143 virtual void Destroy() = 0; | 143 virtual void Destroy() = 0; |
| 144 | 144 |
| 145 // Tells the View that the tooltip text for the current mouse position over | 145 // Tells the View that the tooltip text for the current mouse position over |
| 146 // the page has changed. | 146 // the page has changed. |
| 147 virtual void SetTooltipText(const string16& tooltip_text) = 0; | 147 virtual void SetTooltipText(const string16& tooltip_text) = 0; |
| 148 | 148 |
| 149 // Notifies the View that the renderer text selection has changed. | 149 // Notifies the View that the renderer text selection has changed. |
| 150 virtual void SelectionChanged(const string16& text, | 150 virtual void SelectionChanged(const string16& text, |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 #if defined(OS_WIN) && defined(USE_AURA) | 327 #if defined(OS_WIN) && defined(USE_AURA) |
| 328 virtual void SetParentNativeViewAccessible( | 328 virtual void SetParentNativeViewAccessible( |
| 329 gfx::NativeViewAccessible accessible_parent) = 0; | 329 gfx::NativeViewAccessible accessible_parent) = 0; |
| 330 #endif | 330 #endif |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 } // namespace content | 333 } // namespace content |
| 334 | 334 |
| 335 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 335 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |