Chromium Code Reviews| 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. |
|
sky
2011/08/03 17:38:29
Document start/end, especially what coordinate sys
varunjain
2011/08/03 18:38:41
Done.
| |
| 183 virtual void SelectionChanged(const std::string& text, | 183 virtual void SelectionChanged(const std::string& text, |
| 184 const ui::Range& range) {} | 184 const ui::Range& range, |
| 185 const gfx::Point& start, | |
| 186 const gfx::Point& end) {} | |
| 185 | 187 |
| 186 // Tells the View whether the context menu is showing. This is used on Linux | 188 // 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. | 189 // to suppress updates to webkit focus for the duration of the show. |
| 188 virtual void ShowingContextMenu(bool showing) {} | 190 virtual void ShowingContextMenu(bool showing) {} |
| 189 | 191 |
| 190 // Allocate a backing store for this view | 192 // Allocate a backing store for this view |
| 191 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 193 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
| 192 | 194 |
| 193 #if defined(OS_MACOSX) | 195 #if defined(OS_MACOSX) |
| 194 // Tells the view whether or not to accept first responder status. If |flag| | 196 // 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 | 329 |
| 328 // The current reserved area in view coordinates where contents should not be | 330 // The current reserved area in view coordinates where contents should not be |
| 329 // rendered to draw the resize corner, sidebar mini tabs etc. | 331 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 330 gfx::Rect reserved_rect_; | 332 gfx::Rect reserved_rect_; |
| 331 | 333 |
| 332 private: | 334 private: |
| 333 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 335 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 334 }; | 336 }; |
| 335 | 337 |
| 336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 338 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |