| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 // Notifies the View that the renderer has ceased to exist. | 140 // Notifies the View that the renderer has ceased to exist. |
| 141 virtual void RenderProcessGone(base::TerminationStatus status, | 141 virtual void RenderProcessGone(base::TerminationStatus status, |
| 142 int error_code) = 0; | 142 int error_code) = 0; |
| 143 | 143 |
| 144 // Tells the View to destroy itself. | 144 // Tells the View to destroy itself. |
| 145 virtual void Destroy() = 0; | 145 virtual void Destroy() = 0; |
| 146 | 146 |
| 147 // Tells the View that the tooltip text for the current mouse position over | 147 // Tells the View that the tooltip text for the current mouse position over |
| 148 // the page has changed. | 148 // the page has changed. |
| 149 virtual void SetTooltipText(const string16& tooltip_text) = 0; | 149 virtual void SetTooltipText(const base::string16& tooltip_text) = 0; |
| 150 | 150 |
| 151 // Notifies the View that the renderer text selection has changed. | 151 // Notifies the View that the renderer text selection has changed. |
| 152 virtual void SelectionChanged(const string16& text, | 152 virtual void SelectionChanged(const base::string16& text, |
| 153 size_t offset, | 153 size_t offset, |
| 154 const gfx::Range& range) = 0; | 154 const gfx::Range& range) = 0; |
| 155 | 155 |
| 156 // Notifies the View that the renderer selection bounds has changed. | 156 // Notifies the View that the renderer selection bounds has changed. |
| 157 // |start_rect| and |end_rect| are the bounds end of the selection in the | 157 // |start_rect| and |end_rect| are the bounds end of the selection in the |
| 158 // coordinate system of the render view. |start_direction| and |end_direction| | 158 // coordinate system of the render view. |start_direction| and |end_direction| |
| 159 // indicates the direction at which the selection was made on touch devices. | 159 // indicates the direction at which the selection was made on touch devices. |
| 160 virtual void SelectionBoundsChanged( | 160 virtual void SelectionBoundsChanged( |
| 161 const ViewHostMsg_SelectionBounds_Params& params) = 0; | 161 const ViewHostMsg_SelectionBounds_Params& params) = 0; |
| 162 | 162 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 // Returns an HWND that's given as the parent window for windowless Flash to | 346 // Returns an HWND that's given as the parent window for windowless Flash to |
| 347 // workaround crbug.com/301548. | 347 // workaround crbug.com/301548. |
| 348 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; | 348 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0; |
| 349 #endif | 349 #endif |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 } // namespace content | 352 } // namespace content |
| 353 | 353 |
| 354 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 354 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |