Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view.h

Issue 7824037: Get surrounding text from webkit. This CL is for sharing code only. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.cc ('k') | content/browser/renderer_host/render_widget_host_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698