| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 // Sets the cursor to the one associated with the specified cursor_type | 135 // Sets the cursor to the one associated with the specified cursor_type |
| 136 virtual void UpdateCursor(const WebCursor& cursor) = 0; | 136 virtual void UpdateCursor(const WebCursor& cursor) = 0; |
| 137 | 137 |
| 138 // Indicates whether the page has finished loading. | 138 // Indicates whether the page has finished loading. |
| 139 virtual void SetIsLoading(bool is_loading) = 0; | 139 virtual void SetIsLoading(bool is_loading) = 0; |
| 140 | 140 |
| 141 // Updates the state of the input method attached to the view. | 141 // Updates the state of the input method attached to the view. |
| 142 virtual void ImeUpdateTextInputState(ui::TextInputType type, | 142 virtual void ImeUpdateTextInputState(ui::TextInputType type, |
| 143 bool can_compose_inline, | 143 bool can_compose_inline, |
| 144 const gfx::Rect& caret_rect) = 0; | 144 const gfx::Rect& caret_rect, |
| 145 const string16& surrounding, |
| 146 size_t cursor, |
| 147 size_t anchor) = 0; |
| 145 | 148 |
| 146 // Cancel the ongoing composition of the input method attached to the view. | 149 // Cancel the ongoing composition of the input method attached to the view. |
| 147 virtual void ImeCancelComposition() = 0; | 150 virtual void ImeCancelComposition() = 0; |
| 148 | 151 |
| 149 // Updates the range of the marked text in an IME composition. | 152 // Updates the range of the marked text in an IME composition. |
| 150 virtual void ImeCompositionRangeChanged(const ui::Range& range) {} | 153 virtual void ImeCompositionRangeChanged(const ui::Range& range) {} |
| 151 | 154 |
| 152 // Informs the view that a portion of the widget's backing store was scrolled | 155 // Informs the view that a portion of the widget's backing store was scrolled |
| 153 // and/or painted. The view should ensure this gets copied to the screen. | 156 // and/or painted. The view should ensure this gets copied to the screen. |
| 154 // | 157 // |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 346 |
| 344 // The current reserved area in view coordinates where contents should not be | 347 // The current reserved area in view coordinates where contents should not be |
| 345 // rendered to draw the resize corner, sidebar mini tabs etc. | 348 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 346 gfx::Rect reserved_rect_; | 349 gfx::Rect reserved_rect_; |
| 347 | 350 |
| 348 private: | 351 private: |
| 349 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 352 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 350 }; | 353 }; |
| 351 | 354 |
| 352 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 355 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |