OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 virtual void RenderViewGone(base::TerminationStatus status, | 172 virtual void RenderViewGone(base::TerminationStatus status, |
173 int error_code) = 0; | 173 int error_code) = 0; |
174 | 174 |
175 // Tells the View to destroy itself. | 175 // Tells the View to destroy itself. |
176 virtual void Destroy() = 0; | 176 virtual void Destroy() = 0; |
177 | 177 |
178 // Tells the View that the tooltip text for the current mouse position over | 178 // Tells the View that the tooltip text for the current mouse position over |
179 // the page has changed. | 179 // the page has changed. |
180 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; | 180 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; |
181 | 181 |
182 // Notifies the View that the renderer text selection has changed. | 182 // Notifies the View that the renderer text selection has changed. |start| |
| 183 // and |end| are the visual end points of the selection in the coordinate |
| 184 // system of the render view. |
183 virtual void SelectionChanged(const std::string& text, | 185 virtual void SelectionChanged(const std::string& text, |
184 const ui::Range& range) {} | 186 const ui::Range& range, |
| 187 const gfx::Point& start, |
| 188 const gfx::Point& end) {} |
185 | 189 |
186 // Tells the View whether the context menu is showing. This is used on Linux | 190 // Tells the View whether the context menu is showing. This is used on Linux |
187 // to suppress updates to webkit focus for the duration of the show. | 191 // to suppress updates to webkit focus for the duration of the show. |
188 virtual void ShowingContextMenu(bool showing) {} | 192 virtual void ShowingContextMenu(bool showing) {} |
189 | 193 |
190 // Allocate a backing store for this view | 194 // Allocate a backing store for this view |
191 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 195 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
192 | 196 |
193 #if defined(OS_MACOSX) | 197 #if defined(OS_MACOSX) |
194 // Tells the view whether or not to accept first responder status. If |flag| | 198 // Tells the view whether or not to accept first responder status. If |flag| |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 331 |
328 // The current reserved area in view coordinates where contents should not be | 332 // The current reserved area in view coordinates where contents should not be |
329 // rendered to draw the resize corner, sidebar mini tabs etc. | 333 // rendered to draw the resize corner, sidebar mini tabs etc. |
330 gfx::Rect reserved_rect_; | 334 gfx::Rect reserved_rect_; |
331 | 335 |
332 private: | 336 private: |
333 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 337 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
334 }; | 338 }; |
335 | 339 |
336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 340 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |