| 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. |start| | 182 // Notifies the View that the renderer text selection has changed. |
| 183 // and |end| are the visual end points of the selection in the coordinate | |
| 184 // system of the render view. | |
| 185 virtual void SelectionChanged(const std::string& text, | 183 virtual void SelectionChanged(const std::string& text, |
| 186 const ui::Range& range, | 184 const ui::Range& range) {} |
| 187 const gfx::Point& start, | |
| 188 const gfx::Point& end) {} | |
| 189 | 185 |
| 190 // Tells the View whether the context menu is showing. This is used on Linux | 186 // Tells the View whether the context menu is showing. This is used on Linux |
| 191 // to suppress updates to webkit focus for the duration of the show. | 187 // to suppress updates to webkit focus for the duration of the show. |
| 192 virtual void ShowingContextMenu(bool showing) {} | 188 virtual void ShowingContextMenu(bool showing) {} |
| 193 | 189 |
| 194 // Allocate a backing store for this view | 190 // Allocate a backing store for this view |
| 195 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 191 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
| 196 | 192 |
| 197 #if defined(OS_MACOSX) | 193 #if defined(OS_MACOSX) |
| 198 // Tells the view whether or not to accept first responder status. If |flag| | 194 // 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... |
| 331 | 327 |
| 332 // The current reserved area in view coordinates where contents should not be | 328 // The current reserved area in view coordinates where contents should not be |
| 333 // rendered to draw the resize corner, sidebar mini tabs etc. | 329 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 334 gfx::Rect reserved_rect_; | 330 gfx::Rect reserved_rect_; |
| 335 | 331 |
| 336 private: | 332 private: |
| 337 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 333 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 338 }; | 334 }; |
| 339 | 335 |
| 340 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |