OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; | 165 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; |
166 | 166 |
167 // Tells the View to destroy itself. | 167 // Tells the View to destroy itself. |
168 virtual void Destroy() = 0; | 168 virtual void Destroy() = 0; |
169 | 169 |
170 // Tells the View that the tooltip text for the current mouse position over | 170 // Tells the View that the tooltip text for the current mouse position over |
171 // the page has changed. | 171 // the page has changed. |
172 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; | 172 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; |
173 | 173 |
174 // Notifies the View that the renderer text selection has changed. | 174 // Notifies the View that the renderer text selection has changed. |
175 virtual void SelectionChanged(const std::string& text) {} | 175 virtual void SelectionChanged(const std::string& text, int start, int end) {} |
176 | 176 |
177 // Tells the View whether the context menu is showing. This is used on Linux | 177 // Tells the View whether the context menu is showing. This is used on Linux |
178 // to suppress updates to webkit focus for the duration of the show. | 178 // to suppress updates to webkit focus for the duration of the show. |
179 virtual void ShowingContextMenu(bool showing) {} | 179 virtual void ShowingContextMenu(bool showing) {} |
180 | 180 |
181 // Allocate a backing store for this view | 181 // Allocate a backing store for this view |
182 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; | 182 virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0; |
183 | 183 |
184 #if defined(OS_MACOSX) | 184 #if defined(OS_MACOSX) |
185 // Tells the view whether or not to accept first responder status. If |flag| | 185 // Tells the view whether or not to accept first responder status. If |flag| |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 // The current reserved area in view coordinates where contents should not be | 310 // The current reserved area in view coordinates where contents should not be |
311 // rendered to draw the resize corner, sidebar mini tabs etc. | 311 // rendered to draw the resize corner, sidebar mini tabs etc. |
312 gfx::Rect reserved_rect_; | 312 gfx::Rect reserved_rect_; |
313 | 313 |
314 private: | 314 private: |
315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 315 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
316 }; | 316 }; |
317 | 317 |
318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 318 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |