| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 int error_code) = 0; | 165 int error_code) = 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 string16& tooltip_text) = 0; | 172 virtual void SetTooltipText(const string16& 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 string16& text, | 175 CONTENT_EXPORT virtual void SelectionChanged(const string16& text, |
| 176 size_t offset, | 176 size_t offset, |
| 177 const ui::Range& range); | 177 const ui::Range& range); |
| 178 | 178 |
| 179 // Notifies the View that the renderer selection bounds has changed. | 179 // Notifies the View that the renderer selection bounds has changed. |
| 180 // |start_rect| and |end_rect| are the bounds end of the selection in the | 180 // |start_rect| and |end_rect| are the bounds end of the selection in the |
| 181 // coordinate system of the render view. | 181 // coordinate system of the render view. |
| 182 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 182 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
| 183 const gfx::Rect& end_rect) {} | 183 const gfx::Rect& end_rect) {} |
| 184 | 184 |
| 185 // Tells the View whether the context menu is showing. This is used on Linux | 185 // Tells the View whether the context menu is showing. This is used on Linux |
| 186 // to suppress updates to webkit focus for the duration of the show. | 186 // to suppress updates to webkit focus for the duration of the show. |
| 187 virtual void ShowingContextMenu(bool showing) {} | 187 virtual void ShowingContextMenu(bool showing) {} |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 size_t selection_text_offset_; | 362 size_t selection_text_offset_; |
| 363 | 363 |
| 364 // The current selection range relative to the start of the web page. | 364 // The current selection range relative to the start of the web page. |
| 365 ui::Range selection_range_; | 365 ui::Range selection_range_; |
| 366 | 366 |
| 367 private: | 367 private: |
| 368 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 368 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |